|
10 | 10 | }, |
11 | 11 | { |
12 | 12 | "cell_type": "code", |
13 | | - "execution_count": 1, |
| 13 | + "execution_count": 5, |
14 | 14 | "id": "55915667", |
15 | 15 | "metadata": {}, |
16 | 16 | "outputs": [], |
|
25 | 25 | }, |
26 | 26 | { |
27 | 27 | "cell_type": "code", |
28 | | - "execution_count": 2, |
| 28 | + "execution_count": 6, |
29 | 29 | "id": "5c65b3d5", |
30 | 30 | "metadata": {}, |
31 | 31 | "outputs": [ |
|
50 | 50 | }, |
51 | 51 | { |
52 | 52 | "cell_type": "code", |
53 | | - "execution_count": 3, |
| 53 | + "execution_count": 7, |
54 | 54 | "id": "85e4c1e0", |
55 | 55 | "metadata": { |
56 | 56 | "scrolled": false |
|
59 | 59 | { |
60 | 60 | "data": { |
61 | 61 | "text/plain": [ |
62 | | - "{'bounds': [7.090624928537461,\n", |
63 | | - " 45.916058441028206,\n", |
64 | | - " 7.1035698381384185,\n", |
65 | | - " 45.925093000254144],\n", |
66 | | - " 'band_metadata': [['1',\n", |
| 62 | + "{'bounds': [2573000.0, 1085000.0, 2574000.0, 1086000.0],\n", |
| 63 | + " 'crs': 'http://www.opengis.net/def/crs/EPSG/0/2056',\n", |
| 64 | + " 'band_metadata': [['b1',\n", |
67 | 65 | " {'STATISTICS_COVARIANCES': '10685.98787505646',\n", |
68 | 66 | " 'STATISTICS_EXCLUDEDVALUES': '-9999',\n", |
69 | 67 | " 'STATISTICS_MAXIMUM': '2015.0944824219',\n", |
|
72 | 70 | " 'STATISTICS_SKIPFACTORX': '1',\n", |
73 | 71 | " 'STATISTICS_SKIPFACTORY': '1',\n", |
74 | 72 | " 'STATISTICS_STDDEV': '103.37305197708'}]],\n", |
75 | | - " 'band_descriptions': [['1', '']],\n", |
| 73 | + " 'band_descriptions': [['b1', '']],\n", |
76 | 74 | " 'dtype': 'float32',\n", |
77 | 75 | " 'nodata_type': 'Nodata',\n", |
78 | 76 | " 'colorinterp': ['gray'],\n", |
79 | | - " 'overviews': [2, 4, 8],\n", |
80 | | - " 'height': 2000,\n", |
81 | | - " 'nodata_value': -9999.0,\n", |
82 | | - " 'count': 1,\n", |
| 77 | + " 'scales': [1.0],\n", |
| 78 | + " 'offsets': [0.0],\n", |
83 | 79 | " 'driver': 'GTiff',\n", |
84 | | - " 'width': 2000}" |
| 80 | + " 'count': 1,\n", |
| 81 | + " 'width': 2000,\n", |
| 82 | + " 'height': 2000,\n", |
| 83 | + " 'overviews': [2, 4, 8],\n", |
| 84 | + " 'nodata_value': -9999.0}" |
85 | 85 | ] |
86 | 86 | }, |
87 | | - "execution_count": 3, |
| 87 | + "execution_count": 7, |
88 | 88 | "metadata": {}, |
89 | 89 | "output_type": "execute_result" |
90 | 90 | } |
|
96 | 96 | }, |
97 | 97 | { |
98 | 98 | "cell_type": "code", |
99 | | - "execution_count": 4, |
| 99 | + "execution_count": 8, |
100 | 100 | "id": "4cc8c900", |
101 | 101 | "metadata": { |
102 | 102 | "scrolled": false |
|
105 | 105 | { |
106 | 106 | "data": { |
107 | 107 | "text/html": [ |
108 | | - "<div style=\"width:100%;\"><div style=\"position:relative;width:100%;height:0;padding-bottom:60%;\"><span style=\"color:#565656\">Make this Notebook Trusted to load map: File -> Trust Notebook</span><iframe src=\"about:blank\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" data-html=%3C%21DOCTYPE%20html%3E%0A%3Chead%3E%20%20%20%20%0A%20%20%20%20%3Cmeta%20http-equiv%3D%22content-type%22%20content%3D%22text/html%3B%20charset%3DUTF-8%22%20/%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%3Cscript%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20L_NO_TOUCH%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20L_DISABLE_3D%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%3C/script%3E%0A%20%20%20%20%0A%20%20%20%20%3Cstyle%3Ehtml%2C%20body%20%7Bwidth%3A%20100%25%3Bheight%3A%20100%25%3Bmargin%3A%200%3Bpadding%3A%200%3B%7D%3C/style%3E%0A%20%20%20%20%3Cstyle%3E%23map%20%7Bposition%3Aabsolute%3Btop%3A0%3Bbottom%3A0%3Bright%3A0%3Bleft%3A0%3B%7D%3C/style%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//cdn.jsdelivr.net/npm/leaflet%401.6.0/dist/leaflet.js%22%3E%3C/script%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//code.jquery.com/jquery-1.12.4.min.js%22%3E%3C/script%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js%22%3E%3C/script%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js%22%3E%3C/script%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//cdn.jsdelivr.net/npm/leaflet%401.6.0/dist/leaflet.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css%22/%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cmeta%20name%3D%22viewport%22%20content%3D%22width%3Ddevice-width%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20initial-scale%3D1.0%2C%20maximum-scale%3D1.0%2C%20user-scalable%3Dno%22%20/%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23map_becaf3665d874004ba1a1e9d0034e713%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20position%3A%20relative%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%3A%20100.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%3A%20100.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20left%3A%200.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20top%3A%200.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C/style%3E%0A%20%20%20%20%20%20%20%20%0A%3C/head%3E%0A%3Cbody%3E%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22folium-map%22%20id%3D%22map_becaf3665d874004ba1a1e9d0034e713%22%20%3E%3C/div%3E%0A%20%20%20%20%20%20%20%20%0A%3C/body%3E%0A%3Cscript%3E%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20map_becaf3665d874004ba1a1e9d0034e713%20%3D%20L.map%28%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22map_becaf3665d874004ba1a1e9d0034e713%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20center%3A%20%5B45.920575720641175%2C%207.09709738333794%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20crs%3A%20L.CRS.EPSG3857%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20zoom%3A%2015%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20zoomControl%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20preferCanvas%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%29%3B%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20tile_layer_de47a4b556344b78857002fcf60e2b2f%20%3D%20L.tileLayer%28%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22https%3A//%7Bs%7D.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%22attribution%22%3A%20%22Data%20by%20%5Cu0026copy%3B%20%5Cu003ca%20href%3D%5C%22http%3A//openstreetmap.org%5C%22%5Cu003eOpenStreetMap%5Cu003c/a%5Cu003e%2C%20under%20%5Cu003ca%20href%3D%5C%22http%3A//www.openstreetmap.org/copyright%5C%22%5Cu003eODbL%5Cu003c/a%5Cu003e.%22%2C%20%22detectRetina%22%3A%20false%2C%20%22maxNativeZoom%22%3A%2018%2C%20%22maxZoom%22%3A%2018%2C%20%22minZoom%22%3A%200%2C%20%22noWrap%22%3A%20false%2C%20%22opacity%22%3A%201%2C%20%22subdomains%22%3A%20%22abc%22%2C%20%22tms%22%3A%20false%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%29.addTo%28map_becaf3665d874004ba1a1e9d0034e713%29%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20tile_layer_84bbe6fb7aba4cec8db73c2dd5cc5c37%20%3D%20L.tileLayer%28%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22http%3A//127.0.0.1%3A8080/tiles/%7Bz%7D/%7Bx%7D/%7By%7D%3Frescale%3D1600%252C2000%5Cu0026colormap_name%3Dterrain%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%22attribution%22%3A%20%22Yo%21%21%22%2C%20%22detectRetina%22%3A%20false%2C%20%22maxNativeZoom%22%3A%2018%2C%20%22maxZoom%22%3A%2018%2C%20%22minZoom%22%3A%200%2C%20%22noWrap%22%3A%20false%2C%20%22opacity%22%3A%201%2C%20%22subdomains%22%3A%20%22abc%22%2C%20%22tms%22%3A%20false%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%29.addTo%28map_becaf3665d874004ba1a1e9d0034e713%29%3B%0A%20%20%20%20%20%20%20%20%0A%3C/script%3E onload=\"this.contentDocument.open();this.contentDocument.write( decodeURIComponent(this.getAttribute('data-html')));this.contentDocument.close();\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>" |
| 108 | + "<div style=\"width:100%;\"><div style=\"position:relative;width:100%;height:0;padding-bottom:60%;\"><span style=\"color:#565656\">Make this Notebook Trusted to load map: File -> Trust Notebook</span><iframe srcdoc=\"<!DOCTYPE html>\n", |
| 109 | + "<html>\n", |
| 110 | + "<head>\n", |
| 111 | + " \n", |
| 112 | + " <meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n", |
| 113 | + " \n", |
| 114 | + " <script>\n", |
| 115 | + " L_NO_TOUCH = false;\n", |
| 116 | + " L_DISABLE_3D = false;\n", |
| 117 | + " </script>\n", |
| 118 | + " \n", |
| 119 | + " <style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>\n", |
| 120 | + " <style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>\n", |
| 121 | + " <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.js"></script>\n", |
| 122 | + " <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>\n", |
| 123 | + " <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>\n", |
| 124 | + " <script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>\n", |
| 125 | + " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.css"/>\n", |
| 126 | + " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"/>\n", |
| 127 | + " <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css"/>\n", |
| 128 | + " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"/>\n", |
| 129 | + " <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>\n", |
| 130 | + " <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>\n", |
| 131 | + " \n", |
| 132 | + " <meta name="viewport" content="width=device-width,\n", |
| 133 | + " initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n", |
| 134 | + " <style>\n", |
| 135 | + " #map_523ab0fbed0a980477d009327c813376 {\n", |
| 136 | + " position: relative;\n", |
| 137 | + " width: 100.0%;\n", |
| 138 | + " height: 100.0%;\n", |
| 139 | + " left: 0.0%;\n", |
| 140 | + " top: 0.0%;\n", |
| 141 | + " }\n", |
| 142 | + " .leaflet-container { font-size: 1rem; }\n", |
| 143 | + " </style>\n", |
| 144 | + " \n", |
| 145 | + "</head>\n", |
| 146 | + "<body>\n", |
| 147 | + " \n", |
| 148 | + " \n", |
| 149 | + " <div class="folium-map" id="map_523ab0fbed0a980477d009327c813376" ></div>\n", |
| 150 | + " \n", |
| 151 | + "</body>\n", |
| 152 | + "<script>\n", |
| 153 | + " \n", |
| 154 | + " \n", |
| 155 | + " var map_523ab0fbed0a980477d009327c813376 = L.map(\n", |
| 156 | + " "map_523ab0fbed0a980477d009327c813376",\n", |
| 157 | + " {\n", |
| 158 | + " center: [45.92057572064118, 7.09709738333794],\n", |
| 159 | + " crs: L.CRS.EPSG3857,\n", |
| 160 | + " ...{\n", |
| 161 | + " "zoom": 15,\n", |
| 162 | + " "zoomControl": true,\n", |
| 163 | + " "preferCanvas": false,\n", |
| 164 | + "}\n", |
| 165 | + "\n", |
| 166 | + " }\n", |
| 167 | + " );\n", |
| 168 | + "\n", |
| 169 | + " \n", |
| 170 | + "\n", |
| 171 | + " \n", |
| 172 | + " \n", |
| 173 | + " var tile_layer_b99227e7e4371d1adc9dcbdf4e733cb4 = L.tileLayer(\n", |
| 174 | + " "https://tile.openstreetmap.org/{z}/{x}/{y}.png",\n", |
| 175 | + " {\n", |
| 176 | + " "minZoom": 0,\n", |
| 177 | + " "maxZoom": 19,\n", |
| 178 | + " "maxNativeZoom": 19,\n", |
| 179 | + " "noWrap": false,\n", |
| 180 | + " "attribution": "\\u0026copy; \\u003ca href=\\"https://www.openstreetmap.org/copyright\\"\\u003eOpenStreetMap\\u003c/a\\u003e contributors",\n", |
| 181 | + " "subdomains": "abc",\n", |
| 182 | + " "detectRetina": false,\n", |
| 183 | + " "tms": false,\n", |
| 184 | + " "opacity": 1,\n", |
| 185 | + "}\n", |
| 186 | + "\n", |
| 187 | + " );\n", |
| 188 | + " \n", |
| 189 | + " \n", |
| 190 | + " tile_layer_b99227e7e4371d1adc9dcbdf4e733cb4.addTo(map_523ab0fbed0a980477d009327c813376);\n", |
| 191 | + " \n", |
| 192 | + " \n", |
| 193 | + " var tile_layer_51ba91bec6d6daf44f907902fcf69fbd = L.tileLayer(\n", |
| 194 | + " "http://127.0.0.1:8080/tiles/WebMercatorQuad/{z}/{x}/{y}?rescale=1600%2C2000\\u0026colormap_name=terrain",\n", |
| 195 | + " {\n", |
| 196 | + " "minZoom": 0,\n", |
| 197 | + " "maxZoom": 18,\n", |
| 198 | + " "maxNativeZoom": 18,\n", |
| 199 | + " "noWrap": false,\n", |
| 200 | + " "attribution": "Yo!!",\n", |
| 201 | + " "subdomains": "abc",\n", |
| 202 | + " "detectRetina": false,\n", |
| 203 | + " "tms": false,\n", |
| 204 | + " "opacity": 1,\n", |
| 205 | + "}\n", |
| 206 | + "\n", |
| 207 | + " );\n", |
| 208 | + " \n", |
| 209 | + " \n", |
| 210 | + " tile_layer_51ba91bec6d6daf44f907902fcf69fbd.addTo(map_523ab0fbed0a980477d009327c813376);\n", |
| 211 | + " \n", |
| 212 | + "</script>\n", |
| 213 | + "</html>\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>" |
109 | 214 | ], |
110 | 215 | "text/plain": [ |
111 | | - "<folium.folium.Map at 0x174f17670>" |
| 216 | + "<folium.folium.Map at 0x138ed49e0>" |
112 | 217 | ] |
113 | 218 | }, |
114 | | - "execution_count": 4, |
| 219 | + "execution_count": 8, |
115 | 220 | "metadata": {}, |
116 | 221 | "output_type": "execute_result" |
117 | | - }, |
118 | | - { |
119 | | - "name": "stderr", |
120 | | - "output_type": "stream", |
121 | | - "text": [ |
122 | | - "/Users/vincentsarago/Dev/vincentsarago/rasterio/rasterio/io.py:140: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix will be returned.\n", |
123 | | - " return writer(mempath, 'w+', driver=driver, width=width,\n", |
124 | | - "ERROR 4: `/vsimem/c3a718d1-01e9-4503-8f86-519ae94e88c8/c3a718d1-01e9-4503-8f86-519ae94e88c8.tif' not recognized as a supported file format.\n", |
125 | | - "ERROR 4: `/vsimem/d141fe57-b93d-404c-805d-ff44812698e3/d141fe57-b93d-404c-805d-ff44812698e3.tif' not recognized as a supported file format.\n", |
126 | | - "ERROR 4: `/vsimem/ec85c789-d8a9-4bc6-ac09-e55b5498af6b/ec85c789-d8a9-4bc6-ac09-e55b5498af6b.tif' not recognized as a supported file format.\n", |
127 | | - "ERROR 4: `/vsimem/bd8ac208-f160-471d-be61-c9f42fe49fd7/bd8ac208-f160-471d-be61-c9f42fe49fd7.tif' not recognized as a supported file format.\n" |
128 | | - ] |
129 | 222 | } |
130 | 223 | ], |
131 | 224 | "source": [ |
|
154 | 247 | }, |
155 | 248 | { |
156 | 249 | "cell_type": "code", |
157 | | - "execution_count": null, |
| 250 | + "execution_count": 9, |
158 | 251 | "id": "54d674e9", |
159 | 252 | "metadata": {}, |
160 | 253 | "outputs": [], |
| 254 | + "source": [ |
| 255 | + "client.shutdown()" |
| 256 | + ] |
| 257 | + }, |
| 258 | + { |
| 259 | + "cell_type": "code", |
| 260 | + "execution_count": null, |
| 261 | + "id": "adc13756", |
| 262 | + "metadata": {}, |
| 263 | + "outputs": [], |
161 | 264 | "source": [] |
162 | 265 | } |
163 | 266 | ], |
|
177 | 280 | "name": "python", |
178 | 281 | "nbconvert_exporter": "python", |
179 | 282 | "pygments_lexer": "ipython3", |
180 | | - "version": "3.8.9" |
| 283 | + "version": "3.12.3" |
181 | 284 | }, |
182 | 285 | "vscode": { |
183 | 286 | "interpreter": { |
|
0 commit comments