kartoza / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
http://geonode.org/
GNU General Public License v3.0
7 stars 17 forks source link

GeoNode API must support ThinkHazard requirements #204

Open gubuntu opened 7 years ago

gubuntu commented 7 years ago

ThinkHazard accesses data through the GeoNode API. Changing from Geonode-Geoserver to Geonode-QGIS for the GeoSAFE launch must not break ThinkHazard.

@vdeparday what are the specific TH requirements that need to be supported?

(from #160)

gubuntu commented 7 years ago

@fvanderbiest @fjacon @stufraser1 can you provide any input here?

stufraser1 commented 7 years ago

@fvanderbiest please can you confirm the code that thinkhazard relies on to draw data from Geonode? These are what must be retained I assume

fvanderbiest commented 7 years ago

TH harvests GeoNode API, identifies new data, and downloads them. This is handled by the scripts in https://github.com/GFDRR/thinkhazard/tree/master/thinkhazard/processing

Since the layers' download_url field is free from any reference to geoserver (eg http://www.geonode-gfdrrlab.org/api/layers/149/), that should be OK.

Also pinging @tonio here since geoserver is explicitly mentionned in https://github.com/GFDRR/thinkhazard/blob/master/thinkhazard/static/js/report.js#L416-L438

fvanderbiest commented 7 years ago

Also pinging @tonio here since geoserver is explicitly mentionned in https://github.com/GFDRR/thinkhazard/blob/master/thinkhazard/static/js/report.js#L416-L438

I think we just need to make the base WMS service URL configurable here.

gubuntu commented 7 years ago

The WMS aspect of this is covered in #203 and there's more discussion there

The download aspect is covered by #159

Gustry commented 7 years ago

I merged in https://github.com/kartoza/geonode/pull/237 the OGC entry point. You can use URL /qgis-server/ogc to get access to the WFS/WMS server. You can do a GetMap with a LAYERS parameter. It will not go through caching, it's asking straight QGIS Server (i.e. live WMS, not TMS). We have one limitation: each Geonode layer has its own QGIS Project, so we can't support the GetCapabilities or doing a GetMap with many LAYERS. The Django app will take of adding the MAP parameter according to the LAYER you are asking.

For GeoNode Maps, I still to work on it. As we need to check that layer names and map names are all unique. @gubuntu

Let me know if you have any questions.

gubuntu commented 7 years ago

Currently, GeoNode-QGIS_server supports:

TH and others can test against http://staging.geonode.kartoza.com

ismailsunni commented 7 years ago

Hi @gubuntu regarding the third point in your comment above, it hasn't been merged to the main branch (so it hasn't been deployed to the staging). See : https://github.com/kartoza/geonode/pull/239