<div dir="ltr">Running the QGIS OSM utilites to create a Spatialite db, I've noticed that during the last phase (converting nodes.ways to spatialite tables) a lot of data got lost.<div><br></div><div>I tested the Tuscany .osm file [1]</div>
<div><br></div><div>and I extracted a portion of it with osmosis:</div><div><br></div><div>toscana.osm.bz2 | ./osmosis --rx /dev/stdin --bounding-box top=43.7908 left=11.2153 bottom=43.7634 right=11.289 --wx "toscana_subset.xml"<br>
</div><div><br></div><div>which appears to be complete when loaded in JOSM.</div><div><br></div><div>Here are the counts on the tables generated by QGIS' OSM utilities:</div><div><br></div><div><div>SELECT count(*) FROM ways</div>
<div>union</div><div>SELECT count(*) FROM toscana_osm_polylines</div></div><div><br></div><div>count</div><div><div>----------</div><div>221335</div><div>568129</div></div><div><div><br></div><div>More then a half ways are not translated.</div>
<div>An example is: <a href="http://www.openstreetmap.org/way/16236141">http://www.openstreetmap.org/way/16236141</a></div><div><br></div><div>Reading the OSM utils source code I thought an error would be raised in case of problems [2]</div>
<div>but I didn't received any notice.</div><div><br></div><div>giovanni</div><div><br></div><div>[1] <a href="http://geodati.fmach.it/gfoss_geodata/osm/output_osm_regioni/toscana.osm.bz2">http://geodati.fmach.it/gfoss_geodata/osm/output_osm_regioni/toscana.osm.bz2</a></div>
<div>[2] <a href="https://github.com/qgis/QGIS/blob/master/src/analysis/openstreetmap/qgsosmdatabase.cpp#L500">https://github.com/qgis/QGIS/blob/master/src/analysis/openstreetmap/qgsosmdatabase.cpp#L500</a></div><div><br>
</div><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div></div>