[Tile-serving] [osm2pgsql-dev/osm2pgsql] as_linestring() and likely other geometry transform functions can only be called from the process_way() function, not custom functions. (Issue #2171)
Jochen Topf
notifications at github.com
Thu Apr 11 07:12:34 UTC 2024
Ah, I think there is a misunderstanding here with the wording of the error message. You can call the `as_*` geometry creation functions from any function you want as long as that function is ultimately called from the correct `osm2pgsql.process_node/way/relation()` function. The issue isn't really about which function it is called from, but that the OSM object you call it on is of the correct type. I'll think about how to improve that error message.
I am pretty sure everything that could be done with `add_row()` can be done with `insert()`. If you can not get something to work, post a minimal working example here and we can have a look at it.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2171#issuecomment-2049061305
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2171/2049061305 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240411/ed5eabc2/attachment.htm>
More information about the Tile-serving
mailing list