On Sat, Nov 28, 2009 at 12:47, David Paleino <da...@debian.org> wrote:

> I'm trying to create small dumps following some administrative borders. For
> example, starting from the Italy planet, I'd like to create dumps of regions
> and provinces.
>
> Here's what I did:
>
> a) download the members of the proper relation with JOSM (maybe I could
>   automate this with osmosis)
> b) manually edit (some scripting will soon come) the ways to remove <tag
>   k='*' v='*' /> and only add polygon_file="foo.poly" and
>   polygon_id="way_N"

have a look here as well: http://wmaz.math.uni-wuppertal.de/olbricht/osm/

> $ bin/osmosis --read-api left=12.373 right=12.886 bottom=37.573 top=37.89 \
>> --bounding-polygon file="../mazara.poly" idTrackerType="BitSet" \
>> completeWays="yes" --write-xml file="../mazara-poly.osm"
>
> What I get in "mazara-poly.osm" is some ways, not all the objects contained
> within the polygon.
>
> If I skip "completeWays=yes", I'm only getting a bunch of nodes (the dump
> seems ok, but josm only shows some nodes).
>
> With completeWays=yes, I'm getting _some_ ways, i.e. those crossing the
> borders of the polygon, plus some others inside (connected to the former
> ones). But I'm not getting (almost) any way starting and ending within the
> polygon, nor any node/building/anything else. I'm also getting a small
> adjacent administrative border, but this would be a minor issue at the
> current state.
>
> Any help would be much apreciated :)

Experiment also with clipIncompleteEntities=true

if you add it then the task will modify ways to include nodes inside
the bbox. With this the ways will then stop at the last available
node.

-- 
-S

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to