ckan / ckanext-spatial

Geospatial extension for CKAN
http://docs.ckan.org/projects/ckanext-spatial
126 stars 193 forks source link

Patched Geoalchemy for PostGIS 2 #92

Closed florianm closed 9 years ago

florianm commented 9 years ago

To get CKAN 2.3 master (Dec 2014) to work with ckanext-spatial on a PostGIS 2.1.2 db (Ubuntu 14.04 FWIW), this patch uses a GelAlchemy version by @chokoswitch as I mentioned in #5 @amercader is of course right to suggest upgrading CKAN's SQLAlchemy - in the mean time, here's a patch that works at least for me.

clementmouchet commented 9 years ago

I'm running the branch 5-postgis-2-support https://github.com/ckan/ckanext-spatial/tree/5-postgis-2-support in Docker containers based on Ubuntu 9.3 & PostGIS 2. The only edit is pip-requirements where you need to replace GeoAlchemy by GeoAlchemy2>=0.2.4 You will have to remove GeoAlchemy because at the moment the changes rely on import errors.

amercader commented 9 years ago

Thanks @florianm, I think that the safest and more future-proof way of dealing with this is upgrading to GeoAlchemy2, rather than relying on this fork See #97

Edit: I stand corrected, it may support PostGIS 2.x as you mention

amercader commented 9 years ago

This has been dealt with in #97