[OSM-dev] osmconvert bounding polygon
Bradley Kleiboer
bkleiboer at rideco.com
Tue Jun 8 22:50:36 UTC 2021
Hello,
I have encountered a bug with osmconvert (version 0.8.7) with regards to
cutting out a polygon (a .poly file) from map data.
After running the command there are small bits of map data outside of the
bounding polygon that are not removed and I was wondering if anyone has
seen this behaviour before.
Here a sample of the command I am running:
osmconvert \
--verbose \
--drop-author \
--drop-version \
--complex-ways \
--complete-ways \
--out-o5m \
-B=sample_polygon_file.poly \
-o=output_file.o5m \
input_file.pbf
Also, I am able to successfully cut out the polygon file using an osmosis
command but it is MUCH slower so I was hoping to get the osmconvert command
to work.
Sample command:
osmosis \
-verbose \
--read-pbf-fast file="input_file.pbf" workers=4 \
--bounding-polygon file=sample_polygon_file.poly completeWays=yes \
--write-pbf file=output_file.pbf omitmetadata=true
Thanks,
Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20210608/c43cf66d/attachment.htm>
More information about the dev
mailing list