<div dir="ltr"><div><div data-smartmail="gmail_signature">Just wanted to loop back here about this.</div><div data-smartmail="gmail_signature">This solution proposed by Gerd worked for me to still use osmconvert. As a note I also tried the osmium command suggested by Frederik.</div></div><div data-smartmail="gmail_signature">The problem seemed to only happen with a large amount of map data which explains why the --hash-memory option was useful.</div><div data-smartmail="gmail_signature"><br></div><div data-smartmail="gmail_signature">Thank you all for your help,</div><div data-smartmail="gmail_signature">Brad</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 9, 2021 at 2:01 AM Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
the solution for osmconvert is the --hash-memory option. Try e.g. --hash-memory=3000<br>
See also this thread in the German forum <a href="https://forum.openstreetmap.org/viewtopic.php?id=65102" rel="noreferrer" target="_blank">https://forum.openstreetmap.org/viewtopic.php?id=65102</a><br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: Bradley Kleiboer <<a href="mailto:bkleiboer@rideco.com" target="_blank">bkleiboer@rideco.com</a>><br>
Gesendet: Mittwoch, 9. Juni 2021 00:50<br>
An: <a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
Betreff: [OSM-dev] osmconvert bounding polygon<br>
<br>
Hello,<br>
<br>
I have encountered a bug with osmconvert (version 0.8.7) with regards to cutting out a polygon (a .poly file) from map data.<br>
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.<br>
Here a sample of the command I am running:<br>
osmconvert \<br>
--verbose \<br>
--drop-author \<br>
--drop-version \<br>
--complex-ways \<br>
--complete-ways \<br>
--out-o5m \<br>
-B=sample_polygon_file.poly \<br>
-o=output_file.o5m \<br>
input_file.pbf<br>
<br>
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.<br>
Sample command:<br>
osmosis \<br>
-verbose \<br>
--read-pbf-fast file="input_file.pbf" workers=4 \<br>
--bounding-polygon file=sample_polygon_file.poly completeWays=yes \<br>
--write-pbf file=output_file.pbf omitmetadata=true<br>
<br>
Thanks,<br>
Brad<br>
</blockquote></div>