Function ogcRecordsSource

  • Metadata-catalog Source adapter for OGC API Records. The canonical query family searches one catalog (locator.collectionId, the Records collection/catalog id) and returns record documents as typed features. Records-specific search affordances (q, type, externalIds, profile, raw HTML/JSON access) live on Source.protocol("ogc-records").

    Type Parameters

    • T

    Parameters

    Returns CapabilityAwareSource<T>

    const records = dataset.source("catalog")!;
    const result = await records.query({ where: "type = 'dataset' AND q = 'parcels'" });