@developmentseed/deck.gl-raster 0.1.0-beta.5 → 0.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/dist/index.cjs +0 -4
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -2
- package/dist/layer.d.ts +0 -72
- package/dist/layer.d.ts.map +0 -1
- package/dist/layer.js +0 -88
- package/dist/layer.js.map +0 -1
- package/dist/mesh.d.ts +0 -1
- package/dist/mesh.d.ts.map +0 -1
- package/dist/mesh.js +0 -2
- package/dist/mesh.js.map +0 -1
- package/dist/raster-debug-layer.d.ts +0 -51
- package/dist/raster-debug-layer.d.ts.map +0 -1
- package/dist/raster-debug-layer.js +0 -102
- package/dist/raster-debug-layer.js.map +0 -1
- package/dist/raster-tileset-bak/index.d.ts +0 -1
- package/dist/raster-tileset-bak/index.d.ts.map +0 -1
- package/dist/raster-tileset-bak/index.js +0 -2
- package/dist/raster-tileset-bak/index.js.map +0 -1
- package/dist/raster-tileset-bak/raster-tile-traversal.d.ts +0 -104
- package/dist/raster-tileset-bak/raster-tile-traversal.d.ts.map +0 -1
- package/dist/raster-tileset-bak/raster-tile-traversal.js +0 -390
- package/dist/raster-tileset-bak/raster-tile-traversal.js.map +0 -1
- package/dist/raster-tileset-bak/raster-tileset-2d.d.ts +0 -43
- package/dist/raster-tileset-bak/raster-tileset-2d.d.ts.map +0 -1
- package/dist/raster-tileset-bak/raster-tileset-2d.js +0 -288
- package/dist/raster-tileset-bak/raster-tileset-2d.js.map +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +0 -1
- package/dist/src/layer.d.ts +0 -1
- package/dist/src/layer.d.ts.map +0 -1
- package/dist/src/layer.js +0 -3
- package/dist/src/layer.js.map +0 -1
- package/dist/src/mesh.d.ts +0 -1
- package/dist/src/mesh.d.ts.map +0 -1
- package/dist/src/mesh.js +0 -2
- package/dist/src/mesh.js.map +0 -1
- package/dist/tests/placeholder.test.d.ts +0 -2
- package/dist/tests/placeholder.test.d.ts.map +0 -1
- package/dist/tests/placeholder.test.js +0 -7
- package/dist/tests/placeholder.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* COGTileset2D - Improved Implementation with Frustum Culling
|
|
3
|
-
*
|
|
4
|
-
* This version properly implements frustum culling and bounding volume calculations
|
|
5
|
-
* following the pattern from deck.gl's OSM tile indexing.
|
|
6
|
-
*/
|
|
7
|
-
import { WebMercatorViewport } from "@deck.gl/core";
|
|
8
|
-
import { _Tileset2D as Tileset2D } from "@deck.gl/geo-layers";
|
|
9
|
-
import proj4 from "proj4";
|
|
10
|
-
import { getTileIndices } from "./raster-tile-traversal";
|
|
11
|
-
const OGC_84 = {
|
|
12
|
-
$schema: "https://proj.org/schemas/v0.7/projjson.schema.json",
|
|
13
|
-
type: "GeographicCRS",
|
|
14
|
-
name: "WGS 84 (CRS84)",
|
|
15
|
-
datum_ensemble: {
|
|
16
|
-
name: "World Geodetic System 1984 ensemble",
|
|
17
|
-
members: [
|
|
18
|
-
{
|
|
19
|
-
name: "World Geodetic System 1984 (Transit)",
|
|
20
|
-
id: { authority: "EPSG", code: 1166 },
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: "World Geodetic System 1984 (G730)",
|
|
24
|
-
id: { authority: "EPSG", code: 1152 },
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: "World Geodetic System 1984 (G873)",
|
|
28
|
-
id: { authority: "EPSG", code: 1153 },
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "World Geodetic System 1984 (G1150)",
|
|
32
|
-
id: { authority: "EPSG", code: 1154 },
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "World Geodetic System 1984 (G1674)",
|
|
36
|
-
id: { authority: "EPSG", code: 1155 },
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "World Geodetic System 1984 (G1762)",
|
|
40
|
-
id: { authority: "EPSG", code: 1156 },
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "World Geodetic System 1984 (G2139)",
|
|
44
|
-
id: { authority: "EPSG", code: 1309 },
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
ellipsoid: {
|
|
48
|
-
name: "WGS 84",
|
|
49
|
-
semi_major_axis: 6378137,
|
|
50
|
-
inverse_flattening: 298.257223563,
|
|
51
|
-
},
|
|
52
|
-
accuracy: "2.0",
|
|
53
|
-
id: { authority: "EPSG", code: 6326 },
|
|
54
|
-
},
|
|
55
|
-
coordinate_system: {
|
|
56
|
-
subtype: "ellipsoidal",
|
|
57
|
-
axis: [
|
|
58
|
-
{
|
|
59
|
-
name: "Geodetic longitude",
|
|
60
|
-
abbreviation: "Lon",
|
|
61
|
-
direction: "east",
|
|
62
|
-
unit: "degree",
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: "Geodetic latitude",
|
|
66
|
-
abbreviation: "Lat",
|
|
67
|
-
direction: "north",
|
|
68
|
-
unit: "degree",
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
scope: "Not known.",
|
|
73
|
-
area: "World.",
|
|
74
|
-
bbox: {
|
|
75
|
-
south_latitude: -90,
|
|
76
|
-
west_longitude: -180,
|
|
77
|
-
north_latitude: 90,
|
|
78
|
-
east_longitude: 180,
|
|
79
|
-
},
|
|
80
|
-
id: { authority: "OGC", code: "CRS84" },
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Extract COG metadata
|
|
84
|
-
*/
|
|
85
|
-
export async function extractCOGMetadata(tiff) {
|
|
86
|
-
const image = await tiff.getImage();
|
|
87
|
-
const width = image.getWidth();
|
|
88
|
-
const height = image.getHeight();
|
|
89
|
-
const tileWidth = image.getTileWidth();
|
|
90
|
-
const tileHeight = image.getTileHeight();
|
|
91
|
-
const tilesX = Math.ceil(width / tileWidth);
|
|
92
|
-
const tilesY = Math.ceil(height / tileHeight);
|
|
93
|
-
const bbox = image.getBoundingBox();
|
|
94
|
-
const geoKeys = image.getGeoKeys();
|
|
95
|
-
const projectionCode = geoKeys.ProjectedCSTypeGeoKey || geoKeys.GeographicTypeGeoKey || null;
|
|
96
|
-
const projection = projectionCode ? `EPSG:${projectionCode}` : null;
|
|
97
|
-
// Extract geotransform from full-resolution image
|
|
98
|
-
// Only the top-level IFD has geo keys, so we'll derive overviews from this
|
|
99
|
-
const baseGeotransform = extractGeotransform(image);
|
|
100
|
-
// Overviews **in COG order**, from finest to coarsest (we'll reverse the
|
|
101
|
-
// array later)
|
|
102
|
-
const overviews = [];
|
|
103
|
-
const imageCount = await tiff.getImageCount();
|
|
104
|
-
// Full resolution image (GeoTIFF index 0)
|
|
105
|
-
overviews.push({
|
|
106
|
-
geoTiffIndex: 0,
|
|
107
|
-
width,
|
|
108
|
-
height,
|
|
109
|
-
tilesX,
|
|
110
|
-
tilesY,
|
|
111
|
-
scaleFactor: 1,
|
|
112
|
-
geotransform: baseGeotransform,
|
|
113
|
-
// TODO: combine these two properties into one
|
|
114
|
-
level: imageCount - 1, // Coarsest level number
|
|
115
|
-
z: imageCount - 1,
|
|
116
|
-
});
|
|
117
|
-
for (let i = 1; i < imageCount; i++) {
|
|
118
|
-
const overview = await tiff.getImage(i);
|
|
119
|
-
const overviewWidth = overview.getWidth();
|
|
120
|
-
const overviewHeight = overview.getHeight();
|
|
121
|
-
const overviewTileWidth = overview.getTileWidth();
|
|
122
|
-
const overviewTileHeight = overview.getTileHeight();
|
|
123
|
-
const scaleFactor = Math.round(width / overviewWidth);
|
|
124
|
-
// Derive geotransform for this overview by scaling pixel size
|
|
125
|
-
// [a, b, c, d, e, f] where a and e are pixel dimensions
|
|
126
|
-
const overviewGeotransform = [
|
|
127
|
-
baseGeotransform[0] * scaleFactor, // a: scaled pixel width
|
|
128
|
-
baseGeotransform[1] * scaleFactor, // b: scaled row rotation
|
|
129
|
-
baseGeotransform[2], // c: same x origin
|
|
130
|
-
baseGeotransform[3] * scaleFactor, // d: scaled column rotation
|
|
131
|
-
baseGeotransform[4] * scaleFactor, // e: scaled pixel height (typically negative)
|
|
132
|
-
baseGeotransform[5], // f: same y origin
|
|
133
|
-
];
|
|
134
|
-
overviews.push({
|
|
135
|
-
geoTiffIndex: i,
|
|
136
|
-
width: overviewWidth,
|
|
137
|
-
height: overviewHeight,
|
|
138
|
-
tilesX: Math.ceil(overviewWidth / overviewTileWidth),
|
|
139
|
-
tilesY: Math.ceil(overviewHeight / overviewTileHeight),
|
|
140
|
-
scaleFactor,
|
|
141
|
-
geotransform: overviewGeotransform,
|
|
142
|
-
// TODO: combine these two properties into one
|
|
143
|
-
level: imageCount - 1 - i,
|
|
144
|
-
z: imageCount - 1 - i,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
// Reverse to TileMatrixSet order: coarsest (0) → finest (n)
|
|
148
|
-
overviews.reverse();
|
|
149
|
-
const sourceProjection = await getProjjson(projectionCode);
|
|
150
|
-
const projectToWgs84 = proj4(sourceProjection, OGC_84);
|
|
151
|
-
const projectTo3857 = proj4(sourceProjection, "EPSG:3857");
|
|
152
|
-
return {
|
|
153
|
-
width,
|
|
154
|
-
height,
|
|
155
|
-
tileWidth,
|
|
156
|
-
tileHeight,
|
|
157
|
-
tilesX,
|
|
158
|
-
tilesY,
|
|
159
|
-
bbox: [bbox[0], bbox[1], bbox[2], bbox[3]],
|
|
160
|
-
projection,
|
|
161
|
-
projectToWgs84,
|
|
162
|
-
projectTo3857,
|
|
163
|
-
overviews,
|
|
164
|
-
image: tiff,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
async function getProjjson(projectionCode) {
|
|
168
|
-
const url = `https://epsg.io/${projectionCode}.json`;
|
|
169
|
-
const response = await fetch(url);
|
|
170
|
-
if (!response.ok) {
|
|
171
|
-
throw new Error(`Failed to fetch projection data from ${url}`);
|
|
172
|
-
}
|
|
173
|
-
const data = await response.json();
|
|
174
|
-
return data;
|
|
175
|
-
}
|
|
176
|
-
const viewport = new WebMercatorViewport({
|
|
177
|
-
height: 500,
|
|
178
|
-
width: 845,
|
|
179
|
-
latitude: 40.88775942857086,
|
|
180
|
-
longitude: -73.20197979318772,
|
|
181
|
-
zoom: 11.294596276534985,
|
|
182
|
-
});
|
|
183
|
-
/**
|
|
184
|
-
* COGTileset2D with proper frustum culling
|
|
185
|
-
*/
|
|
186
|
-
export class COGTileset2D extends Tileset2D {
|
|
187
|
-
cogMetadata;
|
|
188
|
-
constructor(cogMetadata, opts) {
|
|
189
|
-
super(opts);
|
|
190
|
-
this.cogMetadata = cogMetadata;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Get tile indices visible in viewport
|
|
194
|
-
* Uses frustum culling similar to OSM implementation
|
|
195
|
-
*
|
|
196
|
-
* Overviews follow TileMatrixSet ordering: index 0 = coarsest, higher = finer
|
|
197
|
-
*/
|
|
198
|
-
getTileIndices(opts) {
|
|
199
|
-
console.log("Called getTileIndices", opts);
|
|
200
|
-
const tileIndices = getTileIndices(this.cogMetadata, opts);
|
|
201
|
-
console.log("Visible tile indices:", tileIndices);
|
|
202
|
-
// return [
|
|
203
|
-
// { x: 0, y: 0, z: 0 },
|
|
204
|
-
// { x: 0, y: 0, z: 1 },
|
|
205
|
-
// { x: 1, y: 1, z: 2 },
|
|
206
|
-
// { x: 1, y: 2, z: 3 },
|
|
207
|
-
// { x: 2, y: 1, z: 3 },
|
|
208
|
-
// { x: 2, y: 2, z: 3 },
|
|
209
|
-
// { x: 3, y: 1, z: 3 },
|
|
210
|
-
// ]; // Temporary override for testing
|
|
211
|
-
return tileIndices;
|
|
212
|
-
}
|
|
213
|
-
getTileId(index) {
|
|
214
|
-
return `${index.x}-${index.y}-${index.z}`;
|
|
215
|
-
}
|
|
216
|
-
getParentIndex(index) {
|
|
217
|
-
if (index.z === 0) {
|
|
218
|
-
// Already at coarsest level
|
|
219
|
-
return index;
|
|
220
|
-
}
|
|
221
|
-
const currentOverview = this.cogMetadata.overviews[index.z];
|
|
222
|
-
const parentOverview = this.cogMetadata.overviews[index.z - 1];
|
|
223
|
-
const scaleFactor = currentOverview.scaleFactor / parentOverview.scaleFactor;
|
|
224
|
-
return {
|
|
225
|
-
x: Math.floor(index.x / scaleFactor),
|
|
226
|
-
y: Math.floor(index.y / scaleFactor),
|
|
227
|
-
z: index.z - 1,
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
getTileZoom(index) {
|
|
231
|
-
return index.z;
|
|
232
|
-
}
|
|
233
|
-
getTileMetadata(index) {
|
|
234
|
-
const { x, y, z } = index;
|
|
235
|
-
const { overviews, tileWidth, tileHeight } = this.cogMetadata;
|
|
236
|
-
const overview = overviews[z];
|
|
237
|
-
// Use geotransform to calculate tile bounds
|
|
238
|
-
// geotransform: [a, b, c, d, e, f] where:
|
|
239
|
-
// x_geo = a * col + b * row + c
|
|
240
|
-
// y_geo = d * col + e * row + f
|
|
241
|
-
const [a, b, c, d, e, f] = overview.geotransform;
|
|
242
|
-
// Calculate pixel coordinates for this tile's extent
|
|
243
|
-
const pixelMinCol = x * tileWidth;
|
|
244
|
-
const pixelMinRow = y * tileHeight;
|
|
245
|
-
const pixelMaxCol = (x + 1) * tileWidth;
|
|
246
|
-
const pixelMaxRow = (y + 1) * tileHeight;
|
|
247
|
-
// Calculate the four corners of the tile in geographic coordinates
|
|
248
|
-
const topLeft = [
|
|
249
|
-
a * pixelMinCol + b * pixelMinRow + c,
|
|
250
|
-
d * pixelMinCol + e * pixelMinRow + f,
|
|
251
|
-
];
|
|
252
|
-
const topRight = [
|
|
253
|
-
a * pixelMaxCol + b * pixelMinRow + c,
|
|
254
|
-
d * pixelMaxCol + e * pixelMinRow + f,
|
|
255
|
-
];
|
|
256
|
-
const bottomLeft = [
|
|
257
|
-
a * pixelMinCol + b * pixelMaxRow + c,
|
|
258
|
-
d * pixelMinCol + e * pixelMaxRow + f,
|
|
259
|
-
];
|
|
260
|
-
const bottomRight = [
|
|
261
|
-
a * pixelMaxCol + b * pixelMaxRow + c,
|
|
262
|
-
d * pixelMaxCol + e * pixelMaxRow + f,
|
|
263
|
-
];
|
|
264
|
-
// Return the projected bounds as four corners
|
|
265
|
-
// This preserves rotation/skew information
|
|
266
|
-
const projectedBounds = {
|
|
267
|
-
topLeft,
|
|
268
|
-
topRight,
|
|
269
|
-
bottomLeft,
|
|
270
|
-
bottomRight,
|
|
271
|
-
};
|
|
272
|
-
// Also compute axis-aligned bounding box for compatibility
|
|
273
|
-
const bounds = [
|
|
274
|
-
Math.min(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]),
|
|
275
|
-
Math.min(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]),
|
|
276
|
-
Math.max(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]),
|
|
277
|
-
Math.max(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]),
|
|
278
|
-
];
|
|
279
|
-
return {
|
|
280
|
-
bounds,
|
|
281
|
-
projectedBounds,
|
|
282
|
-
tileWidth,
|
|
283
|
-
tileHeight,
|
|
284
|
-
overview,
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
//# sourceMappingURL=raster-tileset-2d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raster-tileset-2d.js","sourceRoot":"","sources":["../../src/raster-tileset-bak/raster-tileset-2d.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAY,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAK9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAQzD,MAAM,MAAM,GAAG;IACb,OAAO,E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C,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;YAChE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;SACjE,CAAC;QAEF,OAAO;YACL,MAAM;YACN,eAAe;YACf,SAAS;YACT,UAAU;YACV,QAAQ;SACT,CAAC;IACJ,CAAC;CACF"}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
package/dist/src/index.js
DELETED
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
package/dist/src/layer.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=layer.d.ts.map
|
package/dist/src/layer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../src/layer.ts"],"names":[],"mappings":""}
|
package/dist/src/layer.js
DELETED
package/dist/src/layer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layer.js","sourceRoot":"","sources":["../../src/layer.ts"],"names":[],"mappings":";AAAA,qDAAqD"}
|
package/dist/src/mesh.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=mesh.d.ts.map
|
package/dist/src/mesh.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mesh.d.ts","sourceRoot":"","sources":["../../src/mesh.ts"],"names":[],"mappings":""}
|
package/dist/src/mesh.js
DELETED
package/dist/src/mesh.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mesh.js","sourceRoot":"","sources":["../../src/mesh.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.test.d.ts","sourceRoot":"","sources":["../../tests/placeholder.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.test.js","sourceRoot":"","sources":["../../tests/placeholder.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|