[Tile-serving] [openstreetmap/osm2pgsql] Flex backend: getting an "attempt to index global 'osm2pgsql'" error (#1183)

mmd notifications at github.com
Fri May 22 11:59:28 UTC 2020


Hmm, this is a bit unexpected. It seems you're still running the Lua script in the "old" world and not using the new flex backend at all!

According to https://github.com/openstreetmap/osm2pgsql/blob/master/docs/flex.md#command-line-options, you would need to:

* Change `-o flex` to `-O flex`
* Replace `--style 'src/openstreetmap-carto/openstreetmap-carto.style' --tag-transform-script 'src/openstreetmap-carto/openstreetmap-carto.lua'` by `-S src/openstreetmap-carto/openstreetmap-carto.lua`. There's no need to provide a .style file, all the information is inside the lua script.

I haven't tested --tablespace-slim-data and --tablespace-slim-index in detail.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1183#issuecomment-632655473
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200522/c945b247/attachment.htm>


More information about the Tile-serving mailing list