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

Jochen Topf notifications at github.com
Tue Dec 13 19:52:38 UTC 2022


@joto commented on this pull request.



> +
+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
+  this is in Mercator map units.
+* `-g, --group-by-column=COL`: Set this to the column describing the type of

That's not possible. If that's really something we need, we can add that later. But I am trying to keep the config to a minimum.

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

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


More information about the Tile-serving mailing list