如何使用开源库从脚本将 shapefile 从 AGD66 转换为 GDA94
如何使用开源库以编程方式将 shapefile 从 AGD66 转换为 GDA94?我不想使用 arcgisscripting
因为我没有许可证。
这需要是自动化的。 bash 或 python 脚本是可以接受的。
这比普通重投影稍微复杂一些,因为这些坐标参考系之间使用不同的椭球体,因此需要使用畸变网格。
How can I convert a shapefile from AGD66 to GDA94 programmatically, using open source libraries? I don't want to use arcgisscripting
because I don't have a licence.
This needs to be automatable. A bash or python script would be acceptable.
This is a little more complicated than a normal reprojection, because a different ellipsoid is used between these coordinate reference systems, and thus a distortion grid needs to be used.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用开源 GDAL 库。
要自行转换坐标,请使用 GGAL 转换实用程序:
http://www.gdal.org/gdaltransform.html
要转换整个 shapefile,请使用:
http://www.gdal.org/ogr2ogr.html
有一个命令行示例页面底部的 shapefile。
Use the OpenSource GDAL libraries.
To convert coordinates on their own us the GGAL transform utility:
http://www.gdal.org/gdaltransform.html
To convert a whole shapefile use:
http://www.gdal.org/ogr2ogr.html
There is a command line example for a shapefile at the bottom of the page.
很抱歉回答自己的问题,但这适用于后代。使用此处的说明,首先下载扭曲网格:
然后使用ogr2ogr重新投影:
Sorry to answer own question, but here goes for posterity. Using the instructions here, first download the distortion grid:
Then use ogr2ogr to reproject: