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

Properly format metadata so that it is usable in QGIS inasafe #270

Open gubuntu opened 7 years ago

gubuntu commented 7 years ago

From @NyakudyaA on November 23, 2016 13:18

Problem

Currently the only way to upload metadata into geonode is using the geonode UI. This however returns metadata which is not properly formated as indicated below:

inasafe_orig

The above is what you see in the browser when you click the download metadata. As seen in this request: http://staging.oondra.kartoza.com/catalogue/csw?outputschema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&service=CSW&request=GetRecordById&version=2.0.2&elementsetname=full&id=82e5facf-ae89-417f-8192-c7678a98c7a9

As opposed to the original/raw metadata file generated by insafe as seen below:

insafe_two

So when you download the layer and the metadata so that you can use it in QGIS inasafe it is unusable because the metadata is not properly formated to inasafe standards as noted below:

inasafe_improp

There seem to be some tags that are added by geonode which inasafe does not understand hence rendering the metadata invalid.

metada_xml.zip Attached are three files that relate to osm_flood_current.

NB I haven't tested the current metadata format to see if it works directly on running analysis in geosafe. The last time I tried geosafe. It recognized the oondra layers as inasafe layers with metadata in it's current format.

_Copied from original issue: kartoza/gfdrroondra#56

gubuntu commented 7 years ago

From @NyakudyaA on November 25, 2016 13:56

@lucernae I have tested this on my local machine and it works fine now. I can now return all properly formatted metadata. metadata structure. I haven't deployed on oondra yet. If @rischanlab can test first on his machine to confirm.

kewy

ismailsunni commented 7 years ago

Related to https://github.com/inasafe/inasafe/issues/3478

gubuntu commented 5 years ago

@lucernae is this affected by https://github.com/kartoza/geosafe/pull/378?