[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    Re: [Qgis-developer] New OpenStreetMap integration
From:       Rudi von Staden <rudivs () gmail ! com>
Date:       2013-05-29 8:56:13
Message-ID: CAOJAE5riZw+euk8+L5sGErc0eWqEcas6rVs5QanQmhRC+MjSiw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm getting this error on a recent master if I try to download data in a
non-geographic projection:

=============

Download failed.

Error downloading
http://overpass-api.de/api/interpreter?data=(node(-2.96917e+06,3.14947e+06,-2.96473e+06,3.15641e+06);%3C;);out;
                
- server replied: Bad Request

=============


Might be good to check the projection and give a more useful message if
it's not geographic (or translate coordinates before download).


Regards,

Rudi




On Thu, Feb 28, 2013 at 11:35 PM, Martin Dobias <wonder.sk@gmail.com> wrote:

> Hi all
> 
> so finally I have pushed my initial work on OpenStreetMap integration
> to master... d'oh I have missed The Open Data Day (Feb 23) by few
> days! The idea is to completely replace the current OpenStreetMap
> provider and plugin. As announced in the list before, the new OSM
> support is read-only and right now I have no plans to add editing
> functionality. Editing would mean a _lot_ of work - map tools,
> tracking of changes, conflict resolution - and there are already great
> programs for editing OSM data.
> 
> If you would like to test the new stuff, go to menu Vector >
> OpenStreetMap. No need to enable any plugins. The workflow should be:
> 0. get OSM XML file (from web or download in GUI)
> 1. import XML file to a SQLite topology database (once)
> 2. export SpatiaLite layers from topology with a fixed set of tags -
> attributes
> 
> Integrated download uses Overpass API, so you should be able to
> download data from any extent size. The download server in GUI is
> currently fixed to overpass-api.de. When using download, make sure to
> set high timeout (Options > Network > Timeout for network requests) -
> currently there's a problem with QGIS network manager - it will time
> out after the fixed time even if the data is being continuously
> received.
> 
> The work is by no means complete, there are various pieces missing,
> though it should be already usable. Some features I would like to add:
> - advanced download queries (e.g. filtering by tags)
> - filtering on export (e.g. export only railroads, only restaurants)
> - python bindings
> - support for relations
> - identification GUI (e.g. see all tags, even those not exported)
> 
> There is a low-level API in qgis analysis library which should allow
> 3rd party tools/plugins do some work with OSM data (currently
> QgsOSMDownload, QgsOSMXmlImport and QgsOSMDatabase classes).
> 
> Please let me know what do you think about it or if you encounter any bugs.
> 
> I will be removing the OSM provider+plugin very soon. This is another
> piece from the master plan for removal of old symbology (OSM provider
> implements a renderer based on old symbology).
> 
> Martin
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 


[Attachment #5 (text/html)]

<div dir="ltr">I&#39;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.96 \
473e+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&#39;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">&lt;<a href="mailto:wonder.sk@gmail.com" \
target="_blank">wonder.sk@gmail.com</a>&gt;</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&#39;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 &gt;<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 &gt; Network &gt; Timeout for network requests) -<br> currently \
there&#39;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>



_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic