parquetUtils

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.

See also

Method Overview

Name Return Type Summary Object

Retrieves information about a ParquetLayer from the first parquet file in the specified URLs array.

parquetUtils

Method Details

getParquetLayerInfo

Method
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
urls String[]

An array of URLs pointing to parquet files. At least one url must be provided.

options Object
optional

An object specifying additional options. See the object specification table below for the properties of this object.

Specification
customParameters Object
optional

A list of key-value pairs of parameters to append to the url.

optional

An 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);

Type Definitions

ParquetLayerInfo

Type Definition
ParquetLayerInfo

Contains an information inferred from the parquet files.

Properties

A collection of URLs pointing to the parquet files.

fields Field[]
optional

The fields derived from the parquet files.

optional

The encoding format used to store geometries in the parquet files.

geometryType String
optional

The geometry type of the features in the layer.

Possible Values:"point"|"polygon"|"polyline"|"multipoint"

objectIdField String
optional

The name of the objectId field.

spatialReference SpatialReference
optional

The spatial reference of the layer.

See also

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.