Version 8 (modified by 15 years ago) ( diff ) | ,
---|
User Guidelines for GIS Data
Assumes installation of the relevant tools: InstallationGuidelinesGISData
Base Layers
- WMS BlueMarble & Mosaic (LandSat7): http://onearth.jpl.nasa.gov/
Display Shapefile as Overlay Layer in Sahana Eden
e.g. Country Outlines:
Import into PostGIS (or use pgAdmin III GUI's Shapefile loader on plugins menu)
createdb my_spatial_db createlang plpgsql my_spatial_db psql -d my_spatial_db -f /usr/share/lwpostgis.sql psql -d my_spatial_db -f /usr/share/spatial_ref_sys.sql shp2pgsql -s 4326 -I TM_WORLD_BORDERS-0.3.shp public.countries | psql -U postgres -W -d my_spatial_db
Get GeoServer to serve as WMS
- tbc
Set up TileCache
- tbc
Add WMS Layer to Sahana Eden
- tbc
Convert Shapefile to an importable format
ogr2ogr -f CSV TM_WORLD_BORDERS-0.3.csv TM_WORLD_BORDERS-0.3.shp ogr2ogr -f geojson TM_WORLD_BORDERS-0.3.json TM_WORLD_BORDERS-0.3.shp
If needing to reproject (e.g. for the Haiti Departements):
ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -s_srs EPSG:32618 -t_srs EPSG:4326 -lco GEOMETRY=AS_WKT
NB AS_WKT requires OGR v1.6+
Display Grid as Overlay Layer in Sahana Eden
tbc: BluePrintGISGrid
PostgreSQL management
- Connect to Database (or use pgAdmin III GUI's PSQL Console on plugins menu)
psql -d my_spatial_db -U username
- List Databases
\l
- List Tables
\d
- List Table structure
\d tablename select field/* from tablename where field = 'value';
PostGIS functions
- Centroids
SELECT name, iso2, asText(ST_Transform(ST_Centroid(the_geom), 4326)) AS centroid FROM countries;
Attachments (12)
-
srtm.sld
(2.5 KB
) - added by 14 years ago.
Official SRTM styling
-
topography.sld
(2.1 KB
) - added by 14 years ago.
Common Topography styling
-
get.sh
(48.9 KB
) - added by 14 years ago.
Script to download SRTMv4 GeoTIFFs
-
utf8.py
(1.0 KB
) - added by 14 years ago.
Encode GADM as UTF8
-
geowebcache.xml
(9.5 KB
) - added by 14 years ago.
Configuration for GADM
-
gadm_v1_lev0_base_sld.xml
(7.5 KB
) - added by 14 years ago.
SLD for GADM L0 Base Layer
-
gadm_v1_lev0_overlay_sld.xml
(12.5 KB
) - added by 14 years ago.
SLD for GADM L0 Overlay
-
gadm_v1_lev1_overlay_sld.xml
(12.0 KB
) - added by 14 years ago.
SLD for GADM L1 Overlay
-
gadm_v1_lev2_overlay_sld.xml
(12.4 KB
) - added by 14 years ago.
SLD for GADM L2 Overlay
-
populationDensity.sld
(1.4 KB
) - added by 13 years ago.
GPWv3 SLD
-
moveWKT.py
(1.0 KB
) - added by 11 years ago.
Move WKT column to end of CSV
- KML2WKT.py (1.9 KB ) - added by 11 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.