Function decodePbfQueryResponse

  • Decode an Esri FeatureCollectionPBuffer response into a JSON-compatible query response object.

    The returned object has the same shape as an f=json response: { objectIdFieldName, geometryType, spatialReference, fields, features, ... }

    Parameters

    • buffer: ArrayBuffer | Uint8Array

      The raw PBF bytes from a f=pbf response.

    Returns Record<string, unknown>

    A JSON-compatible query response object.