= GIS Data = [[TOC]] This page lists sources for data, including some which has been pre-formatted for easy import into Sahana Eden. '''IMPORTANT NOTE:'''[[BR]] BE VERY CAREFUL WITH WHAT PROGRAMS YOU EDIT THESE FILES IN! * Excel can lose placenames in unicode languages * Excel and Open Office can truncate WKTs It is safest (and fastest) to use a plain text editor (eg. Notepad++) == Americas == === United States === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/US_Lx.7z US_Lx.7z] These have come originally from [http://gadm.org GADM] There is also good socioeconomic data available at the Census Tract and Census Block Group, so those Polygons are useful. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d US_Lx.7z python web2py.py -S eden -M auth.override = True stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") resource = s3db.resource("gis_location") filename = "US_L0.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "US_L1.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "US_L2.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} == Asia == === Afghanistan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/AF_Lx.7z AF_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] with Pashto names and better Romanised names from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d AF_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["prs"] = "Dari" languages["ps"] = "Pashto" stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") resource = s3db.resource("gis_location") filename = "AF_L0.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "AF_L1.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "AF_L2.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "AF_L3.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Armenia === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/AM_Lx.7z AM_Lx.7z] These have come originally from [http://gadm.org GADM] with Armenian & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d AM_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["hy"] = "Armenian" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "AM_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Azerbaijan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/AZ_Lx.7z AZ_Lx.7z] These have come originally from [http://gadm.org GADM] with Azerbaijani & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d AZ_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["az"] = "Azerbaijani" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "AZ_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Bangladesh === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/BD_Lx.7z BD_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] with Bangali names and better Romanised names from Wikipedia.[[BR]] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d BD_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["bn"] = "Bengali" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "BD_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "BD_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "BD_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Cambodia === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/KH_Lx.7z KH_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] with Khmer names, Hierarchy, Newer locations and better Romanised names from Wikipedia.[[BR]] (The COD dataset is a little more complete than the GADM one, although is very similar) Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d KH_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["km"] = "Khmer" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "KH_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "KH_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "KH_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "KH_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === 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() }}} === Indonesia === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/ID_Lx.7z ID_Lx.7z] These have come originally from [http://gadm.org GADM] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d ID_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 = "ID_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "ID_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "ID_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Kazakhstan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/KZ_Lx.7z KZ_Lx.7z] These have come originally from [http://gadm.org GADM] with Kazakh & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d KG_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["kk"] = "Kazakh" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "KZ_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Kyrgyzstan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/KG_Lx.7z KG_Lx.7z] These have come originally from OCHA with Kyrgyz names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d KG_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["ky"] = "Kyrgyz" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "KG_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "KG_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "KG_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Malaysia === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/MY_Lx.7z MY_Lx.7z] These have come originally from [http://gadm.org GADM] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d MY_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 = "MY_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MY_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MY_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Myanmar === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/MM_Lx.7z MM_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] with the Bago & Shan substates removed & the L2 boundaries created by dissolving the L3 polygons. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d MM_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 = "MM_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MM_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MM_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MM_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MM_L4.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "MM_L5.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Nepal === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/NP_Lx.7z NP_Lx.7z] These have come originally from [http://gadm.org GADM] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d NP_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 = "NP_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "NP_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "NP_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "NP_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "NP_L4.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 these changes: * L1s inserted by [http://www.philgis.org/freegisdata.htm PhilGIS] so their L1s become L2s, etc * Lakes removed from L3s (available in PH_Natural_Features.csv if-desired) * Davao Occidental has been created from Davao del Sur: http://en.wikipedia.org/wiki/Davao_Occidental * Hinunangan is all in Southern Leyte (San Pablo & San Pedro Islands were listed as being in Quezon!) * Manila is split up into Districts and Municipalities: http://www.nscb.gov.ph/activestats/psgc/regview.asp?region=13 * Shariff Kabunsuan has merged back into Maguindanao: http://en.wikipedia.org/wiki/Shariff_Kabunsuan * Omar has been created from Luuk: http://en.wikipedia.org/wiki/Omar,_Sulu * Region Names have been modified to the format used by DSWD (Department of Social Welfare & Development) * PSGC codes added for L1, L2 and L3 from http://www.nscb.gov.ph/activestats/psgc/listprov.asp * A couple of other names have been corrected * Kalookan -> Caloocan * Albuquerque -> Alburquerque * Ozamis -> Ozamiz * Sagnay -> Sagñay * Santo Nino -> Santo Niño (x2) * Sofronio Española * Taguig -> Taguig City * Names for Barangays in Cavite City and 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 languages = s3.l10n_languages languages["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() }}} === Sri Lanka === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/LK_Lx.7z LK_Lx.7z] These have come originally from [http://cod.humanitarianresponse.info COD] with Sinhala & Tamil names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d LK_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["si"] = "Sinhala" languages["ta"] = "Tamil" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "LK_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "LK_L2.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "LK_L3.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "LK_L4.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Tajikistan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/TJ_Lx.7z TJ_Lx.7z] These have come originally from [http://gadm.org GADM] with Tajik & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d TJ_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["tg"] = "Tajik" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "TJ_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "TJ_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Timor-Leste === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/TL_Lx.7z TL_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d TL_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 = "TL_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "TL_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "TL_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Turkmenistan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/TM_Lx.7z TM_Lx.7z] These have come originally from [http://gadm.org GADM] with Turkmen & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d TM_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["tk"] = "Turkmen" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "TM_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Uzbekistan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/UZ_Lx.7z UZ_Lx.7z] These have come originally from [http://gadm.org GADM] with Uzbek & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d UZ_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["uz"] = "Uzbek" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "UZ_L0.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 languages = s3.l10n_languages languages["vi"] = "Vietnamese" 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() }}} == Europe == === Bosnia and Herzegovina === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/BA_Lx.7z BA_Lx.7z] These have come originally from [http://gadm.org GADM] with Bosnian, Croatian & Serbian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d BA_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["bs"] = "Bosnian" languages["hr"] = "Croatian" languages["sr"] = "Serbian" stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") resource = s3db.resource("gis_location") filename = "BA_L0.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "BA_L1.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "BA_L2.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "BA_L3.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Georgia === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/GE_Lx.7z GE_Lx.7z] These have come originally from [http://gadm.org GADM] with Georgian & Russian names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d GE_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["ka"] = "Georgian" languages["ru"] = "Russian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "GE_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Greece === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/GR_Lx.7z GR_Lx.7z] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d JO_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["el"] = "Greek" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "GR_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "GR_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "GR_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "GR_L4.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Ukraine === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/UA_Lx.7z UA_Lx.7z] These have come originally from [http://gadm.org GADM] with Ukrainian, Russian & Crimean Tatar names added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d UA_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["uk"] = "Ukrainian" languages["ru"] = "Russian" languages["crh"] = "Crimean Tatar" languages["ro"] = "Romanian" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "UA_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "UA_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "UA_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} == Middle East == === Iraq=== Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/IQ_Lx.7z IQ_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d IQ_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 = "IQ_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "IQ_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "IQ_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "IQ_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Jordan === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/JO_Lx.7z JO_Lx.7z] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d JO_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["ar"] = "Arabic" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "JO_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "JO_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "JO_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "JO_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "JO_Zaatari.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Lebanon === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/LB_Lx.7z LB_Lx.7z] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d LB_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["ar"] = "Arabic" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "LB_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "LB_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "LB_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "LB_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "LB_Wadi_Khaled.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Syria === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/SY_Lx.7z SY_Lx.7z] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d SY_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["ar"] = "Arabic" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "SY_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "SY_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "SY_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "SY_L3.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} === Turkey === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/TR_Lx.7z TR_Lx.7z] These have come originally from [https://cod.humanitarianresponse.info COD] Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d TR_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 = "TR_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "TR_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "TR_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() gis.update_location_tree() db.commit() }}} == Oceania == === Papua New Guinea === Admin Boundaries: * [http://eden.sahanafoundation.org/downloads/PG_Lx.7z PG_Lx.7z] These have come originally from [http://gadm.org GADM] updated for new provinces with name corrections and L3 & L4 added from Wikipedia. Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: {{{ cd /home/web2py p7zip -d PG_Lx.7z python web2py.py -S eden -M auth.override = True languages = s3.l10n_languages languages["tpi"] = "Tok Pisin" languages["ho"] = "Hiri Motu" resource = s3db.resource("gis_location") stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") import_file = "PG_L0.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "PG_L1.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() import_file = "PG_L2.csv" File = open(import_file, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "PG_L3.csv" File = open(filename, "r") resource.import_xml(File, format="csv", stylesheet=stylesheet) db.commit() filename = "PG_L4.csv" File = open(filename, "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 * [wiki:GIS/OpenStreetMap OpenStreetMap] * 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 * [http://data.un.org UN Data] * [http://data.worldbank.org World Bank Data] === L0 === * http://www.gadm.org * http://nils.weidmann.ws/projects/cshapes <- varying over time * http://www.naturalearthdata.com/ * http://quattroshapes.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 * http://quattroshapes.com * 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 * http://quattroshapes.com * 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]