Skip to content

Commit

Permalink
upgrade to latest s2maps-spec; fix all types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Martian committed Oct 3, 2024
1 parent 42f8f76 commit bc09a2d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 466 deletions.
7 changes: 5 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
[ ] - - INPUTS: all S2JSON types as `s2jsonld` files
[ ] - - Store: folders/files, PMTiles
[ ] - - FORMATS: ZXY, FZXY
[ ] - Point Cluster (S2 and WM)
[ ] - Point Index
[ ] - readers
[ ] - - netCDF
[ ] - - KML, KMZ, GML, & GPX
[ ] - - raster tile reader including DEM for z-data
[ ] - - LAS/LAZ
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
"typedoc": "^0.26.7",
"typedoc-plugin-coverage": "^3.3.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.7.0"
"typescript-eslint": "^8.8.0"
},
"dependencies": {
"earclip": "^1.1.0",
"open-vector-tile": "^1.3.0",
"s2-tilejson": "^1.6.0",
"s2json-spec": "^1.5.5",
"s2json-spec": "^1.6.0",
"sharp": "^0.33.5"
}
}
3 changes: 2 additions & 1 deletion src/dataStructures/pointCluster.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Tile } from '../dataStructures';
import { convert } from '../geometry/convert';
import { fromS2Points } from 's2-tools/geometry/s1/chordAngle';
import { PointShape as Point, PointIndex } from './pointIndex';
import { Tile, fromFacePosLevel, getVertices, level, range } from '../geometry';
import {
addMut,
divMutScalar,
Expand All @@ -11,6 +11,7 @@ import {
normalize,
toST,
} from '../geometry/s2/point';
import { fromFacePosLevel, getVertices, level, range } from '../geometry';

import type { PointShape } from './pointIndex';
import type { S1ChordAngle } from '../geometry/s1/chordAngle';
Expand Down
2 changes: 1 addition & 1 deletion src/dataStructures/tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function _transform(geometry: VectorGeometry, zoom: number, ti: number, tj: numb
* @param ti - x translation
* @param tj - y translation
*/
export function transformPoint(vp: VectorPoint, zoom: number, ti: number, tj: number) {
export function transformPoint(vp: VectorPoint, zoom: number, ti: number, tj: number): void {
vp.x = vp.x * zoom - ti;
vp.y = vp.y * zoom - tj;
}
Expand Down
2 changes: 1 addition & 1 deletion src/geometry/clip.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tile } from '.';
import { Tile } from '../dataStructures';
import { childrenIJ, toFaceIJ } from './id';
import { clipBBox, extendBBox } from './bbox';

Expand Down
330 changes: 0 additions & 330 deletions src/geometry/geometry.spec.ts

This file was deleted.

Loading

0 comments on commit bc09a2d

Please sign in to comment.