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

    Function bufferEnvelope

    • Create an axis-aligned envelope spatial filter centered on a point.

      This is a planar expansion in the input coordinate system's units. It is an envelope approximation, not a circular, geodesic, or topological geometry buffer. Use buffer from @honua/sdk-js/geometry when a true geometry buffer is required.

      Parameters

      • x: number

        Center x coordinate

      • y: number

        Center y coordinate

      • distance: number

        Half-width of the envelope in coordinate units

      • OptionalspatialReference: HonuaSpatialReference

        Input coordinate reference system; defaults to WGS84 (4326)

      Returns SpatialFilter

      // 0.5-degree bounding box around a point
      const req: QueryFeaturesRequest = {
      serviceId: "svc", layerId: 0,
      ...bufferEnvelope(-118.24, 34.05, 0.5),
      };