[Qgis-developer] extract traffic signal positions from OSM data
Dane Springmeyer
blake at hailmail.net
Tue Jun 8 00:16:49 EDT 2010
On Jun 7, 2010, at 4:04 PM, Anita Graser wrote:
> Thanks Barry,
>
> I found that the OSM XAPI is pretty powerful. Downloading all traffic signals is as easy as:
>
> http://xapi.openstreetmap.org/api/0.6/node[highway=traffic_signals][bbox=16.26,48.18,16.31,48.20]
>
> Still the OSM plugin for QGIS doesn't seem to download/interpret/render traffic signals.
I think they will come through as points, and OSM plugin tends to render points as one pixel so they are nearly invisible.
However, I've not confirmed as the OSM plugin crashes for me after parsing (on osx).
I did however using osm2pgsql to import the osm file generated with your above xapi request, and they show up as points (within the planet_osm_point table) with the highway field populated with the tag.
Zipped shapefile attached.
- dane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: traffic.zip
Type: application/zip
Size: 2566 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100607/b429f9d9/traffic.zip
-------------- next part --------------
>
> Best wishes,
> Anita
>
>
> Am 07.06.2010, 12:51 Uhr, schrieb Barry Rowlingson <b.rowlingson at lancaster.ac.uk>:
>
>> On Mon, Jun 7, 2010 at 11:28 AM, Anita Graser <anitagraser at gmx.at> wrote:
>>> Hi,
>>>
>>> I noticed that on openstreetmap.org, you can see positions of traffic signals (traffic lights). When I download OSM data of the same region using Openstreetmap plugin 0.5, it seems like these points are not downloaded. From their wiki, I found that it should be a "highway" attribute, but in highway column I only saw "bus_stop" entries.
>>>
>>> Does anyone know how to download information on traffic lights from OSM via the existing plugin or where I should apply changes?
>>
>> I've just grabbed some OSM data using the OSM API, and traffic
>> signals are tagged thus:
>>
>> <node id="2405151" lat="54.0449694" lon="-2.7991142" user="Darren
>> Poulson" uid="23507" visible="true" version
>> ="2" changeset="621616" timestamp="2008-01-13T14:08:27Z">
>> <tag k="highway" v="traffic_signals"/>
>> </node>
>>
>> That was in the XML returned by:
>>
>> wget "http://api.openstreetmap.org/api/0.6/map?bbox=-2.80,54.042,-2.77,54.045"
>>
>> so I don't know why you're not seeing them, unless you didnt get the
>> right area....
>>
>> Barry
>
>
> --
> Erstellt mit Operas revolution?rem E-Mail-Modul: http://www.opera.com/mail/
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the Qgis-developer
mailing list