Skip to content
ted-dunstone edited this page Jul 25, 2011 · 3 revisions

Data Upload Instructions

This page describes some of the things a Risiko user may need to know in order to upload data into Risiko.

Uploading Layer

To upload a layer or layers you can give a directory or file. The standard Risiko install contains some good examples of this under the directory risiko_demo_data`

You must have the Riskio server running first (riskio_start). Before uploading new data you might need to clean the layers (risiko_clean)

risiko-upload risiko_demo_data

Projection Errors

If you get a projection error after trying to run an impact function you will need to re-project and re-upload the data.

For shape (vector) files this is done using: ogr2ogr -t_srs EPSG:4326 -f "ESRI Shapefile" [Out_File] [In_File]

e.g.

ogr2ogr -t_srs EPSG:4326 -f "ESRI Shapefile" out.shp ../../pangang_data/exposure/PadangExposureTest.shp

For raster files use:

gdalwarp -t_srs EPSG:4623 ../../pangang_data/exposure/PadangExposureTest.shp out.shp

Other commands that might be useful for geodata manipulation include:

  • gdalinfo
  • qgis
  • ogrinfo
Clone this wiki locally