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

Nigel Babu nigel.babu at okfn.org
Fri Jun 14 08:38:40 UTC 2013


Hi Henrik,

To activate the python virtualenv in a packge install, do the following:

sudo su
source /usr/lib/ckan/default/bin/activate

Then you can install the packages into the virtualenv like so:

pip install -e git+
https://github.com/okfn/ckanext-spatial.git@stable#egg=ckanext-spatial

Alternatively, you can directly use the following:

sudo /usr/lib/ckan/default/bin/pip -e git+
https://github.com/okfn/ckanext-spatial.git@stable#egg=ckanext-spatial

Please feel free to email the list in case you face trouble.




Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 14 June 2013 11:34, Henrik Aagaard Sørensen <BU1G at tmf.kk.dk> wrote:

> Hi Domonik.
>
> Cool, that looks great.
>
> I don't know if this is too much to ask, please let me know if it is.
> However, I tried to read the REAMDE on how to install ckanext-spatial and
> it only told how to when using python enviroment etc. and I've installed
> CKAN via packages using Apache etc.
>
> Do you know how to install it when running production?
>
> -----Oprindelig meddelelse-----
> Fra: ckan-dev-bounces at lists.okfn.org [mailto:
> ckan-dev-bounces at lists.okfn.org] På vegne af Dominik Moritz
> Sendt: 13. juni 2013 23:39
> Til: CKAN Development Discussions
> Emne: Re: [ckan-dev] GeoJSON-preview in CKAN, possible?
>
> 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
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130614/ff3583bc/attachment-0001.html>


More information about the ckan-dev mailing list