Modified for use with the vdoj_spatial field.
This extension contains plugins that add geospatial capabilities to CKAN, including:
- A spatial field on the default CKAN dataset schema, that uses PostGIS as the backend and allows to perform spatial queries and to display the dataset extent on the frontend.
- Harvesters to import geospatial metadata into CKAN from other sources in ISO 19139 format and others.
- Commands to support the CSW standard using pycsw.
- Plugins to preview spatial formats such as GeoJSON.
Full documentation, including installation instructions, can be found at:
http://docs.ckan.org/projects/ckanext-spatial
- Developer mailing list: [email protected]
- Developer IRC channel: #ckan on irc.freenode.net
- Issue tracker
For contributing to ckanext-spatial or its documentation, follow the same guidelines that apply to CKAN core, described in CONTRIBUTING.
This material is copyright (c) 2006-2011 Open Knowledge Foundation.
It is open and licensed under the GNU Affero General Public License (AGPL) v3.0 whose full text may be found at:
http://www.fsf.org/licensing/licenses/agpl-3.0.html
- { "type": "Point", "coordinates": [-3.145,53.078] }
- {"type": "Polygon", "coordinates": [[[-10.0, -10.0], [10.0, -10.0], [10.0, 10.0], [-10.0, 10.0]]]}
- { "type": "Polygon", "coordinates": [ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ], [ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2] ]]}
- { "type": "MultiPoint", "coordinates": [ [100.0, 0.0], [101.0, 1.0] ] }
- { "type": "MultiPolygon", "coordinates": [ [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]], [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]], [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]]] ] }
- { "type": "MultiLineString", "coordinates": [ [ [100.0, 0.0], [101.0, 1.0] ], [ [102.0, 2.0], [103.0, 3.0] ] ] }
When re-initializing database after issuing paster db clean -c /etc/ckan/default/production.ini, it is necessary to issue: sudo -u postgres psql -d ckan_default -f postgis_resetup.sql Instead of issuing, sudo -u postgres psql -d ckan_default -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
Then you can issue: sudo -u postgres psql -d ckan_default -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
Note: there are existing checks in postgis_resetup.sql