TiTiler Image.
Source Code: https://github.com/developmentseed/titiler-image
TiTiler.image is a titiler extension to work with non-geo images.
Installation
To install from PyPI and run:
# Make sure to have pip up to date
python -m pip install -U pip
python -m pip install titiler.image
To install from sources and run for development:
python -m pip install -e .
Launch
python -m pip install uvicorn
python -m uvicorn titiler.image.main:app --reload
Using Docker
git clone https://github.com/developmentseed/titiler-image.git
cd titiler-pgstac
docker-compose up --build tiler
It runs titiler.image using Gunicorn web server. To run Uvicorn based version:
docker-compose up --build tiler-uvicorn
Factories
titiler-image provide multiple endpoint Factories (see https://developmentseed.org/titiler/advanced/tiler_factories/)
MetadataFactory
Endpoints
-
/info?url={...} -
/metadata?url={...}
from fastapi import FastAPI
from titiler.image.factory import MetadataFactory
app = FastAPI()
meta = MetadataFactory()
app.include_router(meta.router)
IIIFFactory
Specification: https://iiif.io/api/image/3.0/
Endpoints
-
/{identifier}/info.json: IIIF Image Information Request -
/{identifier}/{region}/{size}/{rotation}/{quality}.{format}: IIIF Image Request -
/{identifier}: Redirect do the Image Information Request endpoint or return a simple IIIF viewer (based on headersAcceptvalue)
from fastapi import FastAPI
from titiler.image.factory import IIIFFactory
app = FastAPI()
iiif = IIIFFactory()
app.include_router(iiif.router)
LocalTilerFactory
Endpoints
-
/tilejson.json?url={...}: TileJSON document -
/tiles/{z}/{x}/{y}[@{scale}x.{format}]?url={...}: Tiles endpoint -
/viewer?url={...}: Simple local tiles viewer
from fastapi import FastAPI
from titiler.image.factory import LocalTilerFactory
app = FastAPI()
local_tiles = LocalTilerFactory()
app.include_router(local_tiles.router)
GeoTilerFactory
This is a lightweight version of titiler.core.factory.TilerFactory.
Endpoints
-
[/TileMatrixSetId]/tilejson.json?url={...}: TileJSON document -
/tiles[/TileMatrixSetId]/{z}/{x}/{y}[@{scale}x.{format}]?url={...}: Tiles endpoint -
[/{TileMatrixSetId}]/map?url={...}: Simple dataset viewer
from fastapi import FastAPI
from titiler.image.factory import GeoTilerFactory
app = FastAPI()
geo = GeoTilerFactory()
app.include_router(geo.router)
All together
app = FastAPI()
meta = MetadataFactory()
app.include_router(meta.router, tags=["Metadata"])
iiif = IIIFFactory(router_prefix="/iiif")
app.include_router(iiif.router, tags=["IIIF"], prefix="/iiif")
image_tiles = LocalTilerFactory(router_prefix="/image")
app.include_router(image_tiles.router, tags=["Local Tiles"], prefix="/image")
geo_tiles = GeoTilerFactory(
reader=GCPSReader, reader_dependency=GCPSParams, router_prefix="/geo"
)
app.include_router(geo_tiles.router, tags=["Geo Tiles"], prefix="/geo")
Contribution & Development
See CONTRIBUTING.md
License
See LICENSE
Authors
See contributors for a listing of individual contributors.
Changes
See CHANGES.md.
Metadata
Release files for titiler.image 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| titiler.image-0.1.0.tar.gz | 21.5 kB | Without provenance | Details for titiler.image-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| titiler.image-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for titiler.image-0.1.0-py3-none-any.whl |
Total release size: 45.1 kB
Release files / titiler.image-0.1.0.tar.gz
| Download URL | titiler.image-0.1.0.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fce74775e92a458c78945343439d300fdbba978ce7daff1f9b12c2cc953c1f2
|
|
BLAKE2b-256 checksum How to use checksums |
a64d4ed6f875ebee43cdb72f5342570a35f172e4042c3f6405aaf275831ae62e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / titiler.image-0.1.0-py3-none-any.whl
| Download URL | titiler.image-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c4eb41ba92e6f358a53a65d4af31e321b6b4c886f16ac25e95fc33ef635b171
|
|
BLAKE2b-256 checksum How to use checksums |
cc3519944a376f9d8f7830d36e0b271bff28c0ac54c8747fadd6c05c2f69fefd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for titiler.image 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.