[Tile-serving] [openstreetmap/osm2pgsql] Add tilesets to flex output allowing more flexible expire configuration (PR #1912)

Jochen Topf notifications at github.com
Tue Feb 14 16:18:59 UTC 2023


@joto commented on this pull request.



> +    } else {
+        throw std::runtime_error{
+            "Value of 'maxzoom' field must be between 1 and 20."};
+    }
+    lua_pop(lua_state, 1); // "maxzoom"
+
+    // optional "minzoom" field
+    value = luaX_get_table_optional_uint32(lua_state, "minzoom", -1,
+                                           "The 'minzoom' field in a tileset");
+    if (value >= 1 && value <= 20) {
+        new_tileset.set_minzoom(value);
+    } else if (value != 0) {
+        throw std::runtime_error{
+            "Value of 'minzoom' field must be between 1 and 20."};
+    }
+    lua_pop(lua_state, 1); // "minzoom"

I'll add that.

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

Message ID: <openstreetmap/osm2pgsql/pull/1912/review/1297945044 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230214/fe633954/attachment-0001.htm>


More information about the Tile-serving mailing list