<div dir="ltr"><div>Martin,<br><br>Nice, glad the OSM download/import support is being worked on. <br><br></div>I've just tried to import two OSM files: one which I had saved through JOSM, and the other one downloaded just now via your Download OSM Data dialogue. With both files, QGIS fails to import data with this error:<br>
<br>Failed to import OSM data:
<p style="margin:0px;text-indent:0px">Error executing SQL command:</p>
<p style="margin:0px;text-indent:0px">wrong number of arguments to function InitSpatialMetadata()</p>
<p style="margin:0px;text-indent:0px">SQL:</p>
<p style="margin:0px;text-indent:0px">SELECT InitSpatialMetadata('WGS84')</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Running on a osgeo4win master build (revision 3e8be6c).</p>
<p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Best,</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Mathieu<br></p><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 4:35 AM, Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com" target="_blank">wonder.sk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all<br>
<br>
so finally I have pushed my initial work on OpenStreetMap integration<br>
to master... d'oh I have missed The Open Data Day (Feb 23) by few<br>
days! The idea is to completely replace the current OpenStreetMap<br>
provider and plugin. As announced in the list before, the new OSM<br>
support is read-only and right now I have no plans to add editing<br>
functionality. Editing would mean a _lot_ of work - map tools,<br>
tracking of changes, conflict resolution - and there are already great<br>
programs for editing OSM data.<br>
<br>
If you would like to test the new stuff, go to menu Vector ><br>
OpenStreetMap. No need to enable any plugins. The workflow should be:<br>
0. get OSM XML file (from web or download in GUI)<br>
1. import XML file to a SQLite topology database (once)<br>
2. export SpatiaLite layers from topology with a fixed set of tags - attributes<br>
<br>
Integrated download uses Overpass API, so you should be able to<br>
download data from any extent size. The download server in GUI is<br>
currently fixed to <a href="http://overpass-api.de" target="_blank">overpass-api.de</a>. When using download, make sure to<br>
set high timeout (Options > Network > Timeout for network requests) -<br>
currently there's a problem with QGIS network manager - it will time<br>
out after the fixed time even if the data is being continuously<br>
received.<br>
<br>
The work is by no means complete, there are various pieces missing,<br>
though it should be already usable. Some features I would like to add:<br>
- advanced download queries (e.g. filtering by tags)<br>
- filtering on export (e.g. export only railroads, only restaurants)<br>
- python bindings<br>
- support for relations<br>
- identification GUI (e.g. see all tags, even those not exported)<br>
<br>
There is a low-level API in qgis analysis library which should allow<br>
3rd party tools/plugins do some work with OSM data (currently<br>
QgsOSMDownload, QgsOSMXmlImport and QgsOSMDatabase classes).<br>
<br>
Please let me know what do you think about it or if you encounter any bugs.<br>
<br>
I will be removing the OSM provider+plugin very soon. This is another<br>
piece from the master plan for removal of old symbology (OSM provider<br>
implements a renderer based on old symbology).<br>
<br>
Martin<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>