使用SQLGeometery转换坐标系 [英] Convert coordinate systems using SQLGeometery

查看:229
本文介绍了使用SQLGeometery转换坐标系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个形状文件如下:

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)

另一个文件正在使用SRID 3857:

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?

推荐答案

使用Pro Spatial第8章中的GeometryToGeometry函数.

Use the GeometryToGeometry function from Pro Spatial, chapter 8.

源代码和数据表: http://www.apress.com/9781430234913

这篇关于使用SQLGeometery转换坐标系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆