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

Pure.Krome picture Pure.Krome · Nov 11, 2008 · Viewed 29k times · Source

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

Answer

wonderchook picture wonderchook · Nov 11, 2008

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.