Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added examples/elevation.tif
Binary file not shown.
26 changes: 21 additions & 5 deletions examples/world-cities-tiling-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "6739e809",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Found existing software environment build, returning\n"
]
}
],
"source": [
"import coiled\n",
"\n",
Expand All @@ -23,7 +31,7 @@
" 'channels': ['conda-forge', 'defaults'],\n",
" 'dependencies': [\n",
" 'python=3.9',\n",
" 'mapshader',\n",
" 'mapshader=0.1.2',\n",
" 'dask=2022.04.2',\n",
" 'distributed=2022.4.2',\n",
" 'cloudpickle=2.0.0',\n",
Expand Down Expand Up @@ -152,7 +160,7 @@
" source_obj['transforms'] = transforms\n",
" source_obj['service_types'] = ['tile', 'wms', 'image', 'geojson']\n",
" source_obj['tiling'] = dict(min_zoom=1,\n",
" max_zoom=2,\n",
" max_zoom=5,\n",
" xmin_field='buffer_0_4326_xmin',\n",
" xmax_field='buffer_0_4326_xmax',\n",
" ymin_field='buffer_0_4326_ymin',\n",
Expand Down Expand Up @@ -184,7 +192,7 @@
"source": [
"from mapshader.tile_utils import list_tiles\n",
"\n",
"tiles_ddf = list_tiles(cities_source, npartitions=2)\n",
"tiles_ddf = list_tiles(cities_source, npartitions=10)\n",
"tiles_ddf.persist()"
]
},
Expand Down Expand Up @@ -248,6 +256,14 @@
"m\n",
"display(m)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f5aa09a8",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
17 changes: 13 additions & 4 deletions examples/world-countries-tiling-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
" 'channels': ['conda-forge', 'defaults'],\n",
" 'dependencies': [\n",
" 'python=3.9',\n",
" 'mapshader',\n",
" 'mapshader=0.1.2',\n",
" 'dask=2022.04.2',\n",
" 'distributed=2022.4.2',\n",
" 'cloudpickle=2.0.0',\n",
Expand Down Expand Up @@ -53,7 +53,8 @@
]
},
"id": "c96ffb3b-165f-48cd-ba82-9bc02ae4f74e",
"outputId": "02d39e29-ee35-443c-fd41-137354731ad8"
"outputId": "02d39e29-ee35-443c-fd41-137354731ad8",
"scrolled": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -156,7 +157,7 @@
" source_obj['transforms'] = transforms\n",
" source_obj['service_types'] = ['tile']\n",
" source_obj['tiling'] = dict(min_zoom=1,\n",
" max_zoom=2,\n",
" max_zoom=5,\n",
" xmin_field='buffer_0_4326_xmin',\n",
" xmax_field='buffer_0_4326_xmax',\n",
" ymin_field='buffer_0_4326_ymin',\n",
Expand Down Expand Up @@ -188,7 +189,7 @@
"source": [
"from mapshader.tile_utils import list_tiles\n",
"\n",
"tiles_ddf = list_tiles(countries_source, npartitions=2)\n",
"tiles_ddf = list_tiles(countries_source, npartitions=100)\n",
"tiles_ddf.persist()"
]
},
Expand Down Expand Up @@ -252,6 +253,14 @@
"m\n",
"display(m)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f451b0c0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading