ESM: import * as parquetUtils from "@arcgis/core/layers/support/parquetUtils.js";
CDN: const parquetUtils = await $arcgis.import("@arcgis/core/layers/support/parquetUtils.js");
Object: @arcgis/core/layers/support/parquetUtils
Since: ArcGIS Maps SDK for JavaScript 4.33
Provides utility functions for the ParquetLayer.
Method Overview Method Details getParquetLayerInfo(urls, options){Promise<ParquetLayerInfo>}
Retrieves information about a ParquetLayer from the first parquet file in the specified URLs array. Throws an error if the parquet file is empty or if the information cannot be determined.
Parameters
Specification
An array of URLs pointing to parquet files. At least one url must be provided.
optionalAn object specifying additional options. See the object specification table below for the properties of this object.
Specification
optionalA list of key-value pairs of parameters to append to the url.
optionalAn AbortSignal to abort the executions of the remote method. If canceled, the promise will be rejected with an error named AbortError
. See also AbortController.
Returns
Type Description Promise<ParquetLayerInfo> A promise that resolves to the parquet layer information.Example
const urls = ["url-to-your-parquet-file.parquet"];
const info = await parquetUtils.getParquetLayerInfo(urls);
// create new parquet layer using the retrieved info
const layer = new ParquetLayer(info);
ParquetLayerInfo
Contains an information inferred from the parquet files.
A collection of URLs pointing to the parquet files.
optionalThe fields derived from the parquet files.
optionalThe encoding format used to store geometries in the parquet files.
optionalThe geometry type of the features in the layer.
Possible Values:"point"|"polygon"|"polyline"|"multipoint"
optionalThe name of the objectId field.
optionalThe spatial reference of the layer.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4