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

geometry & id column renaming #19

Open
KoalaGeo opened this issue Oct 25, 2022 · 0 comments
Open

geometry & id column renaming #19

KoalaGeo opened this issue Oct 25, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@KoalaGeo
Copy link
Collaborator

KoalaGeo commented Oct 25, 2022

Is your feature request related to a problem? Please describe.
When performing a CQL query you need to know the column names in postgres, however pygeoapi hides these from end users, and calls them geometry & id

Describe the solution you'd like
@volcan01010 found SQL Alchemy can do the renaming of reflected columns: https://docs.sqlalchemy.org/en/14/orm/mapping_columns.html#automating-column-naming-schemes-from-reflected-tables

Also @ximenesuk suggested ID's should be integers

Then when doing CQL can use geometry & id without having to know the actual column names

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

1 participant