[OSM-dev] osm2pgsql polygon handling semantic?

Sven Geggus lists at fuchsschwanzdomain.de
Mon Oct 19 12:50:51 UTC 2015


Hello,

looking at the code of osm2pgsql and checking with a hand-crafted .osm file
I came to the conclusion that polygons in osm2pgsql are handled in the
following way:

If a polygon is defined in the .style file a function is called which
generates the simple-feature geometry object.  If this function is unable to
generate a polygon a linestring is created.

Am I right in this assumption?

The reason for this question is that I'm trying to build a imposm3 style
which will create a osm2pgsql compatible database.  This has (among other
things) the obvous advantage, that some additional tables for more exotic
features are easy to create.

Regards

Sven

-- 
Exploits and holes are a now a necessary protection against large
corporate interests. (Alan Cox)

/me is giggls at ircnet, http://sven.gegg.us/ on the Web



More information about the dev mailing list