okfn / ckanext-salford

Repo for Salford's CKAN instance
Other
1 stars 1 forks source link

Add ckanext-spatial support #1

Open seanh opened 9 years ago

seanh commented 9 years ago

Find out what spatial metadata and features Salford's datasets on DGU are using, import the data into the Salford site and install ckanext-spatial to enable the spatial features

jobarratt commented 9 years ago

To install Belgian WMS preview.

jobarratt commented 9 years ago

A few things that have been picked up:

1.  The preview doesn’t always load in; however an F5 (or a Ctrl + F5) sometimes fixes

2.  Seem to always get a JavaScript error: qa.js:1 Uncaught TypeError: undefined is not a function

  1. Also noted a couple of 404 for some icon image files https://salforddataquay.uk/js/vendor/openlayers2/img/layer-switcher-minimize.png 404 (Not Found)

https://salforddataquay.uk/js/vendor/openlayers2/img/layer-switcher-maximize.png 404 (Not Found)

  1. The first “Overlay” in the list is always selected “On”, could this be changed?

5. Is it possible to use the WMS GetFeatureInfo function as on DGU (see screen cap below)?

s_nzpat01k74u9s-xmh--mnaxjlfte0dh5ccra3_mh7lcfsuxoa1qdrmtt4yzalctt1ucuw0p0xgxkh7s6m-ubc3xdygj0fdei4c1-pxl0d5htsypxfcknufkx5wr_uslf4oqqh_wbeu11cvfoovzi3qi4d5fv1bqrzmyw0hzvgdit1gqqdgnf1vuz4h15dbgrlqpgb6l9cxf8wnkdm372hefoizq

amercader commented 9 years ago

1 The preview doesn’t always load in; however an F5 (or a Ctrl + F5) sometimes fixes

I can't reproduce it I'm afraid. It's worth noting that the map is built doing a GetCapabilities request to the remote WMS server, which is proxyed through CKAN, so if there are connectivity or timeout issues there might be problems with rendering the viewer.

2 Seem to always get a JavaScript error: qa.js:1 Uncaught TypeError: undefined is not a function

That was caused by an unrelated extension, it's now fixed

3 Also noted a couple of 404 for some icon image files https://salforddataquay.uk/js/vendor/openlayers2/img/layer-switcher-minimize.png 404 (Not Found)

Fixed now

4 The first “Overlay” in the list is always selected “On”, could this be changed?

I've added this functionality now, see eg:

https://salforddataquay.uk/dataset/land-and-property-assets/resource/d782dc08-b5b5-4719-9d7a-13f6795ec596

5 Is it possible to use the WMS GetFeatureInfo function as on DGU (see screen cap below)?

It is, but it would require significant development time :) So not supported out of the box right now.

jobarratt commented 9 years ago

Only query is on number 4, on the link provided (https://salforddataquay.uk/dataset/land-and-property-assets/resource/d782dc08-b5b5-4719-9d7a-13f6795ec596) the “Minerals DPD Datasets” is still always “switched on” on load.

Can we do anything about that.

amercader commented 9 years ago

@jobarratt sorry, I misinterpreted the original issue on 4. Yes, we can turn off the overlays by default, but it would require some work to pass config options to the viewer (~1 hour work should be all right)

jobarratt commented 9 years ago

We need to set this so that the overlays are turned off by default.

amercader commented 9 years ago

Done https://salforddataquay.uk/dataset/schools-in-salford/resource/64b6e52d-6b03-4253-bae1-24bb76859730