[ckan-dev] Fwd: Error uploading geojson files to datastore.

Matthew Fullerton matthew at smartlane.de
Tue Apr 21 09:18:29 UTC 2015


Its not possible to upload non-tabular data to the datastore. You may want to look at the MapStore (

https://github.com/geosolutions-it/ckanext-mapstore)<https://github.com/geosolutions-it/ckanext-mapstore> though I have no experience with it :(


Projekt SMARTLANE

matthew at smartlane.de<mailto:florian at smartlane.de>
T +49.89.289.28575
F +49.89.289.22333
www.smartlane.de<http://www.smartlane.de/>

EXIST-Gründungsvorhaben "Tapestry"
c/o Lehrstuhl für Verkehrstechnik
Technische Universität München
Arcisstraße 21
80333 München

Gefördert vom Bundesministerium für Wirtschaft und Technologie
aufgrund eines Beschlusses des Deutschen Bundestages.

________________________________
Von: ckan-dev <ckan-dev-bounces at lists.okfn.org> im Auftrag von Irini Karnachoriti <karnaxoriti at gmail.com>
Gesendet: Montag, 20. April 2015 21:50
An: ckan-dev at lists.okfn.org
Betreff: [ckan-dev] Fwd: Error uploading geojson files to datastore.

Hello,
I have installed a ckan instance and while the datastore works fine with other file formats,
when I try to upload a geojson file I get a 409 error, even when I use geojson files from other working ckan instances from the web.
For example for this geojson file:


{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}

after the file is uploaded to ckan, when it tries to upload it to the datastore I get the following error:

Error: CKAN DataStore bad response. Status code: 409 Conflict. At: http://localhost/api/3/action/datastore_create.
HTTP status code: 409
Response: {"help": "http://localhost/api/3/action/help_show?name=datastore_create", "success": false, "error": {"fields": ["\"{ \"type\": \"Feature\"\" is not a valid field name"], "__type": "Validation Error"}...
Requested URL: http://localhost/api/3/action/datastore_create

What can be wrong?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150421/2f391e53/attachment-0003.html>


More information about the ckan-dev mailing list