@basemaps/lambda-tiler 8.9.0 → 8.10.2

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.
Files changed (158) hide show
  1. package/CHANGELOG.md +69 -22
  2. package/build/__tests__/config.data.js +14 -0
  3. package/build/__tests__/config.data.js.map +1 -1
  4. package/build/cli/render.tile.js +25 -9
  5. package/build/cli/render.tile.js.map +1 -1
  6. package/build/routes/tile.style.json.js +27 -5
  7. package/build/routes/tile.style.json.js.map +1 -1
  8. package/package.json +8 -8
  9. package/src/__tests__/config.data.ts +14 -0
  10. package/src/cli/render.tile.ts +27 -8
  11. package/src/routes/tile.style.json.ts +26 -5
  12. package/tsconfig.tsbuildinfo +1 -1
  13. package/dist/index.js +0 -94950
  14. package/dist/node_modules/.package-lock.json +0 -179
  15. package/dist/node_modules/@img/sharp-libvips-linux-arm64/README.md +0 -47
  16. package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/glib-2.0/include/glibconfig.h +0 -219
  17. package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/index.js +0 -1
  18. package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/libvips-cpp.so.42 +0 -0
  19. package/dist/node_modules/@img/sharp-libvips-linux-arm64/package.json +0 -45
  20. package/dist/node_modules/@img/sharp-libvips-linux-arm64/versions.json +0 -31
  21. package/dist/node_modules/@img/sharp-linux-arm64/LICENSE +0 -191
  22. package/dist/node_modules/@img/sharp-linux-arm64/README.md +0 -18
  23. package/dist/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node +0 -0
  24. package/dist/node_modules/@img/sharp-linux-arm64/package.json +0 -47
  25. package/dist/node_modules/color/LICENSE +0 -21
  26. package/dist/node_modules/color/README.md +0 -123
  27. package/dist/node_modules/color/index.js +0 -496
  28. package/dist/node_modules/color/package.json +0 -47
  29. package/dist/node_modules/color-convert/CHANGELOG.md +0 -54
  30. package/dist/node_modules/color-convert/LICENSE +0 -21
  31. package/dist/node_modules/color-convert/README.md +0 -68
  32. package/dist/node_modules/color-convert/conversions.js +0 -839
  33. package/dist/node_modules/color-convert/index.js +0 -81
  34. package/dist/node_modules/color-convert/package.json +0 -48
  35. package/dist/node_modules/color-convert/route.js +0 -97
  36. package/dist/node_modules/color-name/LICENSE +0 -8
  37. package/dist/node_modules/color-name/README.md +0 -11
  38. package/dist/node_modules/color-name/index.js +0 -152
  39. package/dist/node_modules/color-name/package.json +0 -28
  40. package/dist/node_modules/color-string/LICENSE +0 -21
  41. package/dist/node_modules/color-string/README.md +0 -62
  42. package/dist/node_modules/color-string/index.js +0 -242
  43. package/dist/node_modules/color-string/package.json +0 -39
  44. package/dist/node_modules/detect-libc/LICENSE +0 -201
  45. package/dist/node_modules/detect-libc/README.md +0 -163
  46. package/dist/node_modules/detect-libc/index.d.ts +0 -14
  47. package/dist/node_modules/detect-libc/lib/detect-libc.js +0 -267
  48. package/dist/node_modules/detect-libc/lib/filesystem.js +0 -41
  49. package/dist/node_modules/detect-libc/lib/process.js +0 -24
  50. package/dist/node_modules/detect-libc/package.json +0 -41
  51. package/dist/node_modules/is-arrayish/LICENSE +0 -21
  52. package/dist/node_modules/is-arrayish/README.md +0 -16
  53. package/dist/node_modules/is-arrayish/index.js +0 -9
  54. package/dist/node_modules/is-arrayish/package.json +0 -45
  55. package/dist/node_modules/is-arrayish/yarn-error.log +0 -1443
  56. package/dist/node_modules/lerc/CHANGELOG.md +0 -69
  57. package/dist/node_modules/lerc/LercDecode.d.ts +0 -61
  58. package/dist/node_modules/lerc/LercDecode.es.d.ts +0 -61
  59. package/dist/node_modules/lerc/LercDecode.es.js +0 -434
  60. package/dist/node_modules/lerc/LercDecode.es.min.js +0 -17
  61. package/dist/node_modules/lerc/LercDecode.js +0 -448
  62. package/dist/node_modules/lerc/LercDecode.min.js +0 -17
  63. package/dist/node_modules/lerc/README.md +0 -123
  64. package/dist/node_modules/lerc/lerc-wasm.wasm +0 -0
  65. package/dist/node_modules/lerc/package.json +0 -30
  66. package/dist/node_modules/semver/LICENSE +0 -15
  67. package/dist/node_modules/semver/README.md +0 -664
  68. package/dist/node_modules/semver/bin/semver.js +0 -191
  69. package/dist/node_modules/semver/classes/comparator.js +0 -143
  70. package/dist/node_modules/semver/classes/index.js +0 -7
  71. package/dist/node_modules/semver/classes/range.js +0 -556
  72. package/dist/node_modules/semver/classes/semver.js +0 -319
  73. package/dist/node_modules/semver/functions/clean.js +0 -8
  74. package/dist/node_modules/semver/functions/cmp.js +0 -54
  75. package/dist/node_modules/semver/functions/coerce.js +0 -62
  76. package/dist/node_modules/semver/functions/compare-build.js +0 -9
  77. package/dist/node_modules/semver/functions/compare-loose.js +0 -5
  78. package/dist/node_modules/semver/functions/compare.js +0 -7
  79. package/dist/node_modules/semver/functions/diff.js +0 -60
  80. package/dist/node_modules/semver/functions/eq.js +0 -5
  81. package/dist/node_modules/semver/functions/gt.js +0 -5
  82. package/dist/node_modules/semver/functions/gte.js +0 -5
  83. package/dist/node_modules/semver/functions/inc.js +0 -21
  84. package/dist/node_modules/semver/functions/lt.js +0 -5
  85. package/dist/node_modules/semver/functions/lte.js +0 -5
  86. package/dist/node_modules/semver/functions/major.js +0 -5
  87. package/dist/node_modules/semver/functions/minor.js +0 -5
  88. package/dist/node_modules/semver/functions/neq.js +0 -5
  89. package/dist/node_modules/semver/functions/parse.js +0 -18
  90. package/dist/node_modules/semver/functions/patch.js +0 -5
  91. package/dist/node_modules/semver/functions/prerelease.js +0 -8
  92. package/dist/node_modules/semver/functions/rcompare.js +0 -5
  93. package/dist/node_modules/semver/functions/rsort.js +0 -5
  94. package/dist/node_modules/semver/functions/satisfies.js +0 -12
  95. package/dist/node_modules/semver/functions/sort.js +0 -5
  96. package/dist/node_modules/semver/functions/valid.js +0 -8
  97. package/dist/node_modules/semver/index.js +0 -91
  98. package/dist/node_modules/semver/internal/constants.js +0 -37
  99. package/dist/node_modules/semver/internal/debug.js +0 -11
  100. package/dist/node_modules/semver/internal/identifiers.js +0 -25
  101. package/dist/node_modules/semver/internal/lrucache.js +0 -42
  102. package/dist/node_modules/semver/internal/parse-options.js +0 -17
  103. package/dist/node_modules/semver/internal/re.js +0 -223
  104. package/dist/node_modules/semver/package.json +0 -78
  105. package/dist/node_modules/semver/preload.js +0 -4
  106. package/dist/node_modules/semver/range.bnf +0 -16
  107. package/dist/node_modules/semver/ranges/gtr.js +0 -6
  108. package/dist/node_modules/semver/ranges/intersects.js +0 -9
  109. package/dist/node_modules/semver/ranges/ltr.js +0 -6
  110. package/dist/node_modules/semver/ranges/max-satisfying.js +0 -27
  111. package/dist/node_modules/semver/ranges/min-satisfying.js +0 -26
  112. package/dist/node_modules/semver/ranges/min-version.js +0 -63
  113. package/dist/node_modules/semver/ranges/outside.js +0 -82
  114. package/dist/node_modules/semver/ranges/simplify.js +0 -49
  115. package/dist/node_modules/semver/ranges/subset.js +0 -249
  116. package/dist/node_modules/semver/ranges/to-comparators.js +0 -10
  117. package/dist/node_modules/semver/ranges/valid.js +0 -13
  118. package/dist/node_modules/sharp/LICENSE +0 -191
  119. package/dist/node_modules/sharp/README.md +0 -118
  120. package/dist/node_modules/sharp/install/check.js +0 -36
  121. package/dist/node_modules/sharp/lib/channel.js +0 -174
  122. package/dist/node_modules/sharp/lib/colour.js +0 -182
  123. package/dist/node_modules/sharp/lib/composite.js +0 -210
  124. package/dist/node_modules/sharp/lib/constructor.js +0 -444
  125. package/dist/node_modules/sharp/lib/index.d.ts +0 -1717
  126. package/dist/node_modules/sharp/lib/index.js +0 -16
  127. package/dist/node_modules/sharp/lib/input.js +0 -657
  128. package/dist/node_modules/sharp/lib/is.js +0 -169
  129. package/dist/node_modules/sharp/lib/libvips.js +0 -171
  130. package/dist/node_modules/sharp/lib/operation.js +0 -919
  131. package/dist/node_modules/sharp/lib/output.js +0 -1561
  132. package/dist/node_modules/sharp/lib/resize.js +0 -582
  133. package/dist/node_modules/sharp/lib/sharp.js +0 -86
  134. package/dist/node_modules/sharp/lib/utility.js +0 -287
  135. package/dist/node_modules/sharp/package.json +0 -219
  136. package/dist/node_modules/sharp/src/binding.gyp +0 -277
  137. package/dist/node_modules/sharp/src/common.cc +0 -1090
  138. package/dist/node_modules/sharp/src/common.h +0 -393
  139. package/dist/node_modules/sharp/src/metadata.cc +0 -287
  140. package/dist/node_modules/sharp/src/metadata.h +0 -82
  141. package/dist/node_modules/sharp/src/operations.cc +0 -471
  142. package/dist/node_modules/sharp/src/operations.h +0 -125
  143. package/dist/node_modules/sharp/src/pipeline.cc +0 -1724
  144. package/dist/node_modules/sharp/src/pipeline.h +0 -385
  145. package/dist/node_modules/sharp/src/sharp.cc +0 -40
  146. package/dist/node_modules/sharp/src/stats.cc +0 -183
  147. package/dist/node_modules/sharp/src/stats.h +0 -59
  148. package/dist/node_modules/sharp/src/utilities.cc +0 -269
  149. package/dist/node_modules/sharp/src/utilities.h +0 -19
  150. package/dist/node_modules/simple-swizzle/LICENSE +0 -21
  151. package/dist/node_modules/simple-swizzle/README.md +0 -39
  152. package/dist/node_modules/simple-swizzle/index.js +0 -29
  153. package/dist/node_modules/simple-swizzle/package.json +0 -36
  154. package/dist/package-lock.json +0 -610
  155. package/dist/package.json +0 -40
  156. package/dist/static/expected_tile_2193_153_255_z7.png +0 -0
  157. package/dist/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
  158. package/dist/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
@@ -1,123 +0,0 @@
1
- [![npm version][npm-img]][npm-url]
2
-
3
- [npm-img]: https://img.shields.io/npm/v/lerc.svg?style=flat-square
4
- [npm-url]: https://www.npmjs.com/package/lerc
5
-
6
- # Lerc JS
7
-
8
- > Rapid decoding of Lerc compressed raster data for any standard pixel type, not just rgb or byte.
9
-
10
- # Breaking changes
11
- - [Web Assembly](https://caniuse.com/wasm) support is now required.
12
- - <code>Lerc.load()</code> must be invoked and the returned promise must be resolved prior to <code>Lerc.decode</code>. This only needs to be done once per worker (or the main thread). There's no extra cost when invoked multiple times as the internal wasm loading promise is cached.
13
-
14
- ## Get started
15
-
16
- ```js
17
- npm install lerc
18
-
19
- // es module
20
- import * as Lerc from 'lerc';
21
-
22
- // commonJS
23
- const Lerc = require('lerc');
24
- ```
25
-
26
- ```js
27
- // use umd via a script tag
28
- <script type="text/javascript" src="https://unpkg.com/lerc@latest/LercDecode.min.js"></script>
29
- ```
30
-
31
- ## Sample usage
32
-
33
- ```js
34
- await Lerc.load();
35
-
36
- const arrayBuffer = await fetch('http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer/tile/0/0/0')
37
- .then(response => response.arrayBuffer());
38
- const pixelBlock = Lerc.decode(arrayBuffer);
39
- const { height, width, pixels, mask } = pixelBlock;
40
- for (let i = 0; i < height; i++) {
41
- for (let j = 0; j < width; j++) {
42
- if (!mask || mask[i * width + j]) {
43
- // do something with valid pixel (i,j)
44
- }
45
- }
46
- }
47
-
48
- // use options
49
- const pixelBlock = Lerc.decode(arrayBuffer, {
50
- inputOffset: 10, // start from the 10th byte (default is 0)
51
- returnInterleaved: true // only applicable to n-depth lerc blobs (default is false)
52
- });
53
- ```
54
-
55
-
56
- ## API Reference
57
-
58
- <a name="module_Lerc"></a>
59
-
60
- ## Lerc
61
- A module for decoding LERC blobs.
62
-
63
- <a name="exp_module_Lerc--load"></a>
64
-
65
- ### load([options]) ⇒ <code>Promise<void></code> ⏏
66
- Load the dependencies (web assembly). Check whether dependencies has been loaded using <code>Lerc.isLoaded()</code>. The loading promise is cached so it can be invoked multiple times if needed.
67
-
68
-
69
- **Kind**: Exported function
70
-
71
- | Param | Type | Description |
72
- | --- | --- | --- |
73
- | [options.locateFile] | <code>(wasmFileName?: string, scriptDir?: string) => string</code> | The function to locate lerc-wasm.wasm. Used when the web assembly file is moved to a different location. |
74
-
75
-
76
- <a name="exp_module_Lerc--decode"></a>
77
-
78
- ### decode(input, [options]) ⇒ <code>Object</code> ⏏
79
- A function for decoding both LERC1 and LERC2 byte streams capable of handling multiband pixel blocks for various pixel types.
80
-
81
- **Kind**: Exported function
82
-
83
- | Param | Type | Description |
84
- | --- | --- | --- |
85
- | input | <code>ArrayBuffer</code> | The LERC input byte stream |
86
- | [options] | <code>object</code> | The decoding options below are optional. |
87
- | [options.inputOffset] | <code>number</code> | The number of bytes to skip in the input byte stream. A valid Lerc file is expected at that position. |
88
- | [options.noDataValue] | <code>number</code> | It is recommended to use the returned mask instead of setting this value. |
89
- | (Deprecated) [options.returnPixelInterleavedDims] | <code>boolean</code> | will be removed in next release, use returnInterleaved instead. |
90
- | [options.returnInterleaved] | <code>boolean</code> | (ndepth LERC2 only) If true, returned depth values are pixel-interleaved. |
91
-
92
- **Result Object Properties**
93
-
94
- | Name | Type | Description |
95
- | --- | --- | --- |
96
- | width | <code>number</code> | Width of decoded image. |
97
- | height | <code>number</code> | Height of decoded image. |
98
- | pixels | <code>array</code> | [band1, band2, …] Each band is a typed array of width * height * depthCount. |
99
- | pixelType | <code>string</code> | The type of pixels represented in the output. |
100
- | mask | <code>mask</code> | Typed array with a size of width*height, or null if all pixels are valid. |
101
- | statistics | <code>array</code> | [statistics_band1, statistics_band2, …] Each element is a statistics object representing min and max values |
102
- | (Deprecated) dimCount | <code>number</code> | Will be removed in next release, use <code>depthCount</code> instead.
103
- | depthCount | <code>number</code> | Depth count
104
- | [bandMasks] | <code>array</code> | [band1_mask, band2_mask, …] Each band is a Uint8Array of width * height * depthCount. |
105
-
106
- * * *
107
-
108
- ## Licensing
109
-
110
- Copyright &copy; 2017-2023 Esri
111
-
112
- Licensed under the Apache License, Version 2.0 (the "License");
113
- you may not use this file except in compliance with the License.
114
- You may obtain a copy of the License at
115
-
116
- http://www.apache.org/licenses/LICENSE-2.0
117
-
118
- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
- See the License for the specific language governing permissions and limitations under the License.
120
-
121
- A local copy of the license and additional notices are located with the source distribution at:
122
-
123
- http://github.com/Esri/lerc/
@@ -1,30 +0,0 @@
1
- {
2
- "name": "lerc",
3
- "version": "4.0.4",
4
- "browser": "LercDecode.js",
5
- "bugs": {
6
- "url": "https://github.com/esri/lerc/issues"
7
- },
8
- "description": "Rapid decoding of Lerc compressed raster data for any standard pixel type.",
9
- "keywords": [
10
- "Esri",
11
- "LERC"
12
- ],
13
- "author": "Esri <dev_tools@esri.com> (http://developers.arcgis.com)",
14
- "contributors": [
15
- "Thomas Maurer",
16
- "Wenxue Ju"
17
- ],
18
- "devDependencies": {},
19
- "homepage": "https://github.com/Esri/lerc",
20
- "license": "Apache-2.0",
21
- "main": "LercDecode.js",
22
- "module": "LercDecode.es.js",
23
- "readmeFilename": "README.md",
24
- "repository": {
25
- "type": "git",
26
- "url": "https://github.com/Esri/lerc.git"
27
- },
28
- "scripts": {},
29
- "dependencies": {}
30
- }
@@ -1,15 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.