[ckan-dev] ckan-spatial, WMS Viewer

Heinrich Widmann widmann at dkrz.de
Wed May 8 12:14:55 UTC 2013


Hi,
we have the same problem here :
We upgraded CKAN 1.8  - with extension ckanext-spatial working - to 2.0,
but know no button ">> filter by location" and no view of a map (as well 
for datasets with spatial key) occur.

However the spatial extension seems to be active during upload of data :

2013-05-08 12:33:20,200 DEBUG [ckanext.spatial.plugin] Received: 
u'{"type":"Polygon","coordinates":[[[-88.542,0],[-88.542,358.125], 
[88.542, 0], [-88.542, 0]]]}'

2013-05-08 12:33:20,204 DEBUG [ckanext.spatial.lib] Created new extent 
for package 5c347a7c-f76c-4e80-9a84-deab52805a5b

To add resource_proxy to the plugins changed nothing.


Am 19.04.2013 17:24, schrieb Guillaume Sueur:
> Hi again Adria,
>
> I've managed to make it work, but only using a custom proxy based in 
> cgi-bin.
What exactly we have to do here ?
However we would prefer not to be forced to use a "custom proxy" here.

Best regards,
Heinrich
> Don't understand how CKAN proxyfying stuff is working.
>
> Best regards,
>
> Guillaume
>
> Le 19/04/13 16:21, Guillaume Sueur a écrit :
>> Hi Adria,
>>
>> That sounds like a very good idea indeed. I've activated the plugin, but
>> I still have the same error.
>> Do I have to tune the wms_preview.js ? There is a
>> var proxy = false
>> at the beginning. Does it have to point to the actuel proxy URL ?
>>
>> Thanks
>>
>> Guillaule
>>
>> Le 19/04/13 12:21, Adrià Mercader a écrit :
>>> Hi,
>>>
>>>> 2013/4/17 Guillaume Sueur <no-reply at neogeo-online.net>
>>>>> 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 
>>>>>
>>>>>
>>> The most likely issue is that you have not added the "resource_proxy"
>>> plugin to your ini file, eg
>>>
>>> ckan.plugins = resource_proxy ...
>>>
>>> I will update the docs to make this clearer
>>>
>>> This allows the js to do a remote request to a different server, and
>>> if the plugin is not enabled, the routes module will generate a
>>> default url (/packages)
>>>
>>>
>>>
>>> On 17 April 2013 12:55, Armin Retterath <armin.retterath at gmail.com>
>>> wrote:
>>>> 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 ;-)
>>> Thanks for this Armin, if you do a pull request we'll be happy to
>>> review and merge the changes.
>>>
>>> As I said, the WMS previewer was very quick and dirty, made only as an
>>> example.
>>>
>>>
>>> Thanks,
>>>
>>> Adrià
>>>
>>>
>>>
>>>
>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Guillaume
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> 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
>

-- 
-----------------------------\\---------------------------------------
Heinrich Widmann              \\ Deutsches Klimarechenzentrum GmbH
Phone: +49 40 460094 282       \\   Abteilung Datenmanagement
FAX:   +49 40 460094 270        \\    Bundesstr. 45a
Email: widmann at dkrz.de           \\   D-20146 Hamburg
http://www.dkrz.de                \\  Germany
-----------------------------------\\---------------------------------





More information about the ckan-dev mailing list