[Tile-serving] [openstreetmap/osm2pgsql] Support for TWKB output (#1085)
Jochen Topf
notifications at github.com
Thu Jan 26 12:55:08 UTC 2023
Unfortunately you can not use `ST_AsTWKB()` with osm2pgsql, because we are using `COPY` to import the data which doesn't allow putting a function in there. You could do something with a trigger though. If PostGIS would simply allow "magic" conversion of the normal `geometry` type to `twkb` it would simply work. I don't see any reason why that wouldn't be possible but PostGIS doesn't allow it.
Yes, the geometry classes in osm2pgsql use double precision floating point values for the coordinates. That's what you have to work with.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1085#issuecomment-1404965574
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/issues/1085/1404965574 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230126/5432f7a2/attachment.htm>
More information about the Tile-serving
mailing list