kartoza / gfdrr_oondra

GFDRR Challenge Online Operational Natural Disaster Risk Assessment platform
0 stars 3 forks source link

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

Closed NyakudyaA closed 7 years ago

NyakudyaA commented 7 years ago

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.

NyakudyaA commented 7 years ago

@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

gubuntu commented 7 years ago

This issue was moved to kartoza/geonode#270