Skip to main content

A rio-tiler plugin to create tile for arbitraty grid

Project description

rio-tiler-crs

A rio-tiler plugin to create tiles in different projection

Packaging status CircleCI codecov

Install

$ pip install pip -U
$ pip install rio-tiler-crs

# Or using source

$ pip install git+http://github.com/cogeotiff/rio-tiler-crs

How To

rio-tiler-crs uses morecantile to define the custom tiling grid schema.

  1. Define grid system
import morecantile
from rasterio.crs import CRS

epsg = 3031
extent = [-948.75, -543592.47, 5817.41, -3333128.95]  # From https:///epsg.io/3031
ts = morecantile.TileSchema(CRS.from_epsg(epsg), extent)
  1. read tile
from rio_tiler_crs import tiler

# Read tile x=10, y=10, z=4
tile, mask = tiler.tile("myfile.tif", 10, 10, 4, tilesize=256, tileSchema=ts)

Example

See /demo

Contribution & Development

Issues and pull requests are more than welcome.

dev install

$ git clone https://github.com/cogeotiff/rio-tiler-crs.git
$ cd rio-tiler-crs
$ pip install -e .[dev]

Python3.7 only

This repo is set to use pre-commit to run flake8, pydocstring and black ("uncompromising Python code formatter") when commiting new code.

$ pre-commit install

Project details


Download files

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

Source Distribution

rio-tiler-crs-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file rio-tiler-crs-0.0.1.tar.gz.

File metadata

  • Download URL: rio-tiler-crs-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for rio-tiler-crs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c2c8013d35dc78fdf73d8b63ad0cf6844ab03d1ea4cb3695a01823a12425d123
MD5 19df5cc892bd572b3a0b533b49b90ad3
BLAKE2b-256 341199a943ef8c71bbe074445a46245a4e97e74f409bdde570b9f446fc4ba42d

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