[ckan-dev] Cannot upload GeoJSON [and JSON] resources do Datastore
Adrià Mercader
adria.mercader at okfn.org
Wed Aug 10 09:02:48 UTC 2016
Hi Sovello,
If you want to visualize GeoJSON files have a look at
https://github.com/ckan/ckanext-geoview, which has view plugins for
exactly that
Cheers,
Adrià
On 10 August 2016 at 09:53, Sovello Hildebrand Mgani
<sovellohpmgani at gmail.com> wrote:
> Thanks Mathew for the pointer,
>
> That did the trick of uploading to the datastore. However I want to be able
> to visualize some data on maps using the ckanext_mapviews extension which
> seems not to work. It fails with the error that the resource is not JSON
> Serializable.
> I would appreciate if you point me to the right direction how to visualize
> maps on CKAN!
>
> Thanks
>
> 2016-08-10 10:59 GMT+03:00 Matthew Fullerton <matt.fullerton at gmail.com>:
>>
>> Hi Sovello,
>> The datastore/datapusher is for tabular data (CSV, XLS, etc.), and not for
>> tree-like data like JSON.
>>
>> You could look into 'flattening' your JSON to CSV, e.g.
>> https://konklone.io/json/
>>
>> Best,
>> Matt
>>
>> On 10 August 2016 at 09:53, Sovello Hildebrand Mgani
>> <sovellohpmgani at gmail.com> wrote:
>>>
>>> Hi all!
>>> Am deploying CKAN for a project in Tanzania and had trouble uploading
>>> GeoJSON (and JSON) files through to the DataStore.
>>>
>>> It complains about Invalid Data Fields and Datapusher returns a HTTP
>>> Error Code 409.
>>>
>>> I have searched and looks like it's a common problem but didn't get a
>>> clear solution as to what I should do. I can use the API resource_create()
>>> without problems, only when I upload to Data Store that I get errors.
>>>
>>> I would appreciate if you can point me to a resource that I can go
>>> through or if you can help directly.
>>>
>>> Thanks in Advance!
>>>
>>> --
>>> :: Sovello Hildebrand Mgani ::
>>>
>>>
>>>
>>> --If you teach man to fish, you'll feed him a lifetime--
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>
>
>
> --
> :: Sovello Hildebrand Mgani ::
>
>
>
> --If you teach man to fish, you'll feed him a lifetime--
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
More information about the ckan-dev
mailing list