Ways can have a single node (or multiple nodes at the same location) in which case we can't build a proper linestring. This doesn't happen very often and is always an error in the data. This adds the functionality to flex Lua code to run as_point() on a way geometry which creates a point geometry from the first node.
This is mostly intended for the use case where we want to create a point from invalid ways to help fix them. It can also be used if you just need any point in that linestring for a rough position or so. You can view, comment on, or merge this pull request online at: https://github.com/osm2pgsql-dev/osm2pgsql/pull/2429 -- Commit Summary -- * Flex: Allow creating point geometry from way -- File Changes -- M src/geom-from-osm.cpp (13) M src/geom-from-osm.hpp (9) M src/output-flex.cpp (18) M tests/bdd/flex/geometry-linestring.feature (10) M tests/test-geom-linestrings.cpp (44) M tests/test-geom-points.cpp (14) -- Patch Links -- https://github.com/osm2pgsql-dev/osm2pgsql/pull/2429.patch https://github.com/osm2pgsql-dev/osm2pgsql/pull/2429.diff -- Reply to this email directly or view it on GitHub: https://github.com/osm2pgsql-dev/osm2pgsql/pull/2429 You are receiving this because you are subscribed to this thread. Message ID: <osm2pgsql-dev/osm2pgsql/pull/[email protected]>
_______________________________________________ Tile-serving mailing list [email protected] https://lists.openstreetmap.org/listinfo/tile-serving
