Re: [Qgis-user] Anybody knows how to download OSM Turn Restrictions?

2017-09-04 Thread Etienne Trimaille
Using QuickOSM, there are 2 specials Processing algorithms to deal with OSM
Relations which are not multipolygons, routes or boundaries. It's using XML
Sax parser because OGR can't read these relations. I agree, it's missing
some docs here.

2017-08-31 13:30 GMT+02:00 Andre Joost :

> Am 31.08.2017 um 07:14 schrieb Clifford Snow:
>
>> Overpass can grab turn restrictions. Read the wiki[1] for information on
>> how turn restrictions are tagged.
>>
>> For example, this query [1] grabs all turn restrictions in my county. Once
>> the query has run download a geojson for loading into QGIS
>>
>> [out:json][timeout:25];
>> // fetch area “skagit county” to search in
>> {{geocodeArea:skagit county}}->.searchArea;
>> // gather results
>> (
>>// query part for: “type=restriction and restriction=*”
>>
>>relation["type"="restriction"]["restriction"](area.searchArea);
>> );
>> // print results
>> out body;
>>
>>> ;
>>>
>> out skel qt;
>>
>>
> I tried QuickOSM with
>
>  relation["type"="restriction"]["restriction"]({{bbox}});> ;out;
>
> which returns the ways with their tags, but not the relation tags.
>
> The geojson result from Overpass turbo works better, but it is still a lot
> of coding necessary to get a road sign at the right pace and orientation
> from that. Maybe it is easier to use the raw XML format.
>
>
> Greetings,
> André Joost
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Anybody knows how to download OSM Turn Restrictions?

2017-08-31 Thread Andre Joost

Am 31.08.2017 um 07:14 schrieb Clifford Snow:

Overpass can grab turn restrictions. Read the wiki[1] for information on
how turn restrictions are tagged.

For example, this query [1] grabs all turn restrictions in my county. Once
the query has run download a geojson for loading into QGIS

[out:json][timeout:25];
// fetch area “skagit county” to search in
{{geocodeArea:skagit county}}->.searchArea;
// gather results
(
   // query part for: “type=restriction and restriction=*”

   relation["type"="restriction"]["restriction"](area.searchArea);
);
// print results
out body;

;

out skel qt;



I tried QuickOSM with

 relation["type"="restriction"]["restriction"]({{bbox}});> ;out;

which returns the ways with their tags, but not the relation tags.

The geojson result from Overpass turbo works better, but it is still a 
lot of coding necessary to get a road sign at the right pace and 
orientation from that. Maybe it is easier to use the raw XML format.


Greetings,
André Joost


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Anybody knows how to download OSM Turn Restrictions?

2017-08-30 Thread Clifford Snow
Overpass can grab turn restrictions. Read the wiki[1] for information on
how turn restrictions are tagged.

For example, this query [1] grabs all turn restrictions in my county. Once
the query has run download a geojson for loading into QGIS

[out:json][timeout:25];
// fetch area “skagit county” to search in
{{geocodeArea:skagit county}}->.searchArea;
// gather results
(
  // query part for: “type=restriction and restriction=*”

  relation["type"="restriction"]["restriction"](area.searchArea);
);
// print results
out body;
>;
out skel qt;

FYI - Read the OSM wiki[2] for information on how turn restrictions are
tagged to help improve the query or to narrow down the results

[1] http://overpass-turbo.eu/s/rn7
[2] https://wiki.openstreetmap.org/wiki/Relation:restriction


Clifford

-- 
@osm_seattle
osm_seattle.snowandsnow.us
OpenStreetMap: Maps with a human touch
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Anybody knows how to download OSM Turn Restrictions?

2017-08-30 Thread Andre Joost

Am 30.08.2017 um 11:09 schrieb DelazJ:

Hi,
I think that the OpenStreetMap native tool in QGIS offers a way to
filter an osm layer based on tags (you'll first need to download the
whole data from OSM and use the "Export Topology..." tool ). See
http://docs.qgis.org/2.18/en/docs/user_manual/managing_data_source/opening_data.html#importing-openstreetmap-vectors.



I doubt that this will work. From the relation of type restriction, you 
need the relation tags and the "role" tags for the ways and nodes to 
model a turn restriction.

See http://wiki.openstreetmap.org/wiki/Relation:restriction

The OSM importer tool, only builds points, lines and polygones, dropping 
the restriction relations completely.


QuickOSM (via Overpass) is able to laod the relation, but just models 
lines and points without the role information.


Add vector layer is able to import "other relations", but without geometry.

Even osm2pgsql does not import the turn restriction relations (like it 
does for routes).


Greetings,
André Joost




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Anybody knows how to download OSM Turn Restrictions?

2017-08-30 Thread DelazJ
Hi,
I think that the OpenStreetMap native tool in QGIS offers a way to
filter an osm layer based on tags (you'll first need to download the
whole data from OSM and use the "Export Topology..." tool ). See
http://docs.qgis.org/2.18/en/docs/user_manual/managing_data_source/opening_data.html#importing-openstreetmap-vectors.

Regards,
Harrissou

2017-08-30 10:31 GMT+02:00 magerlin :
> Like I can download and display road sections with attributes like speed from
> OSM in QGIS I would like to be able to also show turn restrictions in
> intersections like the data shown in this map:
> https://ahorn.lima-city.de/tr/   .
>
> I know it has to do with the tag "Relation:restriction" in OSM but I do not
> see the possibility to get these to QGIS in any of the OSM download/import
> methods I am aware of.
>
> Anybody have experiences in this?
>
>
>
> -
> Regards Morten
>
> Currently using Qgis 2.18.12 (OSGeo4),
> Windows 7, 64bit
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user