Changes between Version 17 and Version 18 of UserGuidelines/GIS/Data


Ignore:
Timestamp:
08/19/10 17:51:24 (14 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuidelines/GIS/Data

    v17 v18  
    1 == User Guidelines for GIS Data ==
     1= User Guidelines for GIS Data =
    22Assumes installation of the relevant tools: [wiki:InstallationGuidelinesGISData]
    33
    4 === Display Shapefile as Overlay Layer in Sahana Eden ===
     4== Import Data ==
     5=== Geonames ===
     6 1. Take the source file PK.txt (a TAB-separated list)
     7 2. Turn each line into XML by regular expression:
     8{{{
     9^(\d*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([0-9\.]*)\t([0-9\.]*).*
     10into:
     11<location>
     12       <id>$1</id>
     13       <name>$2</name>
     14       <asciiName>$3</asciiName>
     15       <localNames>$4</localNames>
     16       <lat>$5</lat>
     17       <lon>$6</lon>
     18</location>
     19}}}
     20 3. Replace & with &amp;, remove any invalid characters
     21 4. Transform into S3XRC using XSLT
     22
     23=== Shapefiles ===
     24{{{
     25ogr2ogr -f CSV TM_WORLD_BORDERS-0.3.csv TM_WORLD_BORDERS-0.3.shp
     26ogr2ogr -f geojson TM_WORLD_BORDERS-0.3.json TM_WORLD_BORDERS-0.3.shp
     27}}}
     28If needing to reproject (e.g. for the [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_departments01132010.zip Haiti Departements]):
     29{{{
     30ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -s_srs EPSG:32618 -t_srs EPSG:4326 -lco GEOMETRY=AS_WKT
     31}}}
     32NB AS_WKT requires OGR v1.6+
     33
     34== Display Data ==
     35=== Shapefiles ===
    536e.g. Country Outlines:
    637 * http://thematicmapping.org/downloads/TM_WORLD_BORDERS-0.3.zip
     
    2051Add WMS Layer to Sahana Eden
    2152 * ''tbc''
    22 === Convert Shapefile to an importable format ===
    23 {{{
    24 ogr2ogr -f CSV TM_WORLD_BORDERS-0.3.csv TM_WORLD_BORDERS-0.3.shp
    25 ogr2ogr -f geojson TM_WORLD_BORDERS-0.3.json TM_WORLD_BORDERS-0.3.shp
    26 }}}
    27 If needing to reproject (e.g. for the [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_departments01132010.zip Haiti Departements]):
    28 {{{
    29 ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -s_srs EPSG:32618 -t_srs EPSG:4326 -lco GEOMETRY=AS_WKT
    30 }}}
    31 NB AS_WKT requires OGR v1.6+
    32 === Display Grid as Overlay Layer in Sahana Eden ===
     53
     54=== Grid ===
    3355''tbc'': [wiki:BluePrintGISGrid]
    3456
    35 === Display Topographic Maps ===
     57=== Topographic Maps ===
    3658 * http://wiki.openstreetmap.org/wiki/Contours
    3759  * Uses [http://wiki.openstreetmap.org/wiki/SRTM SRTM] ([http://wiki.openstreetmap.org/wiki/ASTER ASTER] is a future possibility)
    3860 * Alternate approach: [http://wiki.openstreetmap.org/wiki/Srtm2Osm SRTM 2 OSM]
    39 === Handle Old Printed Maps ===
     61
     62=== Old Printed Maps ===
    4063Old Printed Maps can be 'Rectified' to be overlaid on the base maps:
    4164 * http://warper.geothings.net/
     
    4366  * Code: http://github.com/migurski/canvas-warp
    4467 * http://labs.metacarta.com/rectifier/
    45 === PostgreSQL management ===
     68
     69== PostgreSQL management ==
    4670 * Connect to Database (or use pgAdmin III GUI's PSQL Console on plugins menu)
    4771{{{
     
    7195 * VMap0: http://en.wikipedia.org/wiki/Vector_Map
    7296 * Admin 0 & 1, Hydro features, Raster & Vector: http://www.naturalearthdata.com/
     97 * Admin 1-4: http://geonames.org
     98
    7399==== OGC (WMS/WFS) ====
    74100 * http://geonetwork-opensource.org/geonetwork-nodes
    75101 * http://www.ogc-services.net
    76102 * !BlueMarble & Mosaic (!LandSat7): http://onearth.jpl.nasa.gov/
    77  * Hazard Layers http://preview.grid.unep.ch:8080/geoserver/ows?service=WMS&request=GetCapabilities
    78  * Hazard Layers http://www.pdc.org/mde/services.jsp
    79  * Massachusetts http://lyceum.massgis.state.ma.us/wiki/doku.php
     103 * Hazard Layers: http://preview.grid.unep.ch:8080/geoserver/ows?service=WMS&request=GetCapabilities
     104 * Hazard Layers: http://www.pdc.org/mde/services.jsp
     105 * Massachusetts: http://lyceum.massgis.state.ma.us/wiki/doku.php
     106
    80107----
    81108[wiki:UserGuidelinesGIS]