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

    Function toS2

    • Convet a GeoJSON Feature to an S2Feature

      Type Parameters

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

      Parameters

      • data: Feature<M, D, P, Geometry<D>> | VectorFeature<M, D, P, VectorGeometry<D>>

        GeoJSON Feature

      • OptionalbuildBBox: boolean

        optional - build a bbox for the feature if desired

      Returns S2Feature<M, D, P, VectorGeometry<D>>[]

      • S2Feature