[ckan-dev] GeoJSON-preview in CKAN, possible?

Dominik Moritz dominik.moritz at okfn.org
Thu Jun 13 21:38:47 UTC 2013


Hi Henrik,

I wrote an extension today and submitted a pull request to ckanext-spatial [1].

Best wishes,
Dominik


[1] https://github.com/okfn/ckanext-spatial/pull/21

On 13 Jun 2013, at 16:11, Adrià Mercader <adria.mercader at okfn.org> wrote:

> Hi Henrik,
> 
> There is not an existing extension that can display GeoJSON.
> 
> It should be quite easy to implement as a custom preview using the
> IResourcePreview extension [1] and Leaflet or OpenLayers as backend.
> The implementation would be similar to this basic WMS previewer on the
> spatial extension [2].
> 
> Hope this helps,
> 
> Adrià
> 
> 
> [1] http://docs.ckan.org/en/latest/writing-extensions.html?highlight=interfaces#ckan.plugins.interfaces.IResourcePreview
> [2] https://github.com/okfn/ckanext-spatial/blob/master/ckanext/spatial/nongeos_plugin.py#L9
> 
> On 11 June 2013 15:37, Henrik Aagaard Sørensen <BU1G at tmf.kk.dk> wrote:
>> I guess everything is possible in CKAN J
>> 
>> 
>> 
>> However, are there any existing functionality or extension for showing
>> GeoJSON data directly on a map in CKAN?
>> 
>> 
>> 
>> Regards
>> 
>> 
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>> 
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev

Dominik Moritz
CKAN developer  |  skype: d.moritz  |  @doobly_doo
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/  |  @okfn  |  http://ckan.org  |  @CKANproject





More information about the ckan-dev mailing list