Convert coordinate systems using SQLGeometery

偶尔善良 提交于 2019-12-13 02:53:49

问题


One of my shape files looks like this:

POLYGON (
  -91.513078999999991 36.970298, 
  -87.01993499999999 36.970298, 
  -87.01993499999999 42.508337999999995, 
  -91.513078999999991 42.508337999999995, 
  -91.513078999999991 36.970298)

Another file is using SRID 3857:

POLYGON (
  -10033572.109485552 4727287.954831399, 
  -10033571.708142675 4727287.954831399, 
  -10033571.708142675 4727288.1439229213, 
  -10033572.109485552 4727288.1439229213, 
  -10033572.109485552 4727287.954831399)

Assuming I can figure out which coordinate systems are being used, how do I convert from one format to the other?


回答1:


Use the GeometryToGeometry function from Pro Spatial, chapter 8.

Source code and data tables: http://www.apress.com/9781430234913



来源:https://stackoverflow.com/questions/24274136/convert-coordinate-systems-using-sqlgeometery

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