[Tile-serving] [osm2pgsql-dev/osm2pgsql] New feature: Check location of OSM objects against list of regions (PR #2333)
Jochen Topf
notifications at github.com
Fri May 30 12:35:32 UTC 2025
@joto commented on this pull request.
> @@ -128,8 +128,10 @@ def setup_lua_tagtransform(context):
def setup_inline_lua_style(context):
outfile = context.workdir / 'inline_style.lua'
outfile.write_text(context.text)
- context.osm2pgsql_params.extend(('-S', str(outfile)))
-
+ if '-S' in context.osm2pgsql_params:
+ context.osm2pgsql_params[context.osm2pgsql_params.index('-S') + 1] = str(outfile)
+ else:
+ context.osm2pgsql_params.extend(('-S', str(outfile)))
Okay, fixed.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2333#discussion_r2115847721
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2333/review/2881225035 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250530/38a7a501/attachment.htm>
More information about the Tile-serving
mailing list