Skip to content

Geography datatype #2152

Answered by joto
JakobMiksch asked this question in Q&A
Mar 31, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

It shouldn't be too difficult to add this. We'll just need a way to tell osm2pgsql in the config file that we want geography instead of geometry columns. We probably also need to check the SRID, because geography types only allow lat/lon SRIDs and we want to give a nice error message instead of failing with an SQL error. I don't have much experiences with the geography type, but I think that's probably it.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@pnorman
Comment options

@joto
Comment options

@JakobMiksch
Comment options

@joto
Comment options

@JakobMiksch
Comment options

Answer selected by JakobMiksch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants