Giter Club home page Giter Club logo

web-map-feature-services-cookbook's Introduction

thumbnail

Web Map / Feature Services Cookbook

nightly-build Binder DOI

This Project Pythia Cookbook covers retrieving and using web map / feature services to help provide the necessary spatial context to your data.

Motivation

By leveraging web map / feature services, users can easily access pre-processed data layers, utilize ready-to-use tiles, and benefit from production-level data that is continuously updated. This streamlines the data acquisition process and enables users to focus on their analysis tasks rather than data processing.

  • Pre-processed Data: Web map services provide access to a wide range of pre-processed geospatial data layers. This eliminates the need for users to perform data processing tasks themselves, saving time and effort.

  • Ready-to-Use Tiles: Users can simply fetch the tiles from the web map services and use them as a reference or overlay in their analysis. This makes it convenient to integrate the data into their own applications without the need to handle complex data processing workflows.

  • Production-Level Data: Web map services are often deployed at production level, ensuring that the data is up-to-date and near real-time. This is particularly advantageous for applications that require the latest information, such as weather monitoring or real-time asset tracking.

Authors

Andrew Huang

Contributors

Structure

This cookbook is broken up into two main sections - “Foundations” and “Example Workflows.”

Foundations

The foundational content includes:

  • Web Map Services
  • Web Feature Services

Example Workflows

Example workflows include:

  • NASA Earthdata GIBS Explorer

Running on Binder

The simplest way to interact with a Jupyter Notebook is through Binder, which enables the execution of a Jupyter Book in the cloud. The details of how this works are not important for now. All you need to know is how to launch a Pythia Cookbooks chapter via Binder. Simply navigate your mouse to the top right corner of the book chapter you are viewing and click on the rocket ship icon, (see figure below), and be sure to select “launch Binder”. After a moment you should be presented with a notebook that you can interact with. I.e. you’ll be able to execute and even change the example programs. You’ll see that the code cells have no output at first, until you execute them by pressing {kbd}Shift+{kbd}Enter. Complete details on how to interact with a live Jupyter notebook are described in Getting Started with Jupyter.

Running on Your Own Machine

If you are interested in running this material locally on your computer, you will need to follow this workflow:

(Replace "cookbook-example" with the title of your cookbooks)

  1. Clone the https://github.com/ProjectPythia/web-map-feature-services-cookbook repository:

     git clone https://github.com/ProjectPythia/web-map-feature-services-cookbook.git
  2. Move into the web-map-feature-services-cookbook directory

    cd web-map-feature-services-cookbook
  3. Create and activate your conda environment from the environment.yml file

    conda env create -f environment.yml
    conda activate web-map-feature-services-cookbook-dev
  4. Move into the notebooks directory and start up Jupyterlab

    cd notebooks/
    jupyter lab

web-map-feature-services-cookbook's People

Contributors

ahuang11 avatar brian-rose avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

brian-rose ktyle

web-map-feature-services-cookbook's Issues

General content + specific functionality issues

@ahuang11 This is an awesome cookbook; thank you so much for submitting it! The notebooks are very well documented and I learned a lot!

I have some general comments and a couple of specific functionality issues below.


Nasa Earthdata GIBS Explorer notebook:

Cell 4 (Interactive explorer):

  • When running the notebooks interactively in Jupyterlab using the prescribed environment:

    1. Changing the “Product” does not result in any changes in the previously-displayed “Layer” nor time slider.
    2. If user changes the “Layer”, even after clicking the “refresh” button, the displayed map does not reflect the changed layer until the user manipulates the time slider.
  • When viewing the notebooks on a rendered Jupyterbook:

    1. Changing the “Product” does not result in any changes in the previously-displayed “Layer” nor time slider.
    2. Time slider is non-functional

WMS Notebook:
global_extent = True should be formatted as code ( global_extent = True)

Cell 7 : note deprecation warning:
/tmp/ipykernel_231199/248091421.py:1: PanelDeprecationWarning: "Image(..., background='white')" is deprecated and will be removed in version 1.3, use "Image(..., styles={'background': 'white'})" instead. pn.pane.Image(requests.get(radar_url).content, background="white")

WFS Notebook:

Imports section:

  • Is the , including Geopandas, necessary, since it’s referred to later in the section?

Summary section:

  • Last sentence of summary: is there a link for the example workflows? Or is it planned that additional notebooks will be added to this cookbook?

Here are the versions of relevant packages in the environment I built:


bokeh 3.1.1
jupyter_bokeh 2.0.4
cartopy 0.21.1
geopandas 0.13.2
geopandas-base 0.13.2
geoviews 1.10.0
geoviews-core 1.10.0
hvplot 0.8.4
jupyter-book 0.15.1
jupyterlab 4.0.3
jupyterlab_pygments 0.2.2
jupyterlab_server 2.23.0
jupyterlab_widgets 3.0.8
jupyter_server 2.7.0
jupyter_server_terminals 0.4.4
jupyter_bokeh 2.0.4
panel 1.2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.