[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)
mboeringa
notifications at github.com
Thu Apr 11 04:24:38 UTC 2024
@joto
I have had a closer look at my style and Paul's work for it, and I really have to come to the conclusion that unless the logic for these checks is changed, _I will be unable to upgrade to osm2pgsql v2.0 once it comes out_. This is an absolute blocking issue for me.
There is just no way to convert 'add_row' to 'insert' with current logic and the processing needed in my style.
This is especially related to OSM boundary relations, where there is the direct need to insert relation members both in the 'planet_osm_line' and 'planet_osm_polygon' tables in the 'process_relation' callback function. This is related to Paul's nice work to allow de-duplicated OSM boundary relation line members to used to solve the issue of overlapping boundary relation symbology as based on polygons.
AFAI can tell from the code review now, this part of the code cannot be converted to the new 'insert' function logic with current checks in osm2pgsql, it will fail on the error thrown. This was never a problem with the 'add_row' function.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2171#issuecomment-2048903797
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2171/2048903797 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240410/9d835c8c/attachment-0001.htm>
More information about the Tile-serving
mailing list