I've saved country borders in my sql server 2012 as geography data from geojson files.
It turns out that when I query all the boundaries that have an administration level 2, not all the polygons are shown in the "spatial results" tab.
Clearly this issue is not specific to just admin level 2 but also the rest of the levels are affected. I'll use Austria admin level 2 as an example.
The error message I get is: "One or more spatial objects were too large to display. Please refine your query".
As you can see Austria(Österreich) is present in the query result but is not present in the "Spatial result" tab:
This is my query:
SELECT TOP 10 [Id]
,[AdminLevel]
,[Name]
,[CountryId]
,[OpenstreetmapId]
,[BoundaryPolygon]
FROM [WorldLocation].[dbo].[GeographyBoundary]
WHERE [AdminLevel] = 2
Questions:
Use sql geo-spatial function like Reduce()
, to simply the dots.
You can review the shape in the spatial results tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With