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

Problem executing custom SQL in GeoPackage #863

Open
curtis18 opened this issue Jun 7, 2022 · 1 comment
Open

Problem executing custom SQL in GeoPackage #863

curtis18 opened this issue Jun 7, 2022 · 1 comment

Comments

@curtis18
Copy link

curtis18 commented Jun 7, 2022

Hi there,

Thanks for creating this project. It is found that problem executing custom SQL in GeoPackage. Error: could not register providers: layer 'test_layer' problem executing custom SQL: no such function: ST_Transform. The transform of SRID to 4326 can be run on PostGIS, but not GeoPackagedue due to lacking of PROJ.4 module. Can PROJ.4 be loaded to Tegola for changing the SRID in GeoPackage on the fly?

https://www.gaia-gis.it/gaia-sins/spatialite-sql-4.3.0.html

@ARolek
Copy link
Member

ARolek commented Jun 8, 2022

@curtis18 what you're running into is the difference between GeoPackage and Spatialite. GeoPackage has a very defined schema but does not come with spatial processing functions. Spatialite does have spatial processing functions, which you're trying to leverage in the GeoPackage implementation. Even though both use SQLite, GeoPackage does not load the Spatialite extension.

There is an open issue from a long time ago around adding Spatialite (#115), it just has never been done. If you want to take a pass at trying to implement it I'm happy to support the effort.

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

No branches or pull requests

2 participants