如何将形状文件类型从折线转换为多边形?
我有一个文件类型为折线的形状文件。但我想将其转换为多边形。有可能使用免费资源吗?如何将形状文件类型从折线转换为多边形?
I have a shape file whose file type is polyline. But I want convert it to polygon. Is it possible with free sources? How can I convert shape file type from polyline to polygon?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
借助 PySAL 库,这可以在 python 中轻松完成。
例如,给定一个名为“tst.shp”的形状文件,其中包含两条折线,

我们可以打开 shapefile 将折线转换为多边形并写出一个新的 shapefile。
现在我们有了多边形,

如果您需要一种无需编程即可完成此任务的方法,请尝试在 http://gis.stackexchange.com
This can be done pretty easily in python with the help of the PySAL library.
For example given a shapefile named "tst.shp" with two polylines,

We can open the shapefile convert the polylines to polygons and write out a new shapefile.
Now we have polygons,

If you need a way to accomplish this without programming, try asking your questions at http://gis.stackexchange.com