Skip to content
New issue

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

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

Already on GitHub? # to your account

Release 0.10.0: migration to rio-tiler #183

Merged
merged 38 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cb342dc
[wip] start refactoring to rio-tiler
banesullivan Oct 14, 2023
ae49355
Trim whitespace assets
banesullivan Jan 21, 2024
c41ee4f
Bump license year
banesullivan Jan 21, 2024
e48fca5
Run black
banesullivan Jan 21, 2024
c339d12
Fix GitHub Action syntax
banesullivan Jan 21, 2024
e718dd0
Use pre-commit
banesullivan Jan 21, 2024
a829487
fix flake8
banesullivan Jan 21, 2024
30183b8
Update requirements
banesullivan Jan 21, 2024
65f5559
deps
banesullivan Jan 21, 2024
3554397
comments
banesullivan Jan 21, 2024
60dc1f7
Update dependencies
banesullivan Jan 21, 2024
d3c3ffa
Fix bounds
banesullivan Jan 21, 2024
a0532c5
[wip] Generally working
banesullivan Jan 21, 2024
80de23f
Cleanup classes and remove remote stuff
banesullivan Jan 21, 2024
37aa391
[wip] nearly working
banesullivan Jan 21, 2024
78692f5
Fix Cesium basemap sources
banesullivan Jan 21, 2024
5577e06
[wip] seemingly fully working
banesullivan Jan 21, 2024
efceb1c
Fix vmin/vmax
banesullivan Jan 21, 2024
a80ae4d
[wip] more implementation
banesullivan Jan 21, 2024
7f209e7
[wip] Cleanup tiler
banesullivan Jan 21, 2024
e4b40e6
Improve deps
banesullivan Jan 21, 2024
cc792ea
Tersts are passing
banesullivan Jan 21, 2024
cec3003
Cover bahamas to COG
banesullivan Jan 21, 2024
15f208d
Support multiple band indexes
banesullivan Jan 21, 2024
c05c3b6
Update example
banesullivan Jan 21, 2024
223c8b2
Cleanup docs
banesullivan Jan 21, 2024
854e3b4
Strip out geojs
banesullivan Jan 21, 2024
37766d1
Use leaflets new add method
banesullivan Jan 21, 2024
be9adb0
Cleanup
banesullivan Jan 21, 2024
3921ec9
Merge branch 'main' into refactor/rio-tiler
banesullivan Jan 21, 2024
d4a33c7
Fix multiband test
banesullivan Jan 21, 2024
ad52dc6
Better metadata
banesullivan Jan 21, 2024
99dee38
Improve tests
banesullivan Jan 21, 2024
9e95792
Linting
banesullivan Jan 21, 2024
b1c1b4f
remove codespell check
banesullivan Jan 21, 2024
aaa85f5
Fix typing
banesullivan Jan 21, 2024
573c1e8
Type annotations
banesullivan Jan 21, 2024
1b56028
Erg, when does 3.8 EoL?
banesullivan Jan 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[flake8]
exclude = .git,__pycache__,build,dist,doc/build
ignore =
# whitespace before ':'
E203,
# line break before binary operator
W503,
# line length too long
E501,
# do not assign a lambda expression, use a def
E731,
# too many leading '#' for block comment
E266,
# ambiguous variable name
E741,
# module level import not at top of file
E402,
# Quotes (temporary)
Q0,
# bare excepts (temporary)
B001, E722
# we already check black
BLK100
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
- name: Install Style dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_style.txt
pip install pre-commit
- name: Run linting
run: make lint
- name: Run codespell
run: make codespell
3 changes: 2 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Docker Package
on:
workflow_dispatch:
push:
tags: "*"
tags:
- "*"
branches:
- main
pull_request:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Package Release
on:
push:
tags: "*"
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
50 changes: 50 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: requirements-txt-fixer
- id: trailing-whitespace
- id: check-docstring-first
- id: end-of-file-fixer
- id: mixed-line-ending

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-workflows


- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [
"flake8-black==0.3.6",
"flake8-isort==6.0.0",
"flake8-quotes==3.3.2",
]


# - repo: https://github.com/codespell-project/codespell
# rev: v2.2.6
# hooks:
# - id: codespell
# args: [
# "doc examples examples_trame pyvista tests",
# "*.py *.rst *.md",
# ]
# additional_dependencies: [
# "tomli"
# ]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-2022 Bane Sullivan
Copyright (c) 2021-2024 Bane Sullivan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ doctest:

lint:
@echo "Linting with flake8"
flake8 --ignore=E501 localtileserver tests
pre-commit run --all-files

format:
@echo "Formatting"
black .
isort .
pre-commit run --all-files
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ standalone web app or in your own web deployments needing dynamic tile serving.

- 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
- View rasters with CesiumJS with the built-in web application

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

Expand All @@ -48,7 +46,7 @@ client = TileClient('path/to/geo.tif')
t = get_leaflet_tile_layer(client)

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

Expand All @@ -62,13 +60,10 @@ thread which will serve raster imagery to a viewer (usually `ipyleaflet` or

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)](https://www.cogeo.org/), but no wories if
not as the backing library, [`large_image`](https://github.com/girder/large_image),
will tile and cache for you when opening the raster.
[Cloud Optimized GeoTIFFs (COGs)](https://www.cogeo.org/).

There is an included, standalone web viewer leveraging
[CesiumJS](https://cesium.com/platform/cesiumjs/) and [GeoJS](https://opengeoscience.github.io/geojs/).
You can use the web viewer to select and extract regions of interest from rasters.
[CesiumJS](https://cesium.com/platform/cesiumjs/).


## ⬇️ Installation
Expand Down
Loading