<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 6, 2014 at 9:56 PM, Guillaume Pratte <span dir="ltr"><<a href="mailto:guillaume@guillaumepratte.net" target="_blank">guillaume@guillaumepratte.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>## Splitting .osm files for the HOT Tasking Manager<br><br>We are planning to use the HOT Tasking Manager for our import. To ease importing the generated .osm dataset into JOSM (for manual reconciliation with OSM data), we had to write a script that splits the .osm files into a series of sub-files, one per sub-task. Essentially the .osm file is split-up according to a grid defined in JSON format. This allows to see in JOSM only the part of the data for the task, instead of having to download the data for the whole city. Code is available here:<br><br> <a href="https://github.com/OsmQc/mtl2osm/blob/master/mtl2osm/osm_grid_splitter.py" target="_blank">https://github.com/OsmQc/mtl2osm/blob/master/mtl2osm/osm_grid_splitter.py</a><br><br>I hope these tools can be of benefit to the OpenStreetMap community. Do not hesitate to reply if you have any question. I know the documentation on these tools is not 100% complete, so I'll certainly post more details if there is interest in them.</div></blockquote></div><br>Thanks - this is just what I've been looking for. We wrote a clunky python script but yours looks much more elegant. I'll give it a try in the next week or so when I get finished cleaning up some buildings and addresses.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Clifford<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>@osm_seattle<br></div><div><a href="http://osm_seattle.snowandsnow.us" target="_blank">osm_seattle.snowandsnow.us</a></div><div>OpenStreetMap: Maps with a human touch</div></div></div>
</div></div>