How can I convert Geometry data into a Geography d

2020-06-11 16:13发布

问题:

How can I convert some Geometry data into Geography data in MS SQL Server 2008?

回答1:

Yes you can but the geometry datatype is more forgiving than the geography in my experience. So there is some data you might have in geometry that you can't convert.

This article from Spatial Ed was very helpful explaining how to fix data problems and also has some sample queries to convert from Geom to Geog.