gis-tools-ts - v0.6.0
    Preparing search index...

    Function toFlatGeometry

    • Convert a GeoJSON Vector Feature to a GeoJSON Feature

      Type Parameters

      • M = Record<string, unknown>
      • D extends Properties = Properties
      • P extends Properties = Properties
      • G extends VectorGeometry<D> = VectorGeometry<D>

      Parameters

      • data: VectorFeatures<M, D, P, G>

        GeoJSON Vector Feature

      • OptionalbuildBBox: boolean

        optional - build a bbox for the feature if desired

      Returns Feature<M, D, P, Geometry<D>>

      • GeoJson Feature