Skip to main content

A Python package for geospatial analysis and interactive mapping in a Jupyter environment.

Project description

Welcome to leafmap

image image image image image image image image image image image

A Python package for geospatial analysis and interactive mapping in a Jupyter environment.

Introduction

leafmap is a Python package for geospatial analysis and interactive mapping in a Jupyter environment. It is a spin-off project of the geemap Python package, which was designed specifically to work with Google Earth Engine (GEE). However, not everyone in the geospatial community has a GEE account. leafmap is designed to fill this gap for non-GEE users. It enables users to perform advanced geospatial analysis and interactive mapping with minimal coding in a Jupyter environment (e.g., Google Colab, JupyterLab, Jupyter notebook). It is built upon a number of open-source packages, such as folium and ipyleaflet (for creating interactive maps), WhiteboxTools and whiteboxgui (for analyzing geospatial data), and ipywidgets (for designing interactive graphical user interface).

The WhiteboxTools library currently contains 468 tools, which are each grouped based on their main function into one of the following categories. For a list of available tools with comprehensive documentation and usage details, please see the WhiteboxTools User Manual.

Launch the interactive notebook tutorial for the leafmap Python package with Google Colab or Binder now:

image image

Check out this excellent article on Medium - Leafmap a new Python Package for Geospatial data science

Key Features

Below is a partial list of features available for the leafmap package. Please check the examples page for notebook examples, GIF animations, and video tutorials.

  • Create an interactive map with only one-line of code.
  • Select from a variety of basemaps interactively without coding.
  • Add XYZ, WMS, and vector tile services to the map.
  • Convert CSV to points and display points as a marker cluster.
  • Add local vector data (e.g., shapefile, GeoJSON, KML) to the map without coding.
  • Add local raster data (e.g., GeoTIFF) to the map without coding.
  • Add Cloud Optimized GeoTIFF (COG) and SpatialTemporal Asset Catalog (STAC) to the map.
  • Add OpenStreetMap data to the map with a single line of code.
  • Add a GeoPandas GeoDataFrame to the map with a single line of code.
  • Add a point layer with popup attributes to the map.
  • Add data from a PostGIS database to the map.
  • Add custom legends and colorbars to the map.
  • Perform geospatial analysis using WhiteboxTools and whiteboxgui.
  • Create split-panel map and linked maps.
  • Publish interactive maps with a single line of code.
  • Download and display OpenStreetMap data with a single line of code.

Demo

YouTube Channel

I have created a YouTube Channel for sharing geospatial tutorials. You can subscribe to my channel for regular updates. If there is any specific tutorial you would like to see, please submit a feature request here.

Earth Engine Tutorials on YouTube

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leafmap-0.3.0.tar.gz (66.4 kB view details)

Uploaded Source

Built Distribution

leafmap-0.3.0-py2.py3-none-any.whl (68.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file leafmap-0.3.0.tar.gz.

File metadata

  • Download URL: leafmap-0.3.0.tar.gz
  • Upload date:
  • Size: 66.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for leafmap-0.3.0.tar.gz
Algorithm Hash digest
SHA256 eca7fba6ca12d7c1dd701afff40aa3e87084377ab11b963d0253db3cd53c85f6
MD5 52590d788a7610c0c8f77d0f454644fd
BLAKE2b-256 a5b81fb8c411205520a55fd679299d2e156489d362368c5f3dab5130344e5741

See more details on using hashes here.

File details

Details for the file leafmap-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: leafmap-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 68.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for leafmap-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2a4034558cd9eef7bb34b49b45d11b18b2ff44e7ff36ddc82ec6e445a96523e4
MD5 07f073f6adaf1cb6095c86c0569a55ee
BLAKE2b-256 099d3b04c20e63f90c1d3f9320749417e953de9cfac22bd353c88e6261bab6a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page