I am writing an app using Bing API Spatial Data services to take of list of zip codes and combine them into one region. I have it mostly working but it seems to have issues with inner rings. Instead of a) deeming the inner region too small and just squashing it or b) properly drawing the inner ring, it seems to want to connect them, picture example below:
That interrior polygon should have been just a "hole" in the region, but instead it tries to connect them.
I currently have 2 relevent methods. One that decrypts the API response for the zip code, translates it to SqlGeography
and STUnion()
s any additional rings. and a second parent method which STUnion
s the results of the first method to a master SqlGeography
object that contains all zip codes together when its done for a region.
Let me know if you need any more information.