从OpenStreetMap中取出水后,我失去了管理边界和属性。如何保存它们?
现在,我正在从OpenStreetMap中处理印尼的地图数据。我得到了admin_level等于“ 4”的区域数据。然后,我通过这种方式将水部分删除,https://stackoverflow.com/questions/25297811/25297811/how-can-i-remove-water-from-openstreetmap-ways.ut我丢失了行政界限。我有一些建议重新定位它们。 我的目标只是从原始数据中删除水部分。 首先,我从OpenStreetMap获取印度尼西亚的PBF数据。 其次,我通过python脚本从PBF中获得了多龙:
第三,我通过Ogr2ogr删除了水部分。
ogr2ogr -f GeoJSON ID_filter_level_44.geo.json -clipsrc ID_level_4.geo.json land_polygons.id.shp
现在,我得到了文件ID_FILTER_LEVEL_44.GEO.JSON,但它的几何形状都是“ Polygon”类型。并合并了一些不同的管理。
now I am handling the indonesia's map data from openstreetmap. I get the region datas whose admin_level equals "4". Then I remove the water part through this way,https://stackoverflow.com/questions/25297811/how-can-i-remove-water-from-openstreetmap-ways.But I lose the administrative boundary,either.Who can give me some suggestion to resave them.
My target is just to remove the water part from the original data.
Firstly, I get the pbf data of Indonesia from openstreetmap.
secondly, I get the multipolygons from the pbf through a python script:
thirdly, I remove the water part by ogr2ogr.
ogr2ogr -f GeoJSON ID_filter_level_44.geo.json -clipsrc ID_level_4.geo.json land_polygons.id.shp
And now, I get the file ID_filter_level_44.geo.json, but it's geometry is all "polygon" type. and some diffrent administration are merged.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论