[ckan-dev] problem with spatial previews

Matthew Fullerton matt.fullerton at gmail.com
Wed Aug 12 13:31:13 UTC 2015


Can you send me the WFS link? Is it open? It would be interesting to have a
link which doesn't have the XML problem, in which case it could of course
be that there are further problems!

Thanks,
Matt

On 12 August 2015 at 13:56, Armin Retterath <armin.retterath at gmail.com>
wrote:

> you can see the message in firebug. also the wfs response is there and the
> server gives an exception for the epsg:3857. the problem is, that my
> installation is in our intranet and not available in the www already (i've
> got the same problem as it was on the list today - proxying is not
> possible, because ckan don't react on the site_url definition :-( )
> i can give you further information tomorrow ;-)
> thanx
> armin
>
> 2015-08-12 12:52 GMT+02:00 Matthew Fullerton <matt.fullerton at gmail.com>:
>
>> My problem so far was that OpenLayers said it couldn't cope with that
>> version of the XML standard. Where in the code do you see the demand for
>> 3857? There was a similar issue with the WMS code. However, for WFS I would
>> have though that it should be less of a problem as the data can be
>> transformed.
>>
>> -Matt
>>
>> On 12 August 2015 at 11:38, Armin Retterath <armin.retterath at gmail.com>
>> wrote:
>>
>>> hi matt,
>>> the wfs may have a problem with the requested crs - the client demands
>>> epsg:3857 but most services support only 4326 - maybe we have to alter the
>>> default crs in the ini file?
>>> best regards,
>>> armin
>>>
>>> 2015-08-12 11:59 GMT+02:00 Matthew Fullerton <matt.fullerton at gmail.com>:
>>>
>>>> I can confirm that WFS does not work.
>>>>
>>>> KML, GeoJSON and WMS should all be working:
>>>> KML:
>>>> https://smartlane.io/dataset/different-geo-visualizations/resource/06df2d49-5920-42e8-b73d-860aeea823a8
>>>> GeoJSON works but I recommend you use the GeoJSON view installed with
>>>> ckanext_geoview and not the openlayers view.
>>>> https://smartlane.io/dataset/different-geo-visualizations/resource/d31fcbfb-6611-48b5-91f4-630553316521
>>>> WMS:
>>>> https://smartlane.io/dataset/different-geo-visualizations/resource/045d88a8-6a1e-4f41-b23c-fa5efa549d34
>>>>
>>>> Regarding WMS take a look at the URL on the example page to check you
>>>> are putting something sensible in. There is a request to visualize
>>>> individual layers (https://github.com/ckan/ckanext-geoview/issues/22)
>>>>
>>>> And in general, it's worth installing the extension from the latest
>>>> master code on GitHub and not from pip.
>>>>
>>>> Best,
>>>> Matt
>>>>
>>>> On 12 August 2015 at 10:45, Armin Retterath <armin.retterath at gmail.com>
>>>> wrote:
>>>>
>>>>> hi sol,
>>>>>
>>>>> i solved the issue by activating the view in the frontend - maybe the
>>>>> docu is not quiet clear :-( .
>>>>> i thought, that the default view will sufficient - but
>>>>> ckan.views.default_views setting don't activate the views for the resource
>>>>> automatically :-( - i had to activate it in the frontend for each view - is
>>>>> this realistic?
>>>>> another problem is, that the wms preview don't work as it should do.
>>>>> the layers are directly requested with the url of the that is defined in
>>>>> the resource. this is not right. first the GetCapabilities request has to
>>>>> be done and the GetMap url has to be extracted. with this url the map can
>>>>> be invoked correctly. i 've done a adoption for the code two years ago.
>>>>> maybe i find it and can give it back to the list.
>>>>>
>>>>> also simple wfs are not supported - i tested
>>>>> http://mapserver.lgb-rlp.de/cgi-bin/erdbeben?&request=GetCapabilities&VERSION=1.1.0&SERVICE=WFS
>>>>>
>>>>> i also tested kml and geojson preview with follwoning urls:
>>>>>
>>>>>
>>>>> http://www.geoportal.rlp.de/mapbender/php/mod_GetPublishedData.php?wmc_id=13986&outputFormat=geojson
>>>>>
>>>>> http://www.geoportal.rlp.de/mapbender/php/mod_GetPublishedData.php?wmc_id=13986&outputFormat=kml
>>>>>
>>>>> but the resource is not shown on the map :-( - maybe s.o. knows the
>>>>> problem.
>>>>>
>>>>> thanx in advance,
>>>>> armin
>>>>>
>>>>> 2015-08-12 4:23 GMT+02:00 李承錱[Sol] <u103133.u103135 at gmail.com>:
>>>>>
>>>>>> Hi Armin:
>>>>>>
>>>>>> I'm using CKAN 2.4.0 and ckanext-geoview without any problems.
>>>>>>
>>>>>> Is there any error in the log file?
>>>>>>
>>>>>> And, do you specify the correct format name in the resource metadata
>>>>>> ("geojson" for geojson resources and "wms" for wms resources)? The format
>>>>>> column for resource is required to decide the available views.
>>>>>>
>>>>>> To get the spatial search, you should still install the
>>>>>> ckanext-spatial
>>>>>> <http://ckanext-spatial.readthedocs.org/en/latest/install.html>
>>>>>> extension and follow the guide
>>>>>> <http://ckanext-spatial.readthedocs.org/en/latest/spatial-search.html>
>>>>>> to set up it. The ckanext-geoview is only for previewing spatial resources.
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Sol
>>>>>>
>>>>>> 2015-08-10 23:22 GMT+08:00 Armin Retterath <armin.retterath at gmail.com
>>>>>> >:
>>>>>>
>>>>>>> hi matt,
>>>>>>>
>>>>>>> thanx for the info.
>>>>>>>
>>>>>>> i set now set following definitions:
>>>>>>>
>>>>>>> ckan.plugins = stats geo_view text_view datastore image_view
>>>>>>> resource_proxy
>>>>>>> ckan.views.default = image_view geo_view
>>>>>>> ckan.spatial.srid = 4326
>>>>>>> ckanext.geoview.ol_viewer.formats = wms kml geojson
>>>>>>>
>>>>>>> but nothing happens .-( . before i activated both plugins - also
>>>>>>> nothing happens. neither the spatial_metadata nor spatial_query had any
>>>>>>> effect on the portal - do i have to do more configuration? maybe activate a
>>>>>>> spatial search widget as it was so in 1.8.1b - which i tested some years
>>>>>>> ago?
>>>>>>>
>>>>>>> i need a spatial search widget and options to view wms, geojson and
>>>>>>> maybe use wfs.
>>>>>>>
>>>>>>> - or should i go directly to 2.5a - is there a compatibility list
>>>>>>> for the spatial extensions? can they be activated parallel?
>>>>>>>
>>>>>>> thanx in advance,
>>>>>>>
>>>>>>> armin
>>>>>>>
>>>>>>>
>>>>>>> 2015-08-10 12:20 GMT+02:00 Matthew Fullerton <matthew at smartlane.de>:
>>>>>>>
>>>>>>>> Dear Armin,
>>>>>>>> Are you using ckanext-geoview or ckanext-spatial?
>>>>>>>>
>>>>>>>> For the WMS viewer I think you need to specify which file types you
>>>>>>>> want to offer previews for, e.g.:
>>>>>>>> ckanext.geoview.ol_viewer.formats = wms kml
>>>>>>>> https://github.com/ckan/ckanext-geoview#openlayers-viewer
>>>>>>>>
>>>>>>>> In general, and specifically for the GeoJSON problem, check that
>>>>>>>> the file formats are set for the resource. I think it needs to be 'geojson'
>>>>>>>> for a GeoJSON file and 'wms' for the WMS resource.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> Matt
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *Projekt SMARTLANE*
>>>>>>>>
>>>>>>>> matthew at smartlane.de <florian at smartlane.de>
>>>>>>>> T +49.89.289.28575
>>>>>>>> F +49.89.289.22333
>>>>>>>> www.smartlane.de
>>>>>>>>
>>>>>>>> EXIST-Gründungsvorhaben „Tapestry“
>>>>>>>> c/o Lehrstuhl für Verkehrstechnik
>>>>>>>> Technische Universität München
>>>>>>>> Arcisstraße 21
>>>>>>>> 80333 München
>>>>>>>>
>>>>>>>> Gefördert vom Bundesministerium für Wirtschaft und Technologie
>>>>>>>> aufgrund eines Beschlusses des Deutschen Bundestages.
>>>>>>>>
>>>>>>>> ------------------------------
>>>>>>>> *Von:* ckan-dev <ckan-dev-bounces at lists.okfn.org> im Auftrag von
>>>>>>>> Armin Retterath <armin.retterath at gmail.com>
>>>>>>>> *Gesendet:* Freitag, 7. August 2015 12:07
>>>>>>>> *An:* CKAN Development Discussions
>>>>>>>> *Betreff:* [ckan-dev] problem with spatial previews
>>>>>>>>
>>>>>>>> hello together,
>>>>>>>> i freshly installed ckan 2.4.0 with the spatial extensions on an
>>>>>>>> debian 8 environment (including  datastore).
>>>>>>>> in the frontend the options for show wms, geojson, ... are not
>>>>>>>> displayed :-( .
>>>>>>>> it seems to be, that ckan don't find the plugins?
>>>>>>>> here are my entries in the development.ini:
>>>>>>>>
>>>>>>>> ckan.plugins = stats text_view datastore image_view recline_view
>>>>>>>> spatial_metadata spatial_query geo_view geojson_view resource_proxy
>>>>>>>>
>>>>>>>> # Define which views should be created by default
>>>>>>>> # (plugins must be loaded in ckan.plugins)
>>>>>>>> ckan.views.default_views = ckanext-geoview geojson_view geo_view
>>>>>>>> image_view text_view recline_view recline_map_view
>>>>>>>>
>>>>>>>> thanx in advance
>>>>>>>> armin
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150812/b82e7060/attachment-0003.html>


More information about the ckan-dev mailing list