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

    Function toVector

    • Convert a GeoJSON Feature to a GeoJSON Vector Feature

      Type Parameters

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

      Parameters

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

        GeoJSON Feature

      • OptionalbuildBBox: boolean

        optional - build a bbox for the feature if desired

      Returns VectorFeature<M, D, P, VectorGeometry<D>>

      • GeoJson Vector Feature