Changes between Version 17 and Version 18 of UserGuidelines/GIS/Data
- Timestamp:
- 08/19/10 17:51:24 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserGuidelines/GIS/Data
v17 v18 1 = = User Guidelines for GIS Data ==1 = User Guidelines for GIS Data = 2 2 Assumes installation of the relevant tools: [wiki:InstallationGuidelinesGISData] 3 3 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\.]*).* 10 into: 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 &, remove any invalid characters 21 4. Transform into S3XRC using XSLT 22 23 === Shapefiles === 24 {{{ 25 ogr2ogr -f CSV TM_WORLD_BORDERS-0.3.csv TM_WORLD_BORDERS-0.3.shp 26 ogr2ogr -f geojson TM_WORLD_BORDERS-0.3.json TM_WORLD_BORDERS-0.3.shp 27 }}} 28 If needing to reproject (e.g. for the [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_departments01132010.zip Haiti Departements]): 29 {{{ 30 ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -s_srs EPSG:32618 -t_srs EPSG:4326 -lco GEOMETRY=AS_WKT 31 }}} 32 NB AS_WKT requires OGR v1.6+ 33 34 == Display Data == 35 === Shapefiles === 5 36 e.g. Country Outlines: 6 37 * http://thematicmapping.org/downloads/TM_WORLD_BORDERS-0.3.zip … … 20 51 Add WMS Layer to Sahana Eden 21 52 * ''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 === 33 55 ''tbc'': [wiki:BluePrintGISGrid] 34 56 35 === DisplayTopographic Maps ===57 === Topographic Maps === 36 58 * http://wiki.openstreetmap.org/wiki/Contours 37 59 * Uses [http://wiki.openstreetmap.org/wiki/SRTM SRTM] ([http://wiki.openstreetmap.org/wiki/ASTER ASTER] is a future possibility) 38 60 * Alternate approach: [http://wiki.openstreetmap.org/wiki/Srtm2Osm SRTM 2 OSM] 39 === Handle Old Printed Maps === 61 62 === Old Printed Maps === 40 63 Old Printed Maps can be 'Rectified' to be overlaid on the base maps: 41 64 * http://warper.geothings.net/ … … 43 66 * Code: http://github.com/migurski/canvas-warp 44 67 * http://labs.metacarta.com/rectifier/ 45 === PostgreSQL management === 68 69 == PostgreSQL management == 46 70 * Connect to Database (or use pgAdmin III GUI's PSQL Console on plugins menu) 47 71 {{{ … … 71 95 * VMap0: http://en.wikipedia.org/wiki/Vector_Map 72 96 * Admin 0 & 1, Hydro features, Raster & Vector: http://www.naturalearthdata.com/ 97 * Admin 1-4: http://geonames.org 98 73 99 ==== OGC (WMS/WFS) ==== 74 100 * http://geonetwork-opensource.org/geonetwork-nodes 75 101 * http://www.ogc-services.net 76 102 * !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 80 107 ---- 81 108 [wiki:UserGuidelinesGIS]