使用Osmosis命令提取符合条件的道路数据
{"title":"使用Osmosis命令提取符合条件的道路数据","description":"本文介绍如何使用Osmosis命令提取符合特定条件的道路数据,并提供一个示例代码,演示如何使用过滤条件提取高速公路、非私有、可行驶的道路数据。","keywords":"osmosis, 道路数据提取, 过滤条件, .osm.pbf, bounding-box, accept-ways, used-node","content":"对于给定的osmosis命令,可以使用以下方式编写:\n\n\nosmosis --read-pbf file=\"input.osm.pbf\" --bounding-box left=lon1 bottom=lat1 right=lon2 top=lat2 --tf accept-ways ${filters[\"drive\"]} --used-node --write-pbf file=\"output.osm.pbf\"\n\n\n其中${filters[\"drive\"]}是您提供的过滤条件。请注意,您需要将lon1,lat1,lon2和lat2替换为实际的地理坐标范围。此命令将根据给定的过滤条件从输入的.osm.pbf文件中提取符合条件的道路,并将结果写入输出的.osm.pbf文件中。"}
原文地址: https://www.cveoy.top/t/topic/p4Qm 著作权归作者所有。请勿转载和采集!