= GIS Data = [[TOC]] This page lists sources for data, including some which has been pre-formatted for easy import into Sahana Eden. == Asia == === India === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/IN_Lx.7z IN_Lx.7z] These have come from [http://gadm.org GADM]. The state name 'Orissa' has been updated to 'Odisha'. Use [http://7zip.org 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: * [http://eden.sahanafoundation.org/downloads/PH_Lx.7z PH_Lx.7z] These have come originally from [http://gadm.org GADM] but have had L1s inserted by [http://www.philgis.org/freegisdata.htm PhilGIS] so their L1s become L2s, etc * Region Names have been modified to the format used by DSWD (Department of Social Welfare & Development) * A couple of other names have been corrected * Kalookan -> Caloocan * Albuquerque -> Alburquerque * Ozamis -> Ozamiz * Santo Nino -> Santo NiƱo (x2) * Names for Barangays in Tacloban City which have unique ones * Cotabato City & Isabela City marked as being directly in their L1s not in the L2s that they're capitals of Use [http://7zip.org 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 s3db.gis_location_name.language.requires = IS_IN_SET({"tl":"Tagalog"}) 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: * [http://eden.sahanafoundation.org/downloads/VN_Lx.7z VN_Lx.7z] These have come originally from [http://gadm.org 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 [http://7zip.org 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 == * https://cod.humanitarianresponse.info - official UN source of boundaries & P-Codes * Admin 0 & 1, Hydro features, Raster & Vector: http://www.naturalearthdata.com/ * http://opencrisis.org/datastores * https://docs.google.com/spreadsheet/ccc?key=0AmVWKgWFwEyodE40Uk94bl9jZWdQTy1weEh4NVhzSWc#gid=16 === 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 === Aerial Imagery === * http://wiki.openstreetmap.org/wiki/Aerial_imagery == See Also == * [wiki:UserGuidelines/GIS/Data UserGuidelines/GIS/Data]