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@ircnet, http://sven.gegg.us/ on the Web _______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev