diff --git a/module3/exo3/SnowGIS_SHP/Cholera_Deaths.dbf b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.dbf new file mode 100644 index 0000000000000000000000000000000000000000..fa87c71bd68314ed337415fb01daa179adeaf5d9 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.dbf differ diff --git a/module3/exo3/SnowGIS_SHP/Cholera_Deaths.prj b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.prj new file mode 100644 index 0000000000000000000000000000000000000000..9c24ee3b83411a6b7b3824844482477578ed1d96 --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.prj @@ -0,0 +1 @@ +PROJCS["OSGB 1936 / British National Grid",GEOGCS["OSGB 1936",DATUM["OSGB 1936",SPHEROID["Airy 1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0.0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",400000.0],PARAMETER["false_northing",-100000.0],PARAMETER["central_meridian",-2.0],PARAMETER["scale_factor",0.9996012717],PARAMETER["latitude_of_origin",49.0],UNIT["m",1.0]] \ No newline at end of file diff --git a/module3/exo3/SnowGIS_SHP/Cholera_Deaths.sbn b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.sbn new file mode 100644 index 0000000000000000000000000000000000000000..78b67b87f59ebc0eaaff28cc8aef777f625fa7f4 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.sbn differ diff --git a/module3/exo3/SnowGIS_SHP/Cholera_Deaths.sbx b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.sbx new file mode 100644 index 0000000000000000000000000000000000000000..2e583478e3601c51335e776bf238aa69dc00d2b3 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.sbx differ diff --git a/module3/exo3/SnowGIS_SHP/Cholera_Deaths.shp b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.shp new file mode 100644 index 0000000000000000000000000000000000000000..36257407885624121ec93ac267072b797c6f9ac9 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.shp differ diff --git a/module3/exo3/SnowGIS_SHP/Cholera_Deaths.shx b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.shx new file mode 100644 index 0000000000000000000000000000000000000000..1871dbee2783331929f391f91928cd33e3c12e99 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Cholera_Deaths.shx differ diff --git a/module3/exo3/SnowGIS_SHP/OSMap.tfw b/module3/exo3/SnowGIS_SHP/OSMap.tfw new file mode 100644 index 0000000000000000000000000000000000000000..0c98219dff65c33cbff2a34e40ba576281c53a76 --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/OSMap.tfw @@ -0,0 +1,6 @@ +1.0000000000 +0.0000000000 +0.0000000000 +-1.0000000000 +528765.5000000000 +181518.5000000000 diff --git a/module3/exo3/SnowGIS_SHP/OSMap.tif b/module3/exo3/SnowGIS_SHP/OSMap.tif new file mode 100644 index 0000000000000000000000000000000000000000..543449fca3bca09d3dca661a517aa286b5d05675 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/OSMap.tif differ diff --git a/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tfw b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tfw new file mode 100644 index 0000000000000000000000000000000000000000..cec30fb38b277a4ac9786595102b4934713d41ae --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tfw @@ -0,0 +1,6 @@ +1.0000000000 +0.0000000000 +0.0000000000 +-0.9841121495 +528765.5000000000 +181518.5079439252 diff --git a/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif new file mode 100644 index 0000000000000000000000000000000000000000..b34cfb5c22ddcfb781d834953d0e359f5ab9208a Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif differ diff --git a/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif.aux.xml b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..1219c2595f62f66ae1e6b2ccfcd156ea838c0d80 --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif.aux.xml @@ -0,0 +1,11 @@ + + + + NEAREST + + + + THEMATIC + + + diff --git a/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif.ovr b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif.ovr new file mode 100644 index 0000000000000000000000000000000000000000..d9ec763f2927c90acf04fdaecddd3aedb1fc0f61 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/OSMap_Grayscale.tif.ovr differ diff --git a/module3/exo3/SnowGIS_SHP/Pumps.dbf b/module3/exo3/SnowGIS_SHP/Pumps.dbf new file mode 100644 index 0000000000000000000000000000000000000000..e6d3a34a64f072d0443c885e1b26ef2a7900cdc0 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Pumps.dbf differ diff --git a/module3/exo3/SnowGIS_SHP/Pumps.prj b/module3/exo3/SnowGIS_SHP/Pumps.prj new file mode 100644 index 0000000000000000000000000000000000000000..9c24ee3b83411a6b7b3824844482477578ed1d96 --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/Pumps.prj @@ -0,0 +1 @@ +PROJCS["OSGB 1936 / British National Grid",GEOGCS["OSGB 1936",DATUM["OSGB 1936",SPHEROID["Airy 1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0.0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",400000.0],PARAMETER["false_northing",-100000.0],PARAMETER["central_meridian",-2.0],PARAMETER["scale_factor",0.9996012717],PARAMETER["latitude_of_origin",49.0],UNIT["m",1.0]] \ No newline at end of file diff --git a/module3/exo3/SnowGIS_SHP/Pumps.sbx b/module3/exo3/SnowGIS_SHP/Pumps.sbx new file mode 100644 index 0000000000000000000000000000000000000000..c54ddbe4c91094139d3000182f772ef87d4dcbaf Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Pumps.sbx differ diff --git a/module3/exo3/SnowGIS_SHP/Pumps.shp b/module3/exo3/SnowGIS_SHP/Pumps.shp new file mode 100644 index 0000000000000000000000000000000000000000..eb76199858d5ff403d8b2512a78cb512f1c2fc47 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Pumps.shp differ diff --git a/module3/exo3/SnowGIS_SHP/Pumps.shx b/module3/exo3/SnowGIS_SHP/Pumps.shx new file mode 100644 index 0000000000000000000000000000000000000000..4cc4dce7a38b6134528db8643ce7a4e6fe70b25d Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/Pumps.shx differ diff --git a/module3/exo3/SnowGIS_SHP/README.txt b/module3/exo3/SnowGIS_SHP/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..e72abeecf2cc73fac1431c55044d217aae131b20 --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/README.txt @@ -0,0 +1,23 @@ +README file for Snow GIS data +----------------------------- + +This zip file contains a number of GIS layers relating to John Snow's 1854 investigation of a +Cholera outbreak in London - considered by many to be the first use of geographical analysis +in an epidemiological study. More details on the history are available at +http://en.wikipedia.org/wiki/1854_Broad_Street_cholera_outbreak + +This file contains a number of GIS layers created from Snow's original map which allow analyses to be +conducted on the data in modern GIS systems. For example, clustering of cases can be analysed and the +effect of spatial aggregation in modern anonymised health data releases. Of course, it's also just +interesting to look at the area, and how little it has changed since 1854. + +Files included: +(Many of the items in the list consist of many actual files (for example .shp, .dbf etc) + +* OSMap Raster Modern OS map of the area of the outbreak (from OS Open Data - contains Ordnance Survey data © Crown copyright and database right 2013) +* OSMap_Greyscale Raster Same as above, but in greyscale for easier visualisation (altered by conversion to greyscale, from OS Open Data - contains Ordnance Survey data © Crown copyright and database right 2013) +* SnowMap Raster Snow's original map, georeferenced and warped so that it accurately overlays the OS map +* CholeraDeaths Vector Points for each location of one or more deaths. Attribute value gives number of deaths at that location +* Pumps Vector Points for each location of a pump + +Created and compiled by Robin Wilson (robin@rtwilson.com, www.rtwilson.com/academic) - Jan 2011. \ No newline at end of file diff --git a/module3/exo3/SnowGIS_SHP/SnowMap.tfw b/module3/exo3/SnowGIS_SHP/SnowMap.tfw new file mode 100644 index 0000000000000000000000000000000000000000..29214e9db275d3436b1355a3acef39c56884ccbf --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/SnowMap.tfw @@ -0,0 +1,6 @@ +0.3159420000 +0.0000000000 +0.0000000000 +-0.3159420000 +528865.7464993792 +181433.8952167343 diff --git a/module3/exo3/SnowGIS_SHP/SnowMap.tif b/module3/exo3/SnowGIS_SHP/SnowMap.tif new file mode 100644 index 0000000000000000000000000000000000000000..6c93480f7e00066e896cd1f2e1fccaa800b1fd22 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/SnowMap.tif differ diff --git a/module3/exo3/SnowGIS_SHP/SnowMap.tif.aux.xml b/module3/exo3/SnowGIS_SHP/SnowMap.tif.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..0acdf5fd960dc437c243e54b42c93f1216db1cbc --- /dev/null +++ b/module3/exo3/SnowGIS_SHP/SnowMap.tif.aux.xml @@ -0,0 +1,60 @@ + + + + NEAREST + + + + + -0.5 + 255.5 + 256 + 1 + 0 + 1056558|38085|35030|30635|26721|23196|19973|17614|15202|13621|12110|10633|9602|8622|7615|6827|6160|5785|5263|4850|4471|4102|3821|3520|3396|3346|3106|3054|2953|2870|2747|2735|2682|2717|2536|2555|2465|2514|2461|2489|2566|2390|2491|2486|2418|2385|2321|2323|2264|2291|2389|2392|2227|2301|2275|2187|2254|2250|2202|2205|2187|2217|2155|2220|2105|2123|2165|2206|2149|2031|2108|2141|2066|2100|2080|2025|2107|2075|2068|2019|2023|2010|2026|2005|1995|2090|1978|2045|1994|1989|1999|2039|1942|1972|1946|1990|2006|1964|1962|1893|1939|1906|1888|1908|1968|1846|1918|1979|2044|1925|1884|1859|1862|1947|1930|1825|1934|1891|1975|1830|1898|1895|1926|1973|1924|1986|1920|1797|1912|1986|1890|1924|1944|1915|1996|1900|1925|1945|2011|1882|1953|1952|1974|1929|1997|2053|1981|1993|1959|1880|1925|1946|2015|1947|1917|2052|2062|2071|2017|2089|1949|2030|2007|2083|2080|1949|2085|2111|2091|2151|2135|2137|2019|2129|2076|2149|2084|2188|2108|2188|2105|2178|2159|2197|2146|2174|2360|2281|2260|2259|2254|2297|2279|2338|2337|2365|2450|2368|2407|2407|2435|2379|2488|2492|2497|2525|2490|2566|2577|2565|2676|2712|2726|2674|2688|2799|2707|2738|2831|2956|2800|2961|2904|3059|2994|3157|3254|3316|3508|3710|3905|4319|4664|5116|5937|6536|7435|8678|9923|11935|13906|16928|19919|23808|28421|34066|40774|48059|57324|67501|80304|94264|109903|125204|137869|5850359 + + + + 0 + 255 + 207.40977040919 + 94.77357404896 + + + + + + -0.5 + 255.5 + 256 + 1 + 0 + 1056558|38085|35030|30635|26721|23196|19973|17614|15202|13621|12110|10633|9602|8622|7615|6827|6160|5785|5263|4850|4471|4102|3821|3520|3396|3346|3106|3054|2953|2870|2747|2735|2682|2717|2536|2555|2465|2514|2461|2489|2566|2390|2491|2486|2418|2385|2321|2323|2264|2291|2389|2392|2227|2301|2275|2187|2254|2250|2202|2205|2187|2217|2155|2220|2105|2123|2165|2206|2149|2031|2108|2141|2066|2100|2080|2025|2107|2075|2068|2019|2023|2010|2026|2005|1995|2090|1978|2045|1994|1989|1999|2039|1942|1972|1946|1990|2006|1964|1962|1893|1939|1906|1888|1908|1968|1846|1918|1979|2044|1925|1884|1859|1862|1947|1930|1825|1934|1891|1975|1830|1898|1895|1926|1973|1924|1986|1920|1797|1912|1986|1890|1924|1944|1915|1996|1900|1925|1945|2011|1882|1953|1952|1974|1929|1997|2053|1981|1993|1959|1880|1925|1946|2015|1947|1917|2052|2062|2071|2017|2089|1949|2030|2007|2083|2080|1949|2085|2111|2091|2151|2135|2137|2019|2129|2076|2149|2084|2188|2108|2188|2105|2178|2159|2197|2146|2174|2360|2281|2260|2259|2254|2297|2279|2338|2337|2365|2450|2368|2407|2407|2435|2379|2488|2492|2497|2525|2490|2566|2577|2565|2676|2712|2726|2674|2688|2799|2707|2738|2831|2956|2800|2961|2904|3059|2994|3157|3254|3316|3508|3710|3905|4319|4664|5116|5937|6536|7435|8678|9923|11935|13906|16928|19919|23808|28421|34066|40774|48059|57324|67501|80304|94264|109903|125204|137869|5850359 + + + + 0 + 255 + 207.40977040919 + 94.77357404896 + + + + + + -0.5 + 255.5 + 256 + 1 + 0 + 1056558|38085|35030|30635|26721|23196|19973|17614|15202|13621|12110|10633|9602|8622|7615|6827|6160|5785|5263|4850|4471|4102|3821|3520|3396|3346|3106|3054|2953|2870|2747|2735|2682|2717|2536|2555|2465|2514|2461|2489|2566|2390|2491|2486|2418|2385|2321|2323|2264|2291|2389|2392|2227|2301|2275|2187|2254|2250|2202|2205|2187|2217|2155|2220|2105|2123|2165|2206|2149|2031|2108|2141|2066|2100|2080|2025|2107|2075|2068|2019|2023|2010|2026|2005|1995|2090|1978|2045|1994|1989|1999|2039|1942|1972|1946|1990|2006|1964|1962|1893|1939|1906|1888|1908|1968|1846|1918|1979|2044|1925|1884|1859|1862|1947|1930|1825|1934|1891|1975|1830|1898|1895|1926|1973|1924|1986|1920|1797|1912|1986|1890|1924|1944|1915|1996|1900|1925|1945|2011|1882|1953|1952|1974|1929|1997|2053|1981|1993|1959|1880|1925|1946|2015|1947|1917|2052|2062|2071|2017|2089|1949|2030|2007|2083|2080|1949|2085|2111|2091|2151|2135|2137|2019|2129|2076|2149|2084|2188|2108|2188|2105|2178|2159|2197|2146|2174|2360|2281|2260|2259|2254|2297|2279|2338|2337|2365|2450|2368|2407|2407|2435|2379|2488|2492|2497|2525|2490|2566|2577|2565|2676|2712|2726|2674|2688|2799|2707|2738|2831|2956|2800|2961|2904|3059|2994|3157|3254|3316|3508|3710|3905|4319|4664|5116|5937|6536|7435|8678|9923|11935|13906|16928|19919|23808|28421|34066|40774|48059|57324|67501|80304|94264|109903|125204|137869|5850359 + + + + 0 + 255 + 207.40977040919 + 94.77357404896 + + + diff --git a/module3/exo3/SnowGIS_SHP/SnowMap.tif.ovr b/module3/exo3/SnowGIS_SHP/SnowMap.tif.ovr new file mode 100644 index 0000000000000000000000000000000000000000..7b5ea01f132c0be8255d51618a2bc4f8f834be05 Binary files /dev/null and b/module3/exo3/SnowGIS_SHP/SnowMap.tif.ovr differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.dbf b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.dbf new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.dbf differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.prj b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.prj new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.prj differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.sbn b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.sbn new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.sbn differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.sbx b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.sbx new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.sbx differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.shp b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.shp new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.shp differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.shx b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.shx new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Cholera_Deaths.shx differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap.tfw b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap.tfw new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap.tfw differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap.tif b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap.tif new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap.tif differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tfw b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tfw new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tfw differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif.aux.xml b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif.aux.xml differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif.ovr b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif.ovr new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._OSMap_Grayscale.tif.ovr differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.dbf b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.dbf new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.dbf differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.prj b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.prj new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.prj differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.sbx b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.sbx new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.sbx differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.shp b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.shp new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.shp differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.shx b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.shx new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._Pumps.shx differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._README.txt b/module3/exo3/__MACOSX/SnowGIS_SHP/._README.txt new file mode 100644 index 0000000000000000000000000000000000000000..c0461f91436943ff09f01f5503e6ce7bf541c385 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._README.txt differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tfw b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tfw new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tfw differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif.aux.xml b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif.aux.xml differ diff --git a/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif.ovr b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif.ovr new file mode 100644 index 0000000000000000000000000000000000000000..641b9a03b66ff2f22cfd38fbba0ca35c8a975ca7 Binary files /dev/null and b/module3/exo3/__MACOSX/SnowGIS_SHP/._SnowMap.tif.ovr differ diff --git a/module3/exo3/peer-reviewed exercise.ipynb b/module3/exo3/peer-reviewed exercise.ipynb index a9c7eab7211bf1c07e3de202769e633411f57b72..6353f82eb9b9ba351db6db21c05a00920f0425e5 100644 --- a/module3/exo3/peer-reviewed exercise.ipynb +++ b/module3/exo3/peer-reviewed exercise.ipynb @@ -43,11 +43,47 @@ "data_url = \"http://rtwilson.com/downloads/SnowGIS_SHP.zip\"\n", "data_file = \"SnowGIS_SHP.zip\"\n", "\n", + "# Import data from url \n", "import os\n", "import urllib.request\n", "if not os.path.exists(data_file):\n", " urllib.request.urlretrieve(data_url, data_file)" ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [], + "source": [ + "# Unzip file \n", + "import zipfile\n", + "zip = zipfile.ZipFile(\"SnowGIS_SHP.zip\")\n", + "zip.extractall()" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [], + "source": [ + "# Convert shapefile to GEOJSON\n", + "def shapefile2geojson(infile, outfile, fieldname):\n", + " '''Translate a shapefile to GEOJSON.'''\n", + " options = gdal.VectorTranslateOptions(format=\"GeoJSON\",\n", + " dstSRS=\"EPSG:4326\")\n", + " gdal.VectorTranslate(outfile, infile, options=options)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "shapefile2geojson(infile, outfile)" + ] } ], "metadata": {