|
65 | 65 | "import cartopy.crs as ccrs\n",
|
66 | 66 | "import cartopy\n",
|
67 | 67 | "from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER\n",
|
| 68 | + "import folium\n", |
68 | 69 | "import urllib.request\n",
|
69 | 70 | "import urllib.parse\n",
|
70 | 71 | "import mapbox_vector_tile\n",
|
|
868 | 869 | "print('')"
|
869 | 870 | ]
|
870 | 871 | },
|
| 872 | + { |
| 873 | + "cell_type": "markdown", |
| 874 | + "id": "b7a0e761", |
| 875 | + "metadata": {}, |
| 876 | + "source": [ |
| 877 | + "<a id=\"visualize_wms_global_raster_data\"></a>\n", |
| 878 | + "\n", |
| 879 | + "### Visualize WMS Global Raster Data with Folium \n", |
| 880 | + "\n", |
| 881 | + "<DIV align=\"left\" style=\"line-height:1.5em;\">\n", |
| 882 | + "<p>\n", |
| 883 | + " \n", |
| 884 | + "This example shows how to display a WMS global image on an OpenStreetMap using Folium.\n", |
| 885 | + " \n", |
| 886 | + "</p>\n", |
| 887 | + "</DIV>" |
| 888 | + ] |
| 889 | + }, |
| 890 | + { |
| 891 | + "cell_type": "code", |
| 892 | + "execution_count": null, |
| 893 | + "id": "14fcbee2", |
| 894 | + "metadata": {}, |
| 895 | + "outputs": [], |
| 896 | + "source": [ |
| 897 | + "# Other tile options are \"CartoDB Positron\" and \"CartoDB Voyager\"\n", |
| 898 | + "m = folium.Map(location=[41, -70], zoom_start=4, tiles=\"OpenStreetMap\")\n", |
| 899 | + "\n", |
| 900 | + "folium.WmsTileLayer(\n", |
| 901 | + " url=\"https://gibs.earthdata.nasa.gov/wms/epsg4326/best/wms.cgi\",\n", |
| 902 | + " name=\"WMS Landsat Reflectance\",\n", |
| 903 | + " fmt=\"image/png\",\n", |
| 904 | + " layers=\"Landsat_WELD_CorrectedReflectance_Bands157_Global_Annual\",\n", |
| 905 | + " transparent=True,\n", |
| 906 | + " overlay=True,\n", |
| 907 | + " control=True,\n", |
| 908 | + ").add_to(m)\n", |
| 909 | + "\n", |
| 910 | + "folium.LayerControl().add_to(m)\n", |
| 911 | + "\n", |
| 912 | + "m" |
| 913 | + ] |
| 914 | + }, |
871 | 915 | {
|
872 | 916 | "attachments": {},
|
873 | 917 | "cell_type": "markdown",
|
|
0 commit comments