@basemaps/shared 6.39.0 → 6.41.0
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/CHANGELOG.md +28 -0
- package/build/__tests__/api.test.js +17 -2
- package/build/__tests__/api.test.js.map +1 -1
- package/build/__tests__/util.test.js +10 -1
- package/build/__tests__/util.test.js.map +1 -1
- package/build/api.d.ts +2 -0
- package/build/api.d.ts.map +1 -1
- package/build/api.js +10 -0
- package/build/api.js.map +1 -1
- package/build/cli/base.d.ts +0 -8
- package/build/cli/base.d.ts.map +1 -1
- package/build/cli/base.js +3 -14
- package/build/cli/base.js.map +1 -1
- package/build/cli/info.d.ts +10 -0
- package/build/cli/info.d.ts.map +1 -0
- package/build/cli/info.js +14 -0
- package/build/cli/info.js.map +1 -0
- package/build/index.d.ts +1 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -3
- package/build/index.js.map +1 -1
- package/build/util.d.ts +3 -2
- package/build/util.d.ts.map +1 -1
- package/build/util.js +19 -4
- package/build/util.js.map +1 -1
- package/package.json +8 -10
- package/build/proj/__tests__/projection.test.d.ts +0 -2
- package/build/proj/__tests__/projection.test.d.ts.map +0 -1
- package/build/proj/__tests__/projection.test.js +0 -113
- package/build/proj/__tests__/projection.test.js.map +0 -1
- package/build/proj/__tests__/projection.tile.matrix.set.test.d.ts +0 -2
- package/build/proj/__tests__/projection.tile.matrix.set.test.d.ts.map +0 -1
- package/build/proj/__tests__/projection.tile.matrix.set.test.js +0 -234
- package/build/proj/__tests__/projection.tile.matrix.set.test.js.map +0 -1
- package/build/proj/__tests__/test.util.d.ts +0 -6
- package/build/proj/__tests__/test.util.d.ts.map +0 -1
- package/build/proj/__tests__/test.util.js +0 -26
- package/build/proj/__tests__/test.util.js.map +0 -1
- package/build/proj/citm2000.d.ts +0 -7
- package/build/proj/citm2000.d.ts.map +0 -1
- package/build/proj/citm2000.js +0 -29
- package/build/proj/citm2000.js.map +0 -1
- package/build/proj/nztm2000.d.ts +0 -7
- package/build/proj/nztm2000.d.ts.map +0 -1
- package/build/proj/nztm2000.js +0 -27
- package/build/proj/nztm2000.js.map +0 -1
- package/build/proj/projection.d.ts +0 -110
- package/build/proj/projection.d.ts.map +0 -1
- package/build/proj/projection.js +0 -233
- package/build/proj/projection.js.map +0 -1
- package/build/proj/tile.set.name.d.ts +0 -5
- package/build/proj/tile.set.name.d.ts.map +0 -1
- package/build/proj/tile.set.name.js +0 -8
- package/build/proj/tile.set.name.js.map +0 -1
package/build/proj/projection.js
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { Epsg } from '@basemaps/geo';
|
|
2
|
-
import { multiPolygonToWgs84, toFeatureMultiPolygon, toFeaturePolygon, } from '@linzjs/geojson';
|
|
3
|
-
import Proj from 'proj4';
|
|
4
|
-
import { CompositeError } from '../composite.error.js';
|
|
5
|
-
import { Citm2000 } from './citm2000.js';
|
|
6
|
-
import { Nztm2000 } from './nztm2000.js';
|
|
7
|
-
Proj.defs(Epsg.Nztm2000.toEpsgString(), Nztm2000);
|
|
8
|
-
Proj.defs(Epsg.Citm2000.toEpsgString(), Citm2000);
|
|
9
|
-
const CodeMap = new Map();
|
|
10
|
-
function getEpsgCode(epsgCode) {
|
|
11
|
-
if (epsgCode == null)
|
|
12
|
-
return null;
|
|
13
|
-
if (typeof epsgCode === 'number')
|
|
14
|
-
return epsgCode;
|
|
15
|
-
if ('code' in epsgCode)
|
|
16
|
-
return epsgCode.code;
|
|
17
|
-
if ('projection' in epsgCode)
|
|
18
|
-
return epsgCode.projection.code;
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
export class Projection {
|
|
22
|
-
/**
|
|
23
|
-
* Wrapper around TileMatrixSet with utilities for converting Points and Polygons
|
|
24
|
-
*/
|
|
25
|
-
constructor(epsg) {
|
|
26
|
-
this.epsg = epsg;
|
|
27
|
-
try {
|
|
28
|
-
this.projection = Proj(epsg.toEpsgString(), Epsg.Wgs84.toEpsgString());
|
|
29
|
-
}
|
|
30
|
-
catch (err) {
|
|
31
|
-
throw new CompositeError(`Failed to create projection: ${epsg.toEpsgString()}, ${Epsg.Wgs84.toEpsgString()}`, 500, err);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
/** Ensure that a transformation in proj4.js is defined */
|
|
35
|
-
static define(epsg, def) {
|
|
36
|
-
const existing = CodeMap.get(epsg.code);
|
|
37
|
-
if (existing != null)
|
|
38
|
-
throw new Error('Duplicate projection definition: ' + epsg.toEpsgString());
|
|
39
|
-
Proj.defs(epsg.toEpsgString(), def);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Get the Projection instance for a specified code,
|
|
43
|
-
*
|
|
44
|
-
* throws a exception if the code is not recognized
|
|
45
|
-
*
|
|
46
|
-
* @param epsgCode
|
|
47
|
-
*/
|
|
48
|
-
static get(epsgCode) {
|
|
49
|
-
const proj = this.tryGet(epsgCode);
|
|
50
|
-
if (proj == null)
|
|
51
|
-
throw new Error(`Invalid projection: ${epsgCode}`);
|
|
52
|
-
return proj;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Try to find a corresponding Projection for a number
|
|
56
|
-
* @param epsgCode
|
|
57
|
-
*/
|
|
58
|
-
static tryGet(unk) {
|
|
59
|
-
const epsgCode = getEpsgCode(unk);
|
|
60
|
-
if (epsgCode == null)
|
|
61
|
-
return null;
|
|
62
|
-
// Existing projection logic, cache and reuse
|
|
63
|
-
let proj = CodeMap.get(epsgCode);
|
|
64
|
-
if (proj != null)
|
|
65
|
-
return proj;
|
|
66
|
-
// ensure the EPSG Code has been registered in basemaps
|
|
67
|
-
const epsg = Epsg.tryGet(epsgCode);
|
|
68
|
-
if (epsg == null)
|
|
69
|
-
return null;
|
|
70
|
-
// Ensure proj has a transform for this projection
|
|
71
|
-
const def = Proj.defs(epsg.toEpsgString());
|
|
72
|
-
if (def == null)
|
|
73
|
-
return null;
|
|
74
|
-
proj = new Projection(epsg);
|
|
75
|
-
CodeMap.set(epsgCode, proj);
|
|
76
|
-
return proj;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Project the points in a MultiPolygon array to the `targetProjection`.
|
|
80
|
-
*
|
|
81
|
-
* @return if multipoly is not projected return it verbatim otherwise creates a new multi
|
|
82
|
-
* polygon
|
|
83
|
-
*/
|
|
84
|
-
projectMultipolygon(multipoly, targetProjection) {
|
|
85
|
-
if (targetProjection.epsg.code === this.epsg.code)
|
|
86
|
-
return multipoly;
|
|
87
|
-
const { toWgs84 } = this;
|
|
88
|
-
const { fromWgs84 } = targetProjection;
|
|
89
|
-
return multipoly.map((poly) => poly.map((ring) => ring.map((p) => fromWgs84(toWgs84(p)))));
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Convert source `[x, y]` coordinates to `[lon, lat]`
|
|
93
|
-
*/
|
|
94
|
-
get toWgs84() {
|
|
95
|
-
return this.projection.forward;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Convert `[lon, lat]` coordinates to source `[x, y]`
|
|
99
|
-
*/
|
|
100
|
-
get fromWgs84() {
|
|
101
|
-
return this.projection.inverse;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Convert a source Bounds to GeoJSON WGS84 BoundingBox. In particular if the bounds crosses the
|
|
105
|
-
* anti-meridian then the east component will be less than the west component.
|
|
106
|
-
*
|
|
107
|
-
* @param source
|
|
108
|
-
* @returns [west, south, east, north]
|
|
109
|
-
*/
|
|
110
|
-
boundsToWgs84BoundingBox(source) {
|
|
111
|
-
const sw = this.toWgs84([source.x, source.y]);
|
|
112
|
-
const ne = this.toWgs84([source.x + source.width, source.y + source.height]);
|
|
113
|
-
return [sw[0], sw[1], ne[0], ne[1]];
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Convert a source bounds to a WSG84 GeoJSON Feature
|
|
117
|
-
*
|
|
118
|
-
* @param bounds in source epsg
|
|
119
|
-
* @param properties any properties to include in the feature such as name
|
|
120
|
-
*
|
|
121
|
-
* @returns If `bounds` crosses the antimeridian then and east and west pair of non crossing
|
|
122
|
-
* polygons will be returned; otherwise a single Polygon will be returned.
|
|
123
|
-
*/
|
|
124
|
-
boundsToGeoJsonFeature(bounds, properties = {}) {
|
|
125
|
-
const sw = [bounds.x, bounds.y];
|
|
126
|
-
const se = [bounds.x + bounds.width, bounds.y];
|
|
127
|
-
const nw = [bounds.x, bounds.y + bounds.height];
|
|
128
|
-
const ne = [bounds.x + bounds.width, bounds.y + bounds.height];
|
|
129
|
-
const coords = multiPolygonToWgs84([[[sw, nw, ne, se, sw]]], this.toWgs84);
|
|
130
|
-
const feature = coords.length === 1 ? toFeaturePolygon(coords[0], properties) : toFeatureMultiPolygon(coords, properties);
|
|
131
|
-
feature.bbox = this.boundsToWgs84BoundingBox(bounds);
|
|
132
|
-
return feature;
|
|
133
|
-
}
|
|
134
|
-
/** Convert a tile covering to a GeoJSON FeatureCollection */
|
|
135
|
-
toGeoJson(files) {
|
|
136
|
-
return {
|
|
137
|
-
type: 'FeatureCollection',
|
|
138
|
-
features: files.map((f) => this.boundsToGeoJsonFeature(f, { name: f.name })),
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Find the closest zoom level to `pixelScale` that is at
|
|
143
|
-
* least as good as `pixelScale` or within the error bounds (+- 1e-8)
|
|
144
|
-
*
|
|
145
|
-
* @see Projection.AllowedFloatingError.
|
|
146
|
-
*
|
|
147
|
-
* @param pixelScale A pixel's resolution in metres
|
|
148
|
-
*/
|
|
149
|
-
static getTiffResZoom(tms, pixelScale) {
|
|
150
|
-
for (let z = 0; z < tms.zooms.length; z++) {
|
|
151
|
-
const diff = tms.pixelScale(z) - pixelScale;
|
|
152
|
-
if (diff < this.AllowedFloatingError)
|
|
153
|
-
return z;
|
|
154
|
-
}
|
|
155
|
-
return tms.zooms.length - 1;
|
|
156
|
-
}
|
|
157
|
-
/** Convert a tile to the wgs84 bounds */
|
|
158
|
-
static tileToWgs84Bbox(tms, tile) {
|
|
159
|
-
const ul = tms.tileToSource(tile);
|
|
160
|
-
const lr = tms.tileToSource({ x: tile.x + 1, y: tile.y + 1, z: tile.z });
|
|
161
|
-
const proj = this.get(tms);
|
|
162
|
-
const [swLon, swLat] = proj.toWgs84([ul.x, lr.y]);
|
|
163
|
-
const [neLon, neLat] = proj.toWgs84([lr.x, ul.y]);
|
|
164
|
-
return [swLon, swLat, neLon, neLat];
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* return the `lat`, `lon` of a Tile's center
|
|
168
|
-
*/
|
|
169
|
-
static tileCenterToLatLon(tms, tile) {
|
|
170
|
-
const point = tms.tileToSource({ x: tile.x + 0.5, y: tile.y + 0.5, z: tile.z });
|
|
171
|
-
const [lon, lat] = this.get(tms).toWgs84([point.x, point.y]);
|
|
172
|
-
return Projection.wrapLatLon(lat, lon);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Reused from : https://github.com/pelias/api/blob/6a7751f35882698eb885b93635656ec0c2941633/sanitizer/wrap.js
|
|
176
|
-
*
|
|
177
|
-
* Normalize co-ordinates that lie outside of the normal ranges.
|
|
178
|
-
*
|
|
179
|
-
* longitude wrapping simply requires adding +- 360 to the value until it comes in to range.
|
|
180
|
-
* for the latitude values we need to flip the longitude whenever the latitude
|
|
181
|
-
* crosses a pole.
|
|
182
|
-
*
|
|
183
|
-
*/
|
|
184
|
-
static wrapLatLon(lat, lon) {
|
|
185
|
-
const point = { lat, lon };
|
|
186
|
-
const quadrant = Math.floor(Math.abs(lat) / 90) % 4;
|
|
187
|
-
const pole = lat > 0 ? 90 : -90;
|
|
188
|
-
const offset = lat % 90;
|
|
189
|
-
switch (quadrant) {
|
|
190
|
-
case 0:
|
|
191
|
-
point.lat = offset;
|
|
192
|
-
break;
|
|
193
|
-
case 1:
|
|
194
|
-
point.lat = pole - offset;
|
|
195
|
-
point.lon += 180;
|
|
196
|
-
break;
|
|
197
|
-
case 2:
|
|
198
|
-
point.lat = -offset;
|
|
199
|
-
point.lon += 180;
|
|
200
|
-
break;
|
|
201
|
-
case 3:
|
|
202
|
-
point.lat = -pole + offset;
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
if (point.lon > 180 || point.lon < -180) {
|
|
206
|
-
point.lon -= Math.floor((point.lon + 180) / 360) * 360;
|
|
207
|
-
}
|
|
208
|
-
return point;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Find the number of alignment levels required to render the tile. Min 0
|
|
212
|
-
*
|
|
213
|
-
* @param tile
|
|
214
|
-
* @param gsd the pixel resolution of the source imagery
|
|
215
|
-
*/
|
|
216
|
-
static findAlignmentLevels(tms, tile, gsd, blockFactor = 2) {
|
|
217
|
-
return Math.max(0, this.getTiffResZoom(tms, gsd * blockFactor) - tile.z);
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Return the expected width in pixels of an image at the tile resolution.
|
|
221
|
-
*
|
|
222
|
-
* @param tile
|
|
223
|
-
* @param targetZoom The desired zoom level for the imagery
|
|
224
|
-
*/
|
|
225
|
-
static getImagePixelWidth(tms, tile, targetZoom) {
|
|
226
|
-
const ul = tms.tileToSource(tile);
|
|
227
|
-
const lr = tms.tileToSource({ x: tile.x + 1, y: tile.y + 1, z: tile.z });
|
|
228
|
-
return Math.round((lr.x - ul.x) / tms.pixelScale(targetZoom)) * 2;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
/** If floating point numbers differ by this amount they are close enough */
|
|
232
|
-
Projection.AllowedFloatingError = 1e-8;
|
|
233
|
-
//# sourceMappingURL=projection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projection.js","sourceRoot":"","sources":["../../src/proj/projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA8C,MAAM,eAAe,CAAC;AAC9F,OAAO,EAKL,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;A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src/proj/tile.set.name.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,MAAM,WAAW;CAClB;AAED,wBAAgB,iBAAiB,IAAI,WAAW,EAAE,CAEjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tile.set.name.js","sourceRoot":"","sources":["../../src/proj/tile.set.name.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAEX;AAFD,WAAY,WAAW;IACrB,gCAAiB,CAAA;AACnB,CAAC,EAFW,WAAW,KAAX,WAAW,QAEtB;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|