Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to load raster tile maps using contextily #2125

Merged
merged 35 commits into from
Mar 2, 2023

Commits on Sep 19, 2022

  1. Add function to load raster basemap tiles using contextily

    New dataset function to load XYZ tiles! Uses contextily to retrieve the tiles based on a bounding box. Included an example doctest that shows how the map tiles can be loaded into an xarray.DataArray. Added a new section in the API docs and intersphinx mappings for contextily and xyzservices.
    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    6f7a4f0 View commit details
    Browse the repository at this point in the history
  2. Format to remove triple dots

    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    917604d View commit details
    Browse the repository at this point in the history
  3. Use correct Spherical Mercator coordinates

    Can't assume that the input bounding box (which can be in longitude/latitude) is the same as the returned extent (which is always in EPSG:3857).
    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    66f66cc View commit details
    Browse the repository at this point in the history
  4. Fix coordinates for doctest

    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    e99ed4d View commit details
    Browse the repository at this point in the history
  5. Change ll parameter to lonlat

    To fix pylint `C0103: Argument name "ll" doesn't conform to snake_case naming style (invalid-name)`.
    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    3c437c0 View commit details
    Browse the repository at this point in the history
  6. Reduce number of local variables to fix pylint R0914

    Remove the extent and _image variables to prevent `R0914: Too many local variables (17/15) (too-many-locals)`.
    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    c738375 View commit details
    Browse the repository at this point in the history
  7. Add contextily to CI build matrix and include it as optional dependency

    Let the Continuous Integration tests run with `contextily`, include it in pyproject.toml and environment.yml, and document it in `doc/install.rst` as an optional dependency.
    weiji14 committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    30fd9a2 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2022

  1. Set default bounding box coordinates to be lonlat

    Bounding box coordinates are assumed to be longitude/latitude by default, rather than in Spherical Mercator.
    weiji14 committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    f913222 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Configuration menu
    Copy the full SHA
    1270c3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0455bb4 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2022

  1. Configuration menu
    Copy the full SHA
    8b5317f View commit details
    Browse the repository at this point in the history
  2. Fix typo

    Co-Authored-By: Dongdong Tian <seisman.info@gmail.com>
    weiji14 and seisman committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    6142b40 View commit details
    Browse the repository at this point in the history
  3. Add intersphinx link for rasterio

    Also updated intersphinx link for xarray to new URL at https://docs.xarray.dev/en/stable
    weiji14 committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    5400710 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2022

  1. Configuration menu
    Copy the full SHA
    8aa1c7a View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2022

  1. Configuration menu
    Copy the full SHA
    bf1c007 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26dd404 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2959e58 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2023

  1. Configuration menu
    Copy the full SHA
    241aec1 View commit details
    Browse the repository at this point in the history
  2. Reorder deps and add a fullstop

    Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
    weiji14 and seisman committed Jan 7, 2023
    Configuration menu
    Copy the full SHA
    eeda973 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. Configuration menu
    Copy the full SHA
    cc86e7d View commit details
    Browse the repository at this point in the history
  2. Use PyGMT's convention for default values in docstrings

    Modified from original contextily.bounds2img docstring to fit PyGMT's standards. Xref https://github.com/Generi cMappingTools/pygmt/pull/1182.
    weiji14 committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    67b17fc View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. Configuration menu
    Copy the full SHA
    5a446fb View commit details
    Browse the repository at this point in the history
  2. Rename load_map_tiles to load_tile_map

    Also create new dedicated section for load_tile_map in the API docs index.
    weiji14 committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    3dc8846 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c61779 View commit details
    Browse the repository at this point in the history
  4. Add zoom parameter and remove kwargs

    Wrap all of the parameters in contextily.bounds2img, and so can remove kwargs. Need to disable the pylint recommendation `R0914: Too many local variables`.
    weiji14 committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    d06e2c0 View commit details
    Browse the repository at this point in the history
  5. Revert "Reduce number of local variables to fix pylint R0914"

    This reverts commit c738375. Since we've ignored the too-many-locals pylint recommendation already.
    weiji14 committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    6b2d5cd View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Configuration menu
    Copy the full SHA
    b1ad795 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    484b6c8 View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
    weiji14 and seisman committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    cf7ab34 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8563ecf View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. Document the three possible source options thoroughly

    Split out the three possible source options into bullet points. Link to https://contextily.readthedocs.io/en/latest/providers_deepdive.html, give an example OpenStreetMap URL, and link to https://contextily.readthedocs.io/en/stable/working_with_local_files.html.
    weiji14 committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    aa2d5fb View commit details
    Browse the repository at this point in the history
  2. Remove extra fullstops and fix typos

    Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
    weiji14 and michaelgrund committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    d74f878 View commit details
    Browse the repository at this point in the history
  3. Add more detail about the zoom level of detail

    Co-Authored-By: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
    weiji14 and yvonnefroehlich committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    9f14d31 View commit details
    Browse the repository at this point in the history
  4. Remove another fullstop

    Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
    weiji14 and michaelgrund committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    b02b50c View commit details
    Browse the repository at this point in the history
  5. Wrap integers in backticks and fix some typos

    Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
    weiji14 and yvonnefroehlich committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    10af781 View commit details
    Browse the repository at this point in the history