AIFDR / riab

Risk in a Box - main project
Other
17 stars 6 forks source link

Ability to read bounding boxes from both raster and vector layers #95

Closed uniomni closed 13 years ago

uniomni commented 13 years ago

Currently, Risiko is reads some metadata using OWSLib in https://github.com/AIFDR/riab/blob/master/impact/storage/utilities.py#L187

Most notably it gets the geotransform for raster layers which can easily be turned into the bounding box given knowledge of grid dimensions (i.e. number of rows and columns). However, it does not get the analogous information for vector layers.

We would really like to see this function gather all pertinent metadata for both raster and vector data and present it in a nice Python structure. This will also help fix issue https://github.com/AIFDR/riab/issues/91

All this metadata is known to exist and can be accessed through REST as follows:

http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coverages/Lembang_Earthquake_Scenario.xml

http://www.aifdr.org:8080/geoserver/rest/workspaces/boundaries/datastores/Province_Boundaries/featuretypes/Province_Boundaries.xml