[ckan-dev] ckan-spatial, WMS Viewer

Armin Retterath armin.retterath at gmail.com
Wed Apr 17 11:55:46 UTC 2013


hi guillaume,

maybe this files help you ;-)

i made them for 1.8.1b but maybe they are the same as for 2.0.

the parsing of the capabilities was a little bit ugly before ;-)

cheers

armin

ckanext-spatial/ckanext/spatial/public/ckanext/spatial/js/wms_preview.js
ckanext-spatial/ckanext/spatial/controllers/view.py



2013/4/17 Guillaume Sueur <no-reply at neogeo-online.net>

> Hi list,
>
> I've been looking for why the WMS preview doesn't work on my fresh CKAN
> 2.0 installation. I've found out (in wms_preview.js) that the getCapabities
> URL seems wrong when it gives :
> /packages?id=wms-geologie-**brgm&resource_id=4a198fbc-**
> 0589-4a24-977b-bb037650c229&**SERVICE=WMS&REQUEST=**
> GetCapabilities&VERSION=1.1.1
>
> When the getCapabilities request is done, it's the content of the CKAN
> package page which is returned, instead of proxyfying to the WMS service.
>
> I don't understand why it behaves like that. I may have missed a setting.
>
>
> Any clue ?
>
> Thanks
>
> Guillaume
>
>
>
> ______________________________**_________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/**listinfo/ckan-dev<http://lists.okfn.org/mailman/listinfo/ckan-dev>
> Unsubscribe: http://lists.okfn.org/mailman/**options/ckan-dev<http://lists.okfn.org/mailman/options/ckan-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130417/7076d921/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view.py
Type: application/octet-stream
Size: 1277 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130417/7076d921/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wms_preview.js
Type: application/x-javascript
Size: 6617 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130417/7076d921/attachment-0001.js>


More information about the ckan-dev mailing list