[OSM-dev] tools to add buffer to poly

Florian Lohoff f at zz.de
Tue Nov 27 10:06:09 UTC 2018


On Tue, Nov 27, 2018 at 10:59:00AM +0100, Jochen Topf wrote:
> On Tue, Nov 27, 2018 at 10:10:35AM +0100, Florian Lohoff wrote:
> > i am using poly exports from Wambacher (thanks) to extract pbf
> > content from a germany export. Now i am trying to use the
> > admin boundarys from the pbfs which obviously get dropped
> > when using itself as boundary.
> 
> What are using to do the extracts? When you use "osmium extract", you
> could use the "smart strategy" and configure it to also extract the
> boundary (see man page). That should work without extra buffering.

I am extracting addresses adding postcode and city from boundarys if
missing.

Typically i have some nrw pbf around which i cut down to reasonable
test sizes (a city) with osmconvert which strips off the boundary as
the poly to cut down the pbf is the same as the boundary.

Works fine with the hand-crafted simplyfied polys from geofabrik. Using
the automatic generated polys from wambacher from our admin boundarys
drops the boundarys it is cutting with. So my obvious solution would
be to add some buffer to the poly.

I guess i need to have a look at the osmium command line - only using
libosmium so far ;)

Flo
-- 
Florian Lohoff                                                 f at zz.de
        UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20181127/b68d39e8/attachment.sig>


More information about the dev mailing list