Skip to content
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
fc939e7
feat: Generic TileMatrixSet support in tileset
kylebarron Jan 28, 2026
3ef9940
add to package.json
kylebarron Feb 5, 2026
b3dd27f
update types to use new morecantile imports
kylebarron Feb 5, 2026
7547caf
Rename RasterTileset2D to TMSTileset2D
kylebarron Feb 11, 2026
f294a9a
Merge branch 'main' into kyle/generic-tms
kylebarron Feb 16, 2026
ef47f06
update lockfile
kylebarron Feb 16, 2026
35167e5
diff
kylebarron Feb 16, 2026
fe41889
pin morecantile workspace
kylebarron Feb 17, 2026
ab1983a
bump cog-layer to use our geotiff
kylebarron Feb 17, 2026
9dcaffb
update projection code
kylebarron Feb 17, 2026
83260ee
update geotiff layer
kylebarron Feb 17, 2026
15ceccc
standardize on a single affine implementation
kylebarron Feb 17, 2026
f1d6503
cleanup
kylebarron Feb 17, 2026
79727cc
remove second copy of generating tms
kylebarron Feb 17, 2026
1e87124
update raster tile traversal
kylebarron Feb 17, 2026
97e0b46
Add xy_bounds to morecantile
kylebarron Feb 17, 2026
ac73a20
Use morecantile xy_bounds for raster tile traversal bounds
kylebarron Feb 17, 2026
04b9374
fix passing in x and y
kylebarron Feb 17, 2026
124e4fb
start updating render pipeline
kylebarron Feb 17, 2026
69e019c
Cleanup with cached tags defined in geotiff
kylebarron Feb 17, 2026
0caee67
prefetch useful geotiff tags for visualization
kylebarron Feb 17, 2026
8e21700
fix addAlphaChanneel
kylebarron Feb 17, 2026
37ebd52
default handlers for url GeoTIFF input
kylebarron Feb 17, 2026
133657f
working example (if slow)
kylebarron Feb 17, 2026
b5c9c0a
add reference to tsconfig
kylebarron Feb 17, 2026
b512ea2
fix test
kylebarron Feb 17, 2026
f53b875
update render pipeline tests & remove mocked tests
kylebarron Feb 17, 2026
248f1f9
Move geotiff creation utilities into geotiff package
kylebarron Feb 17, 2026
0fa4f66
fix tests
kylebarron Feb 17, 2026
80879c4
fix bundle
kylebarron Feb 17, 2026
2936a00
small nits
kylebarron Feb 17, 2026
4ae8589
Rename TMSTileset to TileMatrixSetTileset
kylebarron Feb 17, 2026
7f1ebb1
Apply suggestion from @kylebarron
kylebarron Feb 17, 2026
9d15778
conciseness
kylebarron Feb 17, 2026
54402b2
Merge branch 'kyle/generic-tms' of github.com:developmentseed/deck.gl…
kylebarron Feb 17, 2026
17c5e60
remove commented tms types
kylebarron Feb 18, 2026
2f5062c
nits
kylebarron Feb 18, 2026
3a90fe7
add morecantile to references
kylebarron Feb 18, 2026
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
3 changes: 1 addition & 2 deletions examples/cog-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
"@deck.gl/layers": "^9.2.7",
"@deck.gl/mapbox": "^9.2.7",
"@deck.gl/mesh-layers": "^9.2.7",
"@developmentseed/geotiff": "workspace:^",
"@developmentseed/deck.gl-geotiff": "workspace:^",
"@developmentseed/deck.gl-raster": "workspace:^",
"@luma.gl/core": "9.2.6",
"@luma.gl/shadertools": "9.2.6",
"geotiff": "^2.1.3",
"geotiff-geokeys-to-proj4": "^2024.4.13",
"maplibre-gl": "^5.17.0",
"proj4": "^2.20.2",
"react": "^19.2.4",
Expand Down
24 changes: 5 additions & 19 deletions examples/cog-basic/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { DeckProps } from "@deck.gl/core";
import { MapboxOverlay } from "@deck.gl/mapbox";
import { COGLayer, proj } from "@developmentseed/deck.gl-geotiff";
import { toProj4 } from "geotiff-geokeys-to-proj4";
import { COGLayer } from "@developmentseed/deck.gl-geotiff";
import "maplibre-gl/dist/maplibre-gl.css";
import { useRef, useState } from "react";
import type { MapRef } from "react-map-gl/maplibre";
Expand All @@ -13,26 +12,14 @@ function DeckGLOverlay(props: DeckProps) {
return null;
}

async function geoKeysParser(
geoKeys: Record<string, any>,
): Promise<proj.ProjectionInfo> {
const projDefinition = toProj4(geoKeys as any);

return {
def: projDefinition.proj4,
parsed: proj.parseCrs(projDefinition.proj4),
coordinatesUnits: projDefinition.coordinatesUnits as proj.SupportedCrsUnit,
};
}

// const COG_URL =
// "https://nz-imagery.s3-ap-southeast-2.amazonaws.com/new-zealand/new-zealand_2024-2025_10m/rgb/2193/CC11.tiff";
const COG_URL =
"https://nz-imagery.s3-ap-southeast-2.amazonaws.com/new-zealand/new-zealand_2024-2025_10m/rgb/2193/CC11.tiff";

// const COG_URL =
// "https://ds-wheels.s3.us-east-1.amazonaws.com/m_4007307_sw_18_060_20220803.tif";

const COG_URL =
"https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/18/T/WL/2026/1/S2B_18TWL_20260101_0_L2A/TCI.tif";
// const COG_URL =
// "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/18/T/WL/2026/1/S2B_18TWL_20260101_0_L2A/TCI.tif";
// const COG_URL =
// "https://ds-wheels.s3.us-east-1.amazonaws.com/Annual_NLCD_LndCov_2023_CU_C1V0.tif";

Expand Down Expand Up @@ -62,7 +49,6 @@ export default function App() {
geotiff: COG_URL,
debug,
debugOpacity,
geoKeysParser,
onGeoTIFFLoad: (tiff, options) => {
(window as any).tiff = tiff;
const { west, south, east, north } = options.geographicBounds;
Expand Down
6 changes: 5 additions & 1 deletion packages/affine/src/affine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ export function invert([sa, sb, sc, sd, se, sf]: Affine): Affine {
const rd = -sd * idet;
const re = sa * idet;

return [ra, rb, -sc * ra - sf * rb, rd, re, -sc * rd - sf * re];
// biome-ignore format: array
return [
ra, rb, -sc * ra - sf * rb,
rd, re, -sc * rd - sf * re
];
}

/** Get the 'a' component of an Affine transform. */
Expand Down
8 changes: 6 additions & 2 deletions packages/deck.gl-geotiff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@
"vitest": "^4.0.18"
},
"dependencies": {
"@cogeotiff/core": "^9.1.2",
"@developmentseed/affine": "workspace:^",
"@developmentseed/deck.gl-raster": "workspace:^",
"@developmentseed/geotiff": "workspace:^",
"@developmentseed/morecantile": "workspace:^",
"@developmentseed/raster-reproject": "workspace:^",
"flatbush": "^4.5.0",
"geotiff": "2.1.3",
"proj4": "^2.20.2"
"proj4": "^2.20.2",
"wkt-parser": "^1.5.2"
},
"peerDependencies": {
"@deck.gl/core": "^9.2.7",
Expand Down
Loading