Class HonuaWfsFeatureType

Per-feature-type WFS surface. Implements the wire methods that the canonical wfsSource translates onto, and the protocol escape-hatch methods that ship raw XML payloads back to callers.

Constructors

Properties

root: HonuaWfs
typeName: string

Methods

  • Build (but do not send) the URL the GET GetFeature request would use.

    Parameters

    • params: {
          bbox?: string;
          count?: number;
          filter?: string;
          outputFormat?: string;
          startIndex?: number;
      }
      • Optionalbbox?: string
      • Optionalcount?: number
      • Optionalfilter?: string
      • OptionaloutputFormat?: string
      • OptionalstartIndex?: number

    Returns string

  • Convenience: capabilities snapshot from the bound root.

    Parameters

    • Optionaloptions: {
          signal?: AbortSignal;
      }
      • Optionalsignal?: AbortSignal

    Returns Promise<WfsCapabilitiesSnapshot>

  • Issue a GetFeature request. Returns parsed JSON when the negotiated output format is JSON; otherwise returns the raw body as a string for downstream callers (the canonical surface throws in that case).

    Parameters

    • params: {
          bbox?: string;
          body?: string;
          count?: number;
          filter?: string;
          method?: "GET" | "POST";
          outputFormat?: string;
          propertyName?: string[];
          resultType?: "results" | "hits";
          signal?: AbortSignal;
          sortBy?: string;
          srsName?: string;
          startIndex?: number;
      }
      • Optionalbbox?: string
      • Optionalbody?: string
      • Optionalcount?: number
      • Optionalfilter?: string
      • Optionalmethod?: "GET" | "POST"
      • OptionaloutputFormat?: string
      • OptionalpropertyName?: string[]
      • OptionalresultType?: "results" | "hits"
      • Optionalsignal?: AbortSignal
      • OptionalsortBy?: string
      • OptionalsrsName?: string
      • OptionalstartIndex?: number

    Returns Promise<{
        contentType: string;
        data: unknown;
        kind: "json";
    } | {
        contentType: string;
        kind: "raw";
        text: string;
    }>

  • Issue a GetPropertyValue request. WFS-specific (returns raw XML), so the canonical surface only reaches it via protocol("wfs").

    Parameters

    • params: {
          count?: number;
          filter?: string;
          signal?: AbortSignal;
          startIndex?: number;
          valueReference: string;
      }
      • Optionalcount?: number
      • Optionalfilter?: string
      • Optionalsignal?: AbortSignal
      • OptionalstartIndex?: number
      • valueReference: string

    Returns Promise<{
        contentType: string;
        text: string;
    }>

  • Submit a <wfs:Transaction> POST body. Returns the parsed transaction summary; throws HonuaWfsExceptionError on <ows:ExceptionReport>.

    Parameters

    • params: {
          body: string;
          signal?: AbortSignal;
      }
      • body: string
      • Optionalsignal?: AbortSignal

    Returns Promise<WfsTransactionSummary>