[Tile-serving] [openstreetmap/osm2pgsql] WIP: Add code to generalize polygons using two different strategies (PR #1830)
Paul Norman
notifications at github.com
Wed Dec 14 06:25:56 UTC 2022
@pnorman commented on this pull request.
> +
+This is part of a project to add generalization support to osm2pgsql. See
+https://osm2pgsql.org/generalization/ for more information.
+
+Generalization is currently only supported for Web Mercator (EPSG 3857). This
+is by far the most common use case, we can look at extending this later if
+needed.
+
+## Usage
+
+Run osm2pgsql as usual. This example assumes you have a table called
+`landcover` with a polygon geometry column called `geom` and a text column
+called `type` with the type of the landcover (forest, grass, etc.).
+
+Create a table `landcover_z10` with (at least) columns `geom` and `type` as
+well as integer columns `x`, and `y`. Then call this:
An index on `x, y` is also needed
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1830#pullrequestreview-1216859589
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1830/review/1216859589 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221213/acbc8f89/attachment.htm>
More information about the Tile-serving
mailing list