Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "geometry/utilities"

Index

Variables

Const MINIMUM_BUFFERED_LINE_COORDINATE_LENGTH

MINIMUM_BUFFERED_LINE_COORDINATE_LENGTH: 2 = 2

Const MINIMUM_BUFFERED_POLYGON_COORDINATE_LENGTH

MINIMUM_BUFFERED_POLYGON_COORDINATE_LENGTH: 4 = 4

Const bboxMaxX

bboxMaxX: 2 = 2

Const bboxMaxY

bboxMaxY: 3 = 3

Const bboxMinX

bboxMinX: 0 = 0

Const bboxMinY

bboxMinY: 1 = 1

Const shapeDetector

shapeDetector: ShapeDetector = new ShapeDetector()

Functions

Const bboxToExtent

  • bboxToExtent(bbox: turf.BBox): Extent
  • Converts an arbitrary bbox value from GeoJSON to a 2D extent value

    Parameters

    • bbox: turf.BBox

      2D/3D GeoJSON bbox value

    Returns Extent

    Extent

cloneDeep

  • cloneDeep<T>(o: T): T

Const combineExtents

  • Calculates the combined 2D extent of an array of 2D extents

    Parameters

    • extentList: Extent[]

      array of extents if this is empty then [0, 0, 0, 0] is returned

    Returns Extent

    Extent

Const geoJSONToGeometryJSON

  • geoJSONToGeometryJSON(id: string, json: any): GeometryJSON
  • Creates a full GeometryJSON object from a Feature or Geometry GeoJSON object

    Parameters

    • id: string

      unique id for geometry

    • json: any

      GeoJSON object

    Returns GeometryJSON

    GeometryJSON

Const geoToExtent

Const getBufferPropOrDefault

Const makeBufferedGeo

  • Creates a buffered GeometryJSON object from a source GeometryJSON object using it's geometry and buffer values

    Parameters

    Returns GeometryJSON

    GeometryJSON with buffer applied

Const makeEmptyGeometry

  • Creates an empty GeometryJSON object

    Parameters

    • id: string

      unique id for geometry

    • shape: Shape

      geometry shape

    • Default value properties: object = {}

    Returns GeometryJSON

    GeometryJSON

Const makeGeometry

  • makeGeometry(id: string, geometryGeoJSON: any, color: string, shape: Shape, buffer?: number, bufferUnit?: LengthUnit, properties?: object): GeometryJSON
  • Creates a full GeometryJSON object from a GeoJSON Geometry object

    Parameters

    • id: string

      unique id for geometry

    • geometryGeoJSON: any

      GeoJSON Geometry object to extend

    • color: string

      CSS color for geometry

    • shape: Shape

      geometry shape

    • Default value buffer: number = 0
    • Default value bufferUnit: LengthUnit = METERS
    • Default value properties: object = {}

    Returns GeometryJSON

    GeometryJSON

Generated using TypeDoc