@loaders.gl/wms 4.0.0-beta.6 → 4.0.0-beta.7

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/dist/index.cjs CHANGED
@@ -36,7 +36,6 @@ __export(src_exports, {
36
36
  CSWService: () => CSWService,
37
37
  ImageService: () => ImageService,
38
38
  ImageSource: () => import_loader_utils5.ImageSource,
39
- LERCLoader: () => LERCLoader,
40
39
  WMSCapabilitiesLoader: () => WMSCapabilitiesLoader,
41
40
  WMSErrorLoader: () => WMSErrorLoader,
42
41
  WMSService: () => WMSService,
@@ -1640,26 +1639,3 @@ function extractServices(directory, url) {
1640
1639
  }
1641
1640
  return services;
1642
1641
  }
1643
-
1644
- // src/lerc-loader.ts
1645
- var Lerc = __toESM(require("lerc"), 1);
1646
- var VERSION8 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
1647
- var LERCLoader = {
1648
- id: "lerc",
1649
- name: "LERC",
1650
- module: "wms",
1651
- version: VERSION8,
1652
- worker: false,
1653
- extensions: ["lrc", "lerc", "lerc2", "lerc1"],
1654
- mimeTypes: ["application/octet-stream"],
1655
- // test: ?,
1656
- options: {
1657
- wms: {}
1658
- },
1659
- parse: async (arrayBuffer, options) => parseLERC(arrayBuffer, options)
1660
- };
1661
- async function parseLERC(arrayBuffer, options) {
1662
- await Lerc.load();
1663
- const pixelBlock = Lerc.decode(arrayBuffer, options == null ? void 0 : options.lerc);
1664
- return pixelBlock;
1665
- }
package/dist/index.d.ts CHANGED
@@ -31,6 +31,4 @@ export { CSWService } from './services/ogc/csw-service';
31
31
  export { WMSSource, WMSService } from './services/ogc/wms-service';
32
32
  export { getArcGISServices as _getArcGISServices } from './services/arcgis/arcgis-server';
33
33
  export { ArcGISImageService as _ArcGISImageService } from './services/arcgis/arcgis-image-service';
34
- export type { LERCData } from './lib/parsers/lerc/lerc-types';
35
- export { LERCLoader } from './lerc-loader';
36
34
  //# sourceMappingURL=index.d.ts.map
@@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CAAgC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,gCAAgC,CAAC;AAIjE,YAAY,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAI1D,OAAO,EAAC,UAAU,EAAC,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,4BAA4B,CAAC;AAIjE,OAAO,EAAC,iBAAiB,IAAI,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAC,kBAAkB,IAAI,mBAAmB,EAAC,MAAM,wCAAwC,CAAC"}
package/dist/index.js CHANGED
@@ -15,5 +15,4 @@ export { CSWService } from "./services/ogc/csw-service.js";
15
15
  export { WMSSource, WMSService } from "./services/ogc/wms-service.js";
16
16
  export { getArcGISServices as _getArcGISServices } from "./services/arcgis/arcgis-server.js";
17
17
  export { ArcGISImageService as _ArcGISImageService } from "./services/arcgis/arcgis-image-service.js";
18
- export { LERCLoader } from "./lerc-loader.js";
19
18
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CSWCapabilitiesLoader","CSWDomainLoader","CSWRecordsLoader","WMSErrorLoader","WMSCapabilitiesLoader","WMSFeatureInfoLoader","_WMSFeatureInfoLoader","WMSLayerDescriptionLoader","_WMSLayerDescriptionLoader","WFSCapabilitiesLoader","_WFSCapabilitiesLoader","GMLLoader","_GMLLoader","ImageSource","createImageService","createImageSource","ImageService","CSWService","WMSSource","WMSService","getArcGISServices","_getArcGISServices","ArcGISImageService","_ArcGISImageService","LERCLoader"],"sources":["../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n// CSW - Catalog Service for the Web\n\nexport type {CSWLoaderOptions} from './csw-capabilities-loader';\n\nexport type {CSWCapabilities} from './csw-capabilities-loader';\nexport {CSWCapabilitiesLoader} from './csw-capabilities-loader';\n\nexport type {CSWDomain} from './csw-domain-loader';\nexport {CSWDomainLoader} from './csw-domain-loader';\n\nexport type {CSWRecords} from './csw-records-loader';\nexport {CSWRecordsLoader} from './csw-records-loader';\n\n// WMS - Web Map Service\n\nexport {WMSErrorLoader} from './wms-error-loader';\n\nexport type {\n WMSCapabilities,\n WMSLayer,\n WMSBoundingBox,\n WMSDimension\n} from './wms-capabilities-loader';\nexport type {WMSCapabilitiesLoaderOptions} from './wms-capabilities-loader';\nexport {WMSCapabilitiesLoader} from './wms-capabilities-loader';\n\nexport type {WMSFeatureInfo as _WMSFeatureInfo} from './wip/wms-feature-info-loader';\nexport {WMSFeatureInfoLoader as _WMSFeatureInfoLoader} from './wip/wms-feature-info-loader';\n\nexport type {WMSLayerDescription as _WMSLayerDescription} from './wip/wms-layer-description-loader';\nexport {WMSLayerDescriptionLoader as _WMSLayerDescriptionLoader} from './wip/wms-layer-description-loader';\n\n// WMTS - Web Map Tile Service\n\n// export type {WMTSLoaderOptions as _WMTSLoaderOptions} from './wip/wmts-capabilities-loader';\n// export type {WMTSCapabilities as _WMTSCapabilities} from './wip/wmts-capabilities-loader';\n// export {WMTSCapabilitiesLoader as _WMTSCapabilitiesLoader} from './wip/wmts-capabilities-loader';\n\n// WFS - Web Feature Service\n\nexport type {WFSLoaderOptions as _WFSLoaderOptions} from './wip/wfs-capabilities-loader';\n\nexport type {WFSCapabilities as _WFSCapabilities} from './wip/wfs-capabilities-loader';\nexport {WFSCapabilitiesLoader as _WFSCapabilitiesLoader} from './wip/wfs-capabilities-loader';\n\n// GML - Geographic Markup Language\n\nexport type {GeoJSON as _GeoJSON} from '@loaders.gl/schema';\nexport type {GMLLoaderOptions as _GMLLoaderOptions} from './gml-loader';\nexport {GMLLoader as _GMLLoader} from './gml-loader';\n\n// EXPERIMENTAL: DATA SOURCES\n\n// TODO - restore once deck.gl has been udpated\nexport {ImageSource} from '@loaders.gl/loader-utils';\n\nexport type {ImageType} from '@loaders.gl/images';\n\nexport type {CreateImageServiceProps} from './lib/services/create-image-service';\nexport {createImageService} from './lib/services/create-image-service';\n\nexport type {ImageServiceType} from './services/create-image-source';\nexport {createImageSource} from './services/create-image-source';\n\n// Generic (Template URL) Services\n\nexport type {ImageServiceProps} from './lib/services/image-service';\nexport {ImageService} from './lib/services/image-service';\n\n// OGC Services\n\nexport {CSWService} from './services/ogc/csw-service';\nexport {WMSSource, WMSService} from './services/ogc/wms-service';\n\n// ArcGIS Services\n\nexport {getArcGISServices as _getArcGISServices} from './services/arcgis/arcgis-server';\nexport {ArcGISImageService as _ArcGISImageService} from './services/arcgis/arcgis-image-service';\n\n// LERC - Limited Error Raster Compression\nexport type {LERCData} from './lib/parsers/lerc/lerc-types';\nexport {LERCLoader} from './lerc-loader';\n"],"mappings":"SAOQA,qBAAqB;AAAA,SAGrBC,eAAe;AAAA,SAGfC,gBAAgB;AAAA,SAIhBC,cAAc;AAAA,SASdC,qBAAqB;AAAA,SAGrBC,oBAAoB,IAAIC,qBAAqB;AAAA,SAG7CC,yBAAyB,IAAIC,0BAA0B;AAAA,SAavDC,qBAAqB,IAAIC,sBAAsB;AAAA,SAM/CC,SAAS,IAAIC,UAAU;AAK/B,SAAQC,WAAW,QAAO,0BAA0B;AAAC,SAK7CC,kBAAkB;AAAA,SAGlBC,iBAAiB;AAAA,SAKjBC,YAAY;AAAA,SAIZC,UAAU;AAAA,SACVC,SAAS,EAAEC,UAAU;AAAA,SAIrBC,iBAAiB,IAAIC,kBAAkB;AAAA,SACvCC,kBAAkB,IAAIC,mBAAmB;AAAA,SAIzCC,UAAU"}
1
+ {"version":3,"file":"index.js","names":["CSWCapabilitiesLoader","CSWDomainLoader","CSWRecordsLoader","WMSErrorLoader","WMSCapabilitiesLoader","WMSFeatureInfoLoader","_WMSFeatureInfoLoader","WMSLayerDescriptionLoader","_WMSLayerDescriptionLoader","WFSCapabilitiesLoader","_WFSCapabilitiesLoader","GMLLoader","_GMLLoader","ImageSource","createImageService","createImageSource","ImageService","CSWService","WMSSource","WMSService","getArcGISServices","_getArcGISServices","ArcGISImageService","_ArcGISImageService"],"sources":["../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n// CSW - Catalog Service for the Web\n\nexport type {CSWLoaderOptions} from './csw-capabilities-loader';\n\nexport type {CSWCapabilities} from './csw-capabilities-loader';\nexport {CSWCapabilitiesLoader} from './csw-capabilities-loader';\n\nexport type {CSWDomain} from './csw-domain-loader';\nexport {CSWDomainLoader} from './csw-domain-loader';\n\nexport type {CSWRecords} from './csw-records-loader';\nexport {CSWRecordsLoader} from './csw-records-loader';\n\n// WMS - Web Map Service\n\nexport {WMSErrorLoader} from './wms-error-loader';\n\nexport type {\n WMSCapabilities,\n WMSLayer,\n WMSBoundingBox,\n WMSDimension\n} from './wms-capabilities-loader';\nexport type {WMSCapabilitiesLoaderOptions} from './wms-capabilities-loader';\nexport {WMSCapabilitiesLoader} from './wms-capabilities-loader';\n\nexport type {WMSFeatureInfo as _WMSFeatureInfo} from './wip/wms-feature-info-loader';\nexport {WMSFeatureInfoLoader as _WMSFeatureInfoLoader} from './wip/wms-feature-info-loader';\n\nexport type {WMSLayerDescription as _WMSLayerDescription} from './wip/wms-layer-description-loader';\nexport {WMSLayerDescriptionLoader as _WMSLayerDescriptionLoader} from './wip/wms-layer-description-loader';\n\n// WMTS - Web Map Tile Service\n\n// export type {WMTSLoaderOptions as _WMTSLoaderOptions} from './wip/wmts-capabilities-loader';\n// export type {WMTSCapabilities as _WMTSCapabilities} from './wip/wmts-capabilities-loader';\n// export {WMTSCapabilitiesLoader as _WMTSCapabilitiesLoader} from './wip/wmts-capabilities-loader';\n\n// WFS - Web Feature Service\n\nexport type {WFSLoaderOptions as _WFSLoaderOptions} from './wip/wfs-capabilities-loader';\n\nexport type {WFSCapabilities as _WFSCapabilities} from './wip/wfs-capabilities-loader';\nexport {WFSCapabilitiesLoader as _WFSCapabilitiesLoader} from './wip/wfs-capabilities-loader';\n\n// GML - Geographic Markup Language\n\nexport type {GeoJSON as _GeoJSON} from '@loaders.gl/schema';\nexport type {GMLLoaderOptions as _GMLLoaderOptions} from './gml-loader';\nexport {GMLLoader as _GMLLoader} from './gml-loader';\n\n// EXPERIMENTAL: DATA SOURCES\n\n// TODO - restore once deck.gl has been udpated\nexport {ImageSource} from '@loaders.gl/loader-utils';\n\nexport type {ImageType} from '@loaders.gl/images';\n\nexport type {CreateImageServiceProps} from './lib/services/create-image-service';\nexport {createImageService} from './lib/services/create-image-service';\n\nexport type {ImageServiceType} from './services/create-image-source';\nexport {createImageSource} from './services/create-image-source';\n\n// Generic (Template URL) Services\n\nexport type {ImageServiceProps} from './lib/services/image-service';\nexport {ImageService} from './lib/services/image-service';\n\n// OGC Services\n\nexport {CSWService} from './services/ogc/csw-service';\nexport {WMSSource, WMSService} from './services/ogc/wms-service';\n\n// ArcGIS Services\n\nexport {getArcGISServices as _getArcGISServices} from './services/arcgis/arcgis-server';\nexport {ArcGISImageService as _ArcGISImageService} from './services/arcgis/arcgis-image-service';\n"],"mappings":"SAOQA,qBAAqB;AAAA,SAGrBC,eAAe;AAAA,SAGfC,gBAAgB;AAAA,SAIhBC,cAAc;AAAA,SASdC,qBAAqB;AAAA,SAGrBC,oBAAoB,IAAIC,qBAAqB;AAAA,SAG7CC,yBAAyB,IAAIC,0BAA0B;AAAA,SAavDC,qBAAqB,IAAIC,sBAAsB;AAAA,SAM/CC,SAAS,IAAIC,UAAU;AAK/B,SAAQC,WAAW,QAAO,0BAA0B;AAAC,SAK7CC,kBAAkB;AAAA,SAGlBC,iBAAiB;AAAA,SAKjBC,YAAY;AAAA,SAIZC,UAAU;AAAA,SACVC,SAAS,EAAEC,UAAU;AAAA,SAIrBC,iBAAiB,IAAIC,kBAAkB;AAAA,SACvCC,kBAAkB,IAAIC,mBAAmB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/wms",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0-beta.7",
4
4
  "description": "Framework-independent loaders for the WMS (Web Map Service) standard",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -51,13 +51,12 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@babel/runtime": "^7.3.1",
54
- "@loaders.gl/images": "4.0.0-beta.6",
55
- "@loaders.gl/loader-utils": "4.0.0-beta.6",
56
- "@loaders.gl/schema": "4.0.0-beta.6",
57
- "@loaders.gl/xml": "4.0.0-beta.6",
54
+ "@loaders.gl/images": "4.0.0-beta.7",
55
+ "@loaders.gl/loader-utils": "4.0.0-beta.7",
56
+ "@loaders.gl/schema": "4.0.0-beta.7",
57
+ "@loaders.gl/xml": "4.0.0-beta.7",
58
58
  "@turf/rewind": "^5.1.5",
59
- "deep-strict-equal": "^0.2.0",
60
- "lerc": "^4.0.1"
59
+ "deep-strict-equal": "^0.2.0"
61
60
  },
62
- "gitHead": "2840f605b7a551e2ffef5f960231d989a0414c50"
61
+ "gitHead": "5b6cab0ab5d73212cfa37fa5da6e25ad7ef83fe5"
63
62
  }
package/src/index.ts CHANGED
@@ -78,7 +78,3 @@ export {WMSSource, WMSService} from './services/ogc/wms-service';
78
78
 
79
79
  export {getArcGISServices as _getArcGISServices} from './services/arcgis/arcgis-server';
80
80
  export {ArcGISImageService as _ArcGISImageService} from './services/arcgis/arcgis-image-service';
81
-
82
- // LERC - Limited Error Raster Compression
83
- export type {LERCData} from './lib/parsers/lerc/lerc-types';
84
- export {LERCLoader} from './lerc-loader';
@@ -1,17 +0,0 @@
1
- import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils';
2
- import type { LERCData } from './lib/parsers/lerc/lerc-types';
3
- export type LERCLoaderOptions = LoaderOptions & {
4
- lerc?: {
5
- /** The number of bytes to skip in the input byte stream. A valid Lerc file is expected at that position. */
6
- inputOffset?: number;
7
- /** It is recommended to use the returned mask instead of setting this value. */
8
- noDataValue?: number;
9
- /** (ndepth LERC2 only) If true, returned depth values are pixel-interleaved. */
10
- returnInterleaved?: boolean;
11
- };
12
- };
13
- /**
14
- * Loader for the LERC raster format
15
- */
16
- export declare const LERCLoader: LoaderWithParser<LERCData, never, LERCLoaderOptions>;
17
- //# sourceMappingURL=lerc-loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lerc-loader.d.ts","sourceRoot":"","sources":["../src/lerc-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAO5D,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE;QACL,4GAA4G;QAC5G,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gFAAgF;QAChF,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gFAAgF;QAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,iBAAiB,CAe3E,CAAC"}
@@ -1,21 +0,0 @@
1
- import * as Lerc from 'lerc';
2
- const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
3
- export const LERCLoader = {
4
- id: 'lerc',
5
- name: 'LERC',
6
- module: 'wms',
7
- version: VERSION,
8
- worker: false,
9
- extensions: ['lrc', 'lerc', 'lerc2', 'lerc1'],
10
- mimeTypes: ['application/octet-stream'],
11
- options: {
12
- wms: {}
13
- },
14
- parse: async (arrayBuffer, options) => parseLERC(arrayBuffer, options)
15
- };
16
- async function parseLERC(arrayBuffer, options) {
17
- await Lerc.load();
18
- const pixelBlock = Lerc.decode(arrayBuffer, options === null || options === void 0 ? void 0 : options.lerc);
19
- return pixelBlock;
20
- }
21
- //# sourceMappingURL=lerc-loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lerc-loader.js","names":["Lerc","VERSION","__VERSION__","LERCLoader","id","name","module","version","worker","extensions","mimeTypes","options","wms","parse","arrayBuffer","parseLERC","load","pixelBlock","decode","lerc"],"sources":["../src/lerc-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {LERCData} from './lib/parsers/lerc/lerc-types';\nimport * as Lerc from 'lerc';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type LERCLoaderOptions = LoaderOptions & {\n lerc?: {\n /**\tThe number of bytes to skip in the input byte stream. A valid Lerc file is expected at that position. */\n inputOffset?: number;\n /**\tIt is recommended to use the returned mask instead of setting this value. */\n noDataValue?: number;\n /**\t(ndepth LERC2 only) If true, returned depth values are pixel-interleaved. */\n returnInterleaved?: boolean;\n };\n};\n\n/**\n * Loader for the LERC raster format\n */\nexport const LERCLoader: LoaderWithParser<LERCData, never, LERCLoaderOptions> = {\n id: 'lerc',\n name: 'LERC',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['lrc', 'lerc', 'lerc2', 'lerc1'],\n mimeTypes: ['application/octet-stream'],\n // test: ?,\n options: {\n wms: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions) =>\n parseLERC(arrayBuffer, options)\n};\n\nasync function parseLERC(arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions): Promise<LERCData> {\n // Load the WASM library\n await Lerc.load();\n // Perform the decode\n const pixelBlock = Lerc.decode(arrayBuffer, options?.lerc);\n return pixelBlock;\n}\n"],"mappings":"AAIA,OAAO,KAAKA,IAAI,MAAM,MAAM;AAI5B,MAAMC,OAAO,GAAG,OAAOC,WAAW,KAAK,WAAW,GAAGA,WAAW,GAAG,QAAQ;AAgB3E,OAAO,MAAMC,UAAgE,GAAG;EAC9EC,EAAE,EAAE,MAAM;EACVC,IAAI,EAAE,MAAM;EAEZC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEN,OAAO;EAChBO,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;EAC7CC,SAAS,EAAE,CAAC,0BAA0B,CAAC;EAEvCC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK,EAAE,MAAAA,CAAOC,WAAwB,EAAEH,OAA2B,KACjEI,SAAS,CAACD,WAAW,EAAEH,OAAO;AAClC,CAAC;AAED,eAAeI,SAASA,CAACD,WAAwB,EAAEH,OAA2B,EAAqB;EAEjG,MAAMX,IAAI,CAACgB,IAAI,CAAC,CAAC;EAEjB,MAAMC,UAAU,GAAGjB,IAAI,CAACkB,MAAM,CAACJ,WAAW,EAAEH,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEQ,IAAI,CAAC;EAC1D,OAAOF,UAAU;AACnB"}
@@ -1,30 +0,0 @@
1
- /** Data returned by LERC loader */
2
- export type LERCData = {
3
- /** Width of decoded image */
4
- width: number;
5
- /** Height of decoded image */
6
- height: number;
7
- /** The type of pixels represented in the output */
8
- pixelType: LercPixelType;
9
- /** [statistics_band1, statistics_band2, …] Each element is a statistics object representing min and max values */
10
- statistics: BandStats[];
11
- /** [band1, band2, …] Each band is a typed array of width * height * depthCount */
12
- pixels: TypedArray[];
13
- /** Typed array with a size of width*height, or null if all pixels are valid */
14
- mask: Uint8Array;
15
- /** Depth count */
16
- depthCount: number;
17
- /** array [band1_mask, band2_mask, …] Each band is a Uint8Array of width * height * depthCount */
18
- bandMasks?: Uint8Array[];
19
- };
20
- export type LercPixelType = 'S8' | 'U8' | 'S16' | 'U16' | 'S32' | 'U32' | 'F32' | 'F64';
21
- export interface BandStats {
22
- minValue: number;
23
- maxValue: number;
24
- depthStats?: {
25
- minValues: Float64Array;
26
- maxValues: Float64Array;
27
- };
28
- }
29
- export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
30
- //# sourceMappingURL=lerc-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lerc-types.d.ts","sourceRoot":"","sources":["../../../../src/lib/parsers/lerc/lerc-types.ts"],"names":[],"mappings":"AAEA,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG;IACrB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,SAAS,EAAE,aAAa,CAAC;IACzB,mHAAmH;IACnH,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,kFAAkF;IAClF,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,+EAA+E;IAC/E,IAAI,EAAE,UAAU,CAAC;IACjB,mBAAmB;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAExF,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,SAAS,EAAE,YAAY,CAAC;QACxB,SAAS,EAAE,YAAY,CAAC;KACzB,CAAC;CACH;AAED,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,UAAU,GACV,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,YAAY,GACZ,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lerc-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lerc-types.js","names":[],"sources":["../../../../src/lib/parsers/lerc/lerc-types.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n/** Data returned by LERC loader */\nexport type LERCData = {\n /**\tWidth of decoded image */\n width: number;\n /**\tHeight of decoded image */\n height: number;\n /**\tThe type of pixels represented in the output */\n pixelType: LercPixelType;\n /**\t[statistics_band1, statistics_band2, …] Each element is a statistics object representing min and max values */\n statistics: BandStats[];\n /**\t[band1, band2, …] Each band is a typed array of width * height * depthCount */\n pixels: TypedArray[];\n /**\tTyped array with a size of width*height, or null if all pixels are valid */\n mask: Uint8Array;\n /**\tDepth count */\n depthCount: number;\n /**\tarray\t[band1_mask, band2_mask, …] Each band is a Uint8Array of width * height * depthCount */\n bandMasks?: Uint8Array[];\n};\n\nexport type LercPixelType = 'S8' | 'U8' | 'S16' | 'U16' | 'S32' | 'U32' | 'F32' | 'F64';\n\nexport interface BandStats {\n minValue: number;\n maxValue: number;\n depthStats?: {\n minValues: Float64Array;\n maxValues: Float64Array;\n };\n}\n\nexport type TypedArray =\n | Int8Array\n | Uint8Array\n | Uint8ClampedArray\n | Int16Array\n | Uint16Array\n | Int32Array\n | Uint32Array\n | Float32Array\n | Float64Array;\n"],"mappings":""}
@@ -1,48 +0,0 @@
1
- // loaders.gl, MIT license
2
-
3
- import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';
4
- import type {LERCData} from './lib/parsers/lerc/lerc-types';
5
- import * as Lerc from 'lerc';
6
-
7
- // __VERSION__ is injected by babel-plugin-version-inline
8
- // @ts-ignore TS2304: Cannot find name '__VERSION__'.
9
- const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
10
-
11
- export type LERCLoaderOptions = LoaderOptions & {
12
- lerc?: {
13
- /** The number of bytes to skip in the input byte stream. A valid Lerc file is expected at that position. */
14
- inputOffset?: number;
15
- /** It is recommended to use the returned mask instead of setting this value. */
16
- noDataValue?: number;
17
- /** (ndepth LERC2 only) If true, returned depth values are pixel-interleaved. */
18
- returnInterleaved?: boolean;
19
- };
20
- };
21
-
22
- /**
23
- * Loader for the LERC raster format
24
- */
25
- export const LERCLoader: LoaderWithParser<LERCData, never, LERCLoaderOptions> = {
26
- id: 'lerc',
27
- name: 'LERC',
28
-
29
- module: 'wms',
30
- version: VERSION,
31
- worker: false,
32
- extensions: ['lrc', 'lerc', 'lerc2', 'lerc1'],
33
- mimeTypes: ['application/octet-stream'],
34
- // test: ?,
35
- options: {
36
- wms: {}
37
- },
38
- parse: async (arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions) =>
39
- parseLERC(arrayBuffer, options)
40
- };
41
-
42
- async function parseLERC(arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions): Promise<LERCData> {
43
- // Load the WASM library
44
- await Lerc.load();
45
- // Perform the decode
46
- const pixelBlock = Lerc.decode(arrayBuffer, options?.lerc);
47
- return pixelBlock;
48
- }
@@ -1,43 +0,0 @@
1
- // loaders.gl, MIT license
2
-
3
- /** Data returned by LERC loader */
4
- export type LERCData = {
5
- /** Width of decoded image */
6
- width: number;
7
- /** Height of decoded image */
8
- height: number;
9
- /** The type of pixels represented in the output */
10
- pixelType: LercPixelType;
11
- /** [statistics_band1, statistics_band2, …] Each element is a statistics object representing min and max values */
12
- statistics: BandStats[];
13
- /** [band1, band2, …] Each band is a typed array of width * height * depthCount */
14
- pixels: TypedArray[];
15
- /** Typed array with a size of width*height, or null if all pixels are valid */
16
- mask: Uint8Array;
17
- /** Depth count */
18
- depthCount: number;
19
- /** array [band1_mask, band2_mask, …] Each band is a Uint8Array of width * height * depthCount */
20
- bandMasks?: Uint8Array[];
21
- };
22
-
23
- export type LercPixelType = 'S8' | 'U8' | 'S16' | 'U16' | 'S32' | 'U32' | 'F32' | 'F64';
24
-
25
- export interface BandStats {
26
- minValue: number;
27
- maxValue: number;
28
- depthStats?: {
29
- minValues: Float64Array;
30
- maxValues: Float64Array;
31
- };
32
- }
33
-
34
- export type TypedArray =
35
- | Int8Array
36
- | Uint8Array
37
- | Uint8ClampedArray
38
- | Int16Array
39
- | Uint16Array
40
- | Int32Array
41
- | Uint32Array
42
- | Float32Array
43
- | Float64Array;