Re: [OSM-dev] Extracting just national boundaries

2011-08-11 Thread Curt Nowak
, 7. August 2011 20:13 An: Curt Nowak; dev@openstreetmap.org Betreff: Re: [OSM-dev] Extracting just national boundaries Hi Curt, 1.Run: Read all relations and store their dependencies (maybe in a very simple database, or even in RAM) Then figure out which relations you *really* need. 2. Run

Re: [OSM-dev] Extracting just national boundaries

2011-08-11 Thread marqqs
-hildesheim.de An: \'dev@openstreetmap.org\' dev@openstreetmap.org Betreff: Re: [OSM-dev] Extracting just national boundaries Hi Markus, you were right. I tried osmfilter and so far it seems that it has worked as expected. Thanks for your help. Curt PS: Why is there that strict limit

Re: [OSM-dev] Extracting just national boundaries

2011-08-07 Thread Curt Nowak
] Sent: 06 August 2011 17:44 To: dev@openstreetmap.org Subject: Re: [OSM-dev] Extracting just national boundaries Hi, On 06.08.2011 17:38, Peter Körner wrote: Am 05.08.2011 17:24, schrieb Igor Podolskiy: Basically, to implement a --used-relations you need to compute the transitive closure

Re: [OSM-dev] Extracting just national boundaries

2011-08-07 Thread marqqs
2011 19:25:51 +0200 Von: Curt Nowak no...@bwl.uni-hildesheim.de An: dev@openstreetmap.org dev@openstreetmap.org Betreff: Re: [OSM-dev] Extracting just national boundaries Hello Igor and Peter, I'll take a look into --cascading-relations. Maybe I can adapt something from there. I'm thinking

Re: [OSM-dev] Extracting just national boundaries

2011-08-06 Thread Peter Körner
Am 05.08.2011 17:24, schrieb Igor Podolskiy: Basically, to implement a --used-relations you need to compute the transitive closure of a possibly cyclic graph with relations as nodes and memberships as edges, and this is not trivial if all you have is a data stream and no loops - which is the

Re: [OSM-dev] Extracting just national boundaries

2011-08-06 Thread Igor Podolskiy
Hi, On 06.08.2011 17:38, Peter Körner wrote: Am 05.08.2011 17:24, schrieb Igor Podolskiy: Basically, to implement a --used-relations you need to compute the transitive closure of a possibly cyclic graph with relations as nodes and memberships as edges, and this is not trivial if all you have

Re: [OSM-dev] Extracting just national boundaries

2011-08-05 Thread Curt Nowak
-Ursprüngliche Nachricht- Von: mar...@gmx.eu [mailto:mar...@gmx.eu] Gesendet: Donnerstag, 4. August 2011 19:34 An: Curt Nowak; igor.podols...@vwi-stuttgart.de Cc: dev@openstreetmap.org Betreff: Re: [OSM-dev] Extracting just national boundaries Should work, yes. I too would suggest using

Re: [OSM-dev] Extracting just national boundaries

2011-08-05 Thread marqqs
: Re: [OSM-dev] Extracting just national boundaries Hi Curt, is there an easy way to extract only national boundaries from an osm/pbf file? Running osmosis with --tag-filter accept-relation boundary=administrative and then --tag-filter accept-relation admin_level=2 won't work

Re: [OSM-dev] Extracting just national boundaries

2011-08-05 Thread marqqs
-Ursprüngliche Nachricht- Von: mar...@gmx.eu [mailto:mar...@gmx.eu] Gesendet: Donnerstag, 4. August 2011 19:34 An: Curt Nowak; igor.podols...@vwi-stuttgart.de Cc: dev@openstreetmap.org Betreff: Re: [OSM-dev] Extracting just national boundaries Should work, yes. I too would

Re: [OSM-dev] Extracting just national boundaries

2011-08-05 Thread Igor Podolskiy
Hi, But as far as I understand, those relations will have other relations as their members. If these other relations do *not* have the above mentioned tags, they will *not* be in the output file (but they should). hmm, I don't really know about member relation inclusion - and there's no

Re: [OSM-dev] Extracting just national boundaries

2011-08-05 Thread Curt Nowak
from Hildesheim, Curt -Ursprüngliche Nachricht- Von: Igor Podolskiy [mailto:igor.podols...@vwi-stuttgart.de] Gesendet: Freitag, 5. August 2011 15:56 An: dev@openstreetmap.org Betreff: Re: [OSM-dev] Extracting just national boundaries Hi, But as far as I understand, those relations

Re: [OSM-dev] Extracting just national boundaries

2011-08-05 Thread Igor Podolskiy
Hi Curt, the relation 11980 seems to be a part of an experiment/proposal to make the big boundary relations easier to handle (for some definition of easy - it definitely doesn't make it easier to _filter_ them...): http://wiki.openstreetmap.org/wiki/France_boundary_pyramidal_construction

Re: [OSM-dev] Extracting just national boundaries

2011-08-04 Thread Igor Podolskiy
Hi Curt, is there an easy way to extract only national boundaries from an osm/pbf file? Running osmosis with --tag-filter accept-relation boundary=administrative and then --tag-filter accept-relation admin_level=2 won't work because this will filter away members of admin_level=2 relations that