@honua/sdk-js
    Preparing search index...

    Function openExport

    • Experimental

      Open an Export from its STAC collection document (Portolan profile). Public Exports need no sign-in. headers apply to the document request only; for signed-in files, pass a fetch to publicationSource that adds them. Any Portolan collection opens for display and queries; identity lookups and selection need a Honua Export, whose publication view is then set.

      Files are read by HTTP range requests at the file:size the document records, so their host needs to answer a ranged GET with 206 but not a HEAD request.

      Parameters

      Returns Promise<HonuaExport>

      import { openExport, publicationSource } from "@honua/sdk-js/export";

      const parcels = await openExport("https://data.example.gov/exports/parcels/v3/collection.json");
      if (parcels.display) {
      map.addSource("parcels", { type: "vector", url: `pmtiles://${parcels.display.pmtilesUrl}`, promoteId: parcels.display.promoteId });
      }
      if (parcels.publication) {
      const { result } = await publicationSource(parcels.publication).lookup("234030888");
      }