Version 10 (modified by 11 years ago) ( diff ) | ,
---|
GIS Data
Table of Contents
This page lists sources for data, including some which has been pre-formatted for easy import into Sahana Eden.
Asia
India
Admin Boundaries:
These have come from GADM. The state name 'Orissa' has been updated to 'Odisha'.
Use 7-Zip to extract to your web2py folder & then install like this:
cd /home/web2py p7zip -d IN_Lx.7z python web2py.py -S eden -M auth.override = True resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "IN_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "IN_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "IN_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "IN_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit()
Philippines
Admin Boundaries:
These have come originally from GADM but have had L1s inserted by PhilGIS so their L1s become L2s, etc
- Names have been modified to the format used by DSWD (Department of Social Welfare & Development)
Use 7-Zip to extract to your web2py folder & then install like this:
cd /home/web2py p7zip -d PH_Lx.7z python web2py.py -S eden -M auth.override = True resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "PH_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "PH_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "PH_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "PH_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "PH_L4.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit()
Vietnam
Admin Boundaries:
These have come originally from GADM but with their L1 removed (so we use their L2 as our L1, etc)
- GADM file has terrible problems with place names: at least 3 different encodings!
- These have mostly been resolved & the file contains place names with no diacritics (to make it easier for non-Vietnamese to search for such places) as well as Vi name_l10n
- Many updated boundaries from http://gis.chinhphu.vn by selecting the place & then using this JS:
points = plHighlight[0].latlngs[0]; output = 'POLYGON (('; for (var i=0; i < points.length; i++) { p = points[i]; output += p.longitude; output += ' '; output += p.latitude; output += ','; } output = output.slice(0, -1); output += '))';
or
output = 'MULTIPOLYGON ((('; points = plHighlight[0].latlngs[0]; for (var i=0; i < points.length; i++) { p = points[i]; output += p.longitude; output += ' '; output += p.latitude; output += ','; } output = output.slice(0, -1); // Strip comma output += ')),(('; points = plHighlight[1].latlngs[0]; for (var i=0; i < points.length; i++) { p = points[i]; output += p.longitude; output += ' '; output += p.latitude; output += ','; } output = output.slice(0, -1); // Strip comma output += ')))';
& then converted to WGS84 using:
ogr2ogr -f CSV CSV VN2000 Polygons.csv -s_srs EPSG:3405 -t_srs EPSG:4326 -lco GEOMETRY=AS_WKT
- Old boundaries have been left and start / end dates have been added from Wikipedia.
Use 7-Zip to extract to your web2py folder & then install like this:
cd /home/web2py p7zip -d VN_Lx.7z python web2py.py -S eden -M auth.override = True resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "VN_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "VN_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "VN_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "VN_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit()
Other Data Sources
- Admin 0 & 1, Hydro features, Raster & Vector: http://www.naturalearthdata.com/
- http://opencrisis.org/datastores
L0
- http://www.gadm.org
- http://nils.weidmann.ws/projects/cshapes <- varying over time
- http://www.naturalearthdata.com/
- VMap0: http://en.wikipedia.org/wiki/Vector_Map
- http://barendgehrels.blogspot.com/2010/12/free-shapefile-of-countries-of-world.html
- http://barendgehrels.blogspot.com/2010/12/free-shapefiles-of-of-world-2.html
- http://barendgehrels.blogspot.com/2010/12/free-shapefiles-of-of-world-3.html
- http://barendgehrels.blogspot.com/2011/01/free-shapefiles-of-countries-of-world-4.html
- http://thematicmapping.org/downloads/world_borders.php
- UN (North Africa): http://unosat-sdn.web.cern.ch/unosat-sdn/northafrica/region/ungiwg_level0_region.zip
L1
- http://www.gadm.org
- http://www.naturalearthdata.com/
- http://geonames.org
- US: http://www.mapcruzin.com/free-united-states-arcgis-maps-shapefiles.htm
L2
- SALB (High-quality, country-verified, but not all countries): http://www.unsalb.org/
- http://www.gadm.org
- http://geonames.org
- California: http://swdb.igs.berkeley.edu/pub/data/GEOGRAPHY/DECENNIAL2010/state_county_2010_shp.zip
OGC (WMS/WFS)
- http://geonetwork-opensource.org/gallery.html#geonetwork-nodes
- http://www.ogc-services.net
- BlueMarble & Mosaic (!LandSat7): http://onearth.jpl.nasa.gov/
- Hazard Layers: http://preview.grid.unep.ch:8080/geoserver/ows?service=WMS&request=GetCapabilities
- Hazard Layers: http://www.pdc.org/mde/services.jsp
- Massachusetts: http://lyceum.massgis.state.ma.us/wiki/doku.php