All Projects â†’ banesullivan â†’ localtileserver

banesullivan / localtileserver

Licence: MIT license
🌐 dynamic tile server for visualizing rasters in Jupyter with ipyleaflet or folium

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Jupyter Notebook
11667 projects
CSS
56736 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to localtileserver

georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (-11.58%)
Mutual labels:  geospatial, gis, raster, satellite-imagery
leafmap
A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment
Stars: ✭ 1,299 (+583.68%)
Mutual labels:  geospatial, gis, folium, ipyleaflet
Geotiff.io
Static website for viewing and analyzing GeoTIFF's in the browser
Stars: ✭ 53 (-72.11%)
Mutual labels:  geospatial, gis, raster, satellite-imagery
earthengine-apps
A collection of Earth Engine Apps created using geemap, voila, and heroku
Stars: ✭ 20 (-89.47%)
Mutual labels:  geospatial, gis, ipyleaflet
google-maps-at-88-mph
Google Maps keeps old satellite imagery around for a while – this tool collects what's available for a user-specified region in the form of a GIF.
Stars: ✭ 93 (-51.05%)
Mutual labels:  gis, satellite-imagery, map-tiles
geoblaze
Blazing Fast JavaScript Raster Processing Engine
Stars: ✭ 80 (-57.89%)
Mutual labels:  gis, raster, satellite-imagery
Julia Geospatial
Examples for a blog series on Geospatial Julia using ArchGDAL
Stars: ✭ 58 (-69.47%)
Mutual labels:  geospatial, raster, satellite-imagery
Grass
GRASS GIS - free and open source Geographic Information System (GIS)
Stars: ✭ 281 (+47.89%)
Mutual labels:  geospatial, gis, raster
Geocube
Tool to convert geopandas vector data into rasterized xarray data.
Stars: ✭ 87 (-54.21%)
Mutual labels:  geospatial, gis, raster
Blendergis
Blender addons to make the bridge between Blender and geographic data
Stars: ✭ 4,642 (+2343.16%)
Mutual labels:  geospatial, gis, raster
awesome-spectral-indices
A ready-to-use curated list of Spectral Indices for Remote Sensing applications.
Stars: ✭ 357 (+87.89%)
Mutual labels:  gis, raster, satellite-imagery
Rioxarray
geospatial xarray extension powered by rasterio
Stars: ✭ 148 (-22.11%)
Mutual labels:  geospatial, gis, raster
eemont
A python package that extends Google Earth Engine.
Stars: ✭ 290 (+52.63%)
Mutual labels:  gis, raster, satellite-imagery
eodag
Earth Observation Data Access Gateway
Stars: ✭ 183 (-3.68%)
Mutual labels:  geospatial, gis, satellite-imagery
Geospatial Machine Learning
A curated list of resources focused on Machine Learning in Geospatial Data Science.
Stars: ✭ 289 (+52.11%)
Mutual labels:  geospatial, gis, satellite-imagery
Felicette
Satellite imagery for dummies.
Stars: ✭ 1,710 (+800%)
Mutual labels:  geospatial, gis, satellite-imagery
Python Geospatial
A collection of Python packages for geospatial analysis with binder-ready notebook examples
Stars: ✭ 187 (-1.58%)
Mutual labels:  geospatial, gis, raster
GDAL.jl
Thin Julia wrapper for GDAL - Geospatial Data Abstraction Library
Stars: ✭ 78 (-58.95%)
Mutual labels:  geospatial, raster
olturf
A Turf toolbar for OpenLayers.
Stars: ✭ 30 (-84.21%)
Mutual labels:  geospatial, gis
deegree3
Official deegree repository providing geospatial core libraries, data access and advanced OGC web service implementations
Stars: ✭ 118 (-37.89%)
Mutual labels:  geospatial, gis

tile-diagram

🌐 Local Tile Server for Geospatial Rasters

codecov PyPI conda

Need to visualize a rather large (gigabytes+) raster? This is for you.

A Python package for serving tiles from large raster files in the Slippy Maps standard (i.e., /zoom/x/y.png) for visualization in Jupyter with ipyleaflet or folium.

Launch a demo on MyBinder MyBinder

Documentation: https://localtileserver.banesullivan.com/

Under the hood, this is also a Flask blueprint/application for use as a standalone web app or in your own web deployments needing dynamic tile serving.

🌟 Highlights

  • Launch a tile server for large geospatial images
  • View local or remote* raster files with ipyleaflet or folium in Jupyter
  • View rasters with CesiumJS with the built-in Flask web application
  • Extract regions of interest (ROIs) interactively
  • Use the example datasets to generate Digital Elevation Models

*remote raster files should be pre-tiled Cloud Optimized GeoTiffs

🚀 Usage

Usage details and examples can be found in the documentation: https://localtileserver.banesullivan.com/

The following is a minimal example to visualize a local raster file with ipyleaflet:

from localtileserver import get_leaflet_tile_layer, TileClient
from ipyleaflet import Map

# First, create a tile server from local raster file
client = TileClient('path/to/geo.tif')

# Create ipyleaflet tile layer from that server
t = get_leaflet_tile_layer(client)

m = Map(center=client.center(), zoom=client.default_zoom)
m.add_layer(t)
m

ipyleaflet

ℹī¸ Overview

The TileClient class can be used to to launch a tile server in a background thread which will serve raster imagery to a viewer (usually ipyleaflet or folium in Jupyter notebooks).

This tile server can efficiently deliver varying resolutions of your raster imagery to your viewer; it helps to have pre-tiled, Cloud Optimized GeoTIFFs (COGs), but no wories if not as the backing library, large_image, will tile and cache for you when opening the raster.

There is an included, standalone web viewer leveraging CesiumJS and GeoJS. You can use the web viewer to select and extract regions of interest from rasters.

âŦ‡ī¸ Installation

Get started with localtileserver to view rasters in Jupyter or deploy as your own Flask application.

🐍 Installing with conda

Conda makes managing localtileserver's dependencies across platforms quite easy and this is the recommended method to install:

conda install -c conda-forge localtileserver

🎡 Installing with pip

If you prefer pip, and know how to install GDAL on your system, then you can install from PyPI: https://pypi.org/project/localtileserver/

pip install localtileserver

📝 A Brief Note on Installing GDAL

GDAL can be a pain in the 🍑 to install, so you may want to handle GDAL before installing localtileserver when using pip.

If on linux, I highly recommend using the large_image_wheels from Kitware.

pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL

💭 Feedback

Please share your thoughts and questions on the Discussions board. If you would like to report any bugs or make feature requests, please open an issue.

If filing a bug report, please share a scooby Report:

import localtileserver
print(localtileserver.Report())
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].