[Tile-serving] [openstreetmap/osm2pgsql] WIP: Add code to generalize polygons using two different strategies (PR #1830)

Jochen Topf notifications at github.com
Mon Dec 12 12:25:57 UTC 2022


@joto commented on this pull request.



> +
+## Parameters
+
+For a full list of parameters see `osm2pgsql-gen -h`.
+
+* `-s, --strategy=STRATEGY`: Set the strategy used for generalization. Currently
+  supported are `raster-union` and `vector-union`.
+* `-m, --margin=MARGIN`: This sets the margin around the tile as a fraction of
+  the tile size. So a value of 0.1 sets a 10% boundary on each side of the tile,
+  so as a result the tiles will overlap by 20% of their size. When using the
+  `raster-union` strategy the margin will be rounded up to the nearest multiple
+  of 64 pixels.
+* `-w, --width=WIDTH`: Size of the imaged rendered when using the `raster-union`
+  strategy, not used in the `vector-union` strategy.
+* `-b, --buffer=BUFFER`: The amount by which the polygons will be buffered. For
+  the `raster-union` strategy this is in pixels, for the `vector-union` strategy

Yeah, sorry, there is a lot the documentation doesn't spell out clearly. That's because this is still work-in-progress. You have to do a bit of experimenting if you want to try this.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1830#discussion_r1045767683
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1830/review/1213435230 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221212/7f268162/attachment.htm>


More information about the Tile-serving mailing list