# Proposed Cookbook: Web Map Tile Services (WMTS)

**URL:** <https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505>\
**Category:** Project Pythia\
**Created:** [June 9, 2023, 5:35pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505 "2023-06-09T17:35:23Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [June 9, 2023, 5:35pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/1 "2023-06-09T17:35:23Z")

</div>

I would like to propose WMTS added to the gallery of cookbooks.

Motivation: WMTS, or Web Map Tile Service, is an important tool in atmospheric sciences that facilitates the distribution and visualization of geospatial data over the internet. It allows users to access and display maps as a collection of pre-rendered image tiles.

**This is key because users do not have to pre-process data themselves**. Users can simply fetch these tiles to add as a reference point or overlay for whatever analysis they’re performing. In addition, these services often are deployed at production level, meaning the data is in near real time.

Here’s an outline:

- WMTS: What and why?

Foundations:

- Static tiles
- Interactive tiles

Example Workflows:

- ESRI maps
- City layers
- NOAA radar
- NASA satellite
- Hurricane tracks
- Crop climate
- Custom tiles
- Offline tiles
- Dashboard of tiles

Reference links:  
[https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS\_Observations/radar\_base\_reflectivity/MapServer](https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Observations/radar_base_reflectivity/MapServer)

> **[Using geoviews tile sources offline?](https://discourse.holoviz.org/t/using-geoviews-tile-sources-offline/4859/6)**
>
> Here’s how you can use tiles offline. First cache/convert the tiles. from pathlib import Path import numpy as np from shapely import box import cartopy.io.img\_tiles as cimgt import cartopy.crs as ccrs from PIL import Image def cache\_tiles( ...

[https://sedac.ciesin.columbia.edu/maps/services#crop-climate](https://sedac.ciesin.columbia.edu/maps/services#crop-climate)

---

<div class="post-metadata">

**Author:** ![brian-rose](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/brian-rose/32/184_2.png) [@brian-rose](https://discourse.pangeo.io/u/brian-rose)\
**Post date:** [June 12, 2023, 8:12pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/2 "2023-06-12T20:12:57Z")

</div>

Sounds like an excellent topic to develop at next week’s hackathon!

---

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [June 14, 2023, 8:54pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/3 "2023-06-14T20:54:56Z")

</div>

Does the cookbook need to be complete to be transferred over?

Specifically I’d like to publish this / see it rendered even though I haven’t finished WFS / the example workflows.

> **[GitHub - ahuang11/web-map-feature-services-cookbook: Web map/feature services...](https://github.com/ahuang11/web-map-feature-services-cookbook)**
>
> Web map/feature services can help provide the necessary spatial context to your data. - GitHub - ahuang11/web-map-feature-services-cookbook: Web map/feature services can help provide the necessary ...

---

<div class="post-metadata">

**Author:** ![brian-rose](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/brian-rose/32/184_2.png) [@brian-rose](https://discourse.pangeo.io/u/brian-rose)\
**Post date:** [June 14, 2023, 8:59pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/4 "2023-06-14T20:59:31Z")

</div>

No – you can transfer to repo to the ProjectPythia org at any time.

But you probably don’t need to just yet! You should be able to see the rendered book on your personal GitHub Pages space. You need to make sure GitHub Pages is switched on for your repo. Then the rendered book should publish itself to `https://<user-name>.github.io/<cookbook-repo-name>`

---

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [June 14, 2023, 9:02pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/5 "2023-06-14T21:02:02Z")

</div>

I think I’m getting:

```auto

  /usr/bin/git push origin gh-pages
  remote: Permission to ahuang11/web-map-feature-services-cookbook.git denied to github-actions[bot].
  fatal: unable to access 'https://github.com/ahuang11/web-map-feature-services-cookbook.git/': The requested URL returned error: 403
  Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"

```

---

<div class="post-metadata">

**Author:** ![brian-rose](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/brian-rose/32/184_2.png) [@brian-rose](https://discourse.pangeo.io/u/brian-rose)\
**Post date:** [June 14, 2023, 9:02pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/6 "2023-06-14T21:02:41Z")

</div>

You may also need to click the box “Allow GitHub Actions to create and approve pull requests” in your repo Setting → Actions —\> General

---

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [June 14, 2023, 9:09pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/7 "2023-06-14T21:09:10Z")

</div>

Thanks for the quick help!  
[https://ahuang11.github.io/web-map-feature-services-cookbook/notebooks/web\_map\_services.html](https://ahuang11.github.io/web-map-feature-services-cookbook/notebooks/web_map_services.html)

---

<div class="post-metadata">

**Author:** ![brian-rose](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/brian-rose/32/184_2.png) [@brian-rose](https://discourse.pangeo.io/u/brian-rose)\
**Post date:** [June 16, 2023, 11:39am UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/8 "2023-06-16T11:39:09Z")

</div>

This looks great!

Whenever you’re ready to transfer the repo to the Pythia org, we can start the review process to get it “published” on the cookbook gallery.

No rush on this of course if you prefer to keep developing content in your personal space!

---

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [July 9, 2023, 4:53pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/9 "2023-07-09T16:53:44Z")

</div>

Hi @brian-rose I believe the [cookbook](https://ahuang11.github.io/web-map-feature-services-cookbook/README.html) is now ready to be transferred over!

Can you help guide me on the process?

---

<div class="post-metadata">

**Author:** ![brian-rose](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/brian-rose/32/184_2.png) [@brian-rose](https://discourse.pangeo.io/u/brian-rose)\
**Post date:** [July 10, 2023, 1:45pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/10 "2023-07-10T13:45:59Z")

</div>

Great! We’ll try to follow [these steps in the contributors guide](https://github.com/ProjectPythia/.github/blob/main/.github/CONTRIBUTING.md#transfer-cookbook-to-the-projectpythia-organization). I just sent you an invitation to join the GitHub org.

I can see a few things in your repo that need updating for the most recent changes we’ve made in the template. I can open a PR for that once you transfer the repo over the ProjectPythia org.

Great looking cookbook! Thanks for this contribution.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [July 10, 2023, 3:10pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/11 "2023-07-10T15:10:51Z")

</div>

Transferred over; let me know if there’s anything I can help with.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ahuang11/32/2290_2.png) [@ahuang11](https://discourse.pangeo.io/u/ahuang11)\
**Post date:** [July 17, 2023, 12:50pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/12 "2023-07-17T12:50:12Z")

</div>

Hi, I was wondering when the cookbook page will be updated to reflect new cookbooks.

---

<div class="post-metadata">

**Author:** ![ktyle](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ktyle/32/1717_2.png) [@ktyle](https://discourse.pangeo.io/u/ktyle)\
**Post date:** [July 18, 2023, 1:40pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/13 "2023-07-18T13:40:17Z")

</div>

Hey @ahuang11 ! This is on my to-do list today! Thanks much for your contribution!!

---

<div class="post-metadata">

**Author:** ![ktyle](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/ktyle/32/1717_2.png) [@ktyle](https://discourse.pangeo.io/u/ktyle)\
**Post date:** [July 19, 2023, 4:04pm UTC](https://discourse.pangeo.io/t/proposed-cookbook-web-map-tile-services-wmts/3505/14 "2023-07-19T16:04:53Z")

</div>

@ahuang11 I created an issue: [General content + specific functionality issues · Issue #6 · ProjectPythia/web-map-feature-services-cookbook · GitHub](https://github.com/ProjectPythia/web-map-feature-services-cookbook/issues/6)
