[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:51:45 UTC 2022


@joto commented on this pull request.



> +     {"dest-table", required_argument, nullptr, 'T'},
+     {"width", required_argument, nullptr, 'w'},
+     {"zoom", required_argument, nullptr, 'z'},
+     {"img-path", required_argument, nullptr, 200},
+     {"img-table", required_argument, nullptr, 201},
+     {"log-sql", no_argument, nullptr, 202},
+     {nullptr, 0, nullptr, 0}}};
+
+static std::array<uint32_t, 4> get_extent_from_db(pg_conn_t *connection,
+                                                  std::string const &table,
+                                                  uint32_t zoom)
+{
+    connection->query(
+        PGRES_COMMAND_OK,
+        "PREPARE get_extent AS WITH ex AS "
+        "(SELECT ST_EstimatedExtent('{}', 'geom') AS e) "

fixes in new version

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

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


More information about the Tile-serving mailing list