You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2011-05-07 07:34:55

Jouke1
Member
Registered: 2011-03-14
Posts: 28

Change way tag if inside area

I would like to pre process osm-data before feeding it to my routing engine. For instance, I would like to change a highway=unclassified to highway=residential if that way resides completeley in an area with landuse=residential. But I have no clue on how to do this.

Offline

#2 2011-05-14 19:44:29

Jouke1
Member
Registered: 2011-03-14
Posts: 28

Re: Change way tag if inside area

anyone?

Offline

#3 2011-05-14 21:33:58

cartinus
Member
From: Houten
Registered: 2008-01-06
Posts: 502

Re: Change way tag if inside area

I have no practical experience with this, but I have seen enough on these forums and the mailinglists that if this task was given to me, I would start with searching the internet for information about Postgis, ST_within and ST_contains.

Offline

#4 2011-05-14 23:26:49

Marqqs
Member
Registered: 2011-01-01
Posts: 724

Re: Change way tag if inside area

Just out of curiosity, why do you want to change "residential" do "unclassified"? These tags have different meanings...

Offline

#5 2011-05-18 12:57:59

Jouke1
Member
Registered: 2011-03-14
Posts: 28

Re: Change way tag if inside area

In the netherlands, most of the residential ways, are not tagged as such, instead most of them are tagged as unclassified. However, a dutch institution provided OSM with extensive landuse data in the form of area's. So if I could project de area-data onto the ways that lie within, I would be able to give those ways a proper residential tag and thus, giving it a speed penalty in the routing engine.

Cartinus: Thanks!

Offline

Board footer

Powered by FluxBB