Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support geography columns #46

Open
pramsey opened this issue Jun 26, 2020 · 4 comments
Open

Support geography columns #46

pramsey opened this issue Jun 26, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@pramsey
Copy link
Collaborator

pramsey commented Jun 26, 2020

Geography columns are not automatically discovered in the catalog query, and may require special handling in the tile generation queries as well.

@pramsey pramsey added the enhancement New feature or request label Jun 26, 2020
@stephenhillier
Copy link
Contributor

I could submit a PR to solve this in a basic way by letting the table query discover geography columns and then casting to geometry before generating the tiles, but is that too simple? Would a linestring stored as geography have to be visualized as a great arc in order to be consistent with calculations using that same linestring?

@pramsey
Copy link
Collaborator Author

pramsey commented Jun 27, 2020

Hm... the tiles themselves are planar (3857) ... I think the main downside of casting agressively is that if the tables are using spatial indexes on geography you're getting no benefit out of them.

@joleeee
Copy link

joleeee commented Sep 22, 2024

Is this planned?

@pramsey
Copy link
Collaborator Author

pramsey commented Sep 30, 2024

It's not on a schedule or anything. It's a reasonable feature request, so I'm not closing it out. Patches accepted! It'll be kind of a big patch, I think unfortunately, since the SQL necessary to efficiently generate tiles from geography will be a bit different from that required for the pure geometry case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants