<div dir="ltr">I'm getting this error on a recent master if I try to download data in a non-geographic projection:<div><br></div><div>=============<br><div>
<p style="margin:0px">Download failed.</p>
<p style="margin:0px">Error downloading <a href="http://overpass-api.de/api/interpreter?data=(node(-2.96917e+06,3.14947e+06,-2.96473e+06,3.15641e+06);%3C;);out">http://overpass-api.de/api/interpreter?data=(node(-2.96917e+06,3.14947e+06,-2.96473e+06,3.15641e+06);%3C;);out</a>; - server replied: Bad Request</p>
<p style="margin:0px">=============<br></p><p style="margin:0px"><br></p><p style="margin:0px">Might be good to check the projection and give a more useful message if it's not geographic (or translate coordinates before download).</p>
<p style="margin:0px"><br></p><p style="margin:0px">Regards,</p><p style="margin:0px">Rudi</p><p style="margin:0px"><br></p></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 11:35 PM, 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>