How do I convert SRID 3857 to decimal degrees?

巧了我就是萌 提交于 2019-12-13 09:03:38

问题


How do I convert SRID 3857 formatted geometery coordinates into to decimal degrees?

My current stack is SQL Server 2014 and C#.


回答1:


You cannot convert them directly in SQL Server. Quite simply it wasn't built to reinvent the Reprojection of spatial data in one datum to another. When using SqlGeography, you can of course swap between SRIDs when both sets of coordinates use the same coordinate-type (decimal-degrees or grid-based), however when using SqlGeometry, they are simply planar coordinates based on the scale set by the bounds of the data you have and setting the SRID merely "groups" like-SRID spatial objects.

You'll need a Third-Party library or tool to do this for you. Geographika notes some options at the following SO Link:

Know of any C# spatial data libraries?




回答2:


See Convert coordinate systems using SQLGeometery

SRID 4326 seems to work well enough.

http://spatialreference.org/ref/epsg/4326/



来源:https://stackoverflow.com/questions/24275159/how-do-i-convert-srid-3857-to-decimal-degrees

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!