Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiPoint

The MultiPoint class is a type of GeometryObject representing a multipoint.

example


var multiPointGeometryObject = { type: 'MultiPoint', coordinates: [[-82.441, 29.200], [-82.441, 29.535], [-82.100, 29.535], [-82.100, 29.200]] }; var mpoint=new MultiPoint(multiPointGeometryObject);

Hierarchy

  • MultiPoint

Implements

Index

Constructors

constructor

  • Parameters

    Returns MultiPoint

  • Parameters

    • Optional geoJSON: GeometryObject

      is an optional GeometryObject to use for the coordinates property of this MultiPoint.

    Returns MultiPoint

  • Parameters

    • Optional geoJSON: GeometryObject

      is an optional GeometryObject to use for the coordinates property of this MultiPoint.

    Returns MultiPoint

Properties

bbox

  • get bbox(): number[]
  • Retrieves an array of numbers that represent the bounding box of this MultiPoint.

    Returns number[]

coordinates

coordinates: Position[] = []

The coordinates property is an array of Position.

Private terraPrimitive

Private turfFeature

  • Construct a Turf Feature from this MultiPoint.

    Returns Feature

    the [[turf.Feature]] of this MultiPoint.

type

  • get type(): string
  • The type property of a geometry as a string ("MultiPoint").

    Returns string

Methods

buffer

  • buffer(geometryMeasure: GeometryMeasure): GeometryObject
  • buffer(geometryMeasure: GeometryMeasure): GeometryObject
  • buffer(geometryMeasure: GeometryMeasure): GeometryObject
  • Buffers the geometry of the MultiPoint by the GeometryMeasure given as an input parameter.

    Parameters

    Returns GeometryObject

    a new GeometryObject

  • Buffers the geometry of the MultiPoint by the GeometryMeasure given as an input parameter.

    Parameters

    • geometryMeasure: GeometryMeasure

    Returns GeometryObject

    a new GeometryObject

  • Buffers the geometry of the MultiPoint by the GeometryMeasure given as an input parameter.

    Parameters

    • geometryMeasure: GeometryMeasure

    Returns GeometryObject

    a new GeometryObject

contains

  • contains(geometryObject: GeometryObject): boolean
  • contains(geometryObject: GeometryObject): boolean
  • contains(geometryObject: GeometryObject): boolean
  • See if this MultiPoint contains the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

  • See if this MultiPoint contains the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

  • See if this MultiPoint contains the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

convexHull

  • convexHull(): Polygon
  • convexHull(): Polygon
  • convexHull(): Polygon
  • Convex Hull is the Polygon stretched around this MultiPoint

    Returns Polygon

    a new Polygon

  • Convex Hull is the Polygon stretched around this MultiPoint

    Returns Polygon

    a new Polygon

  • Convex Hull is the Polygon stretched around this MultiPoint

    Returns Polygon

    a new Polygon

intersects

  • intersects(geometryObject: GeometryObject): boolean
  • intersects(geometryObject: GeometryObject): boolean
  • intersects(geometryObject: GeometryObject): boolean
  • See if this MultiPoint intersects the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

  • See if this MultiPoint intersects the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

  • See if this MultiPoint intersects the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

toGeographic

  • toGeographic(): MultiPoint
  • toGeographic(): MultiPoint
  • toGeographic(): MultiPoint
  • Convert this MultiPoint coordinates to Geographic (lat long) coordinates.

    Returns MultiPoint

    the MultiPoint with lat long coordinates.

  • Convert this MultiPoint coordinates to Geographic (lat long) coordinates.

    Returns MultiPoint

    the MultiPoint with lat long coordinates.

  • Convert this MultiPoint coordinates to Geographic (lat long) coordinates.

    Returns MultiPoint

    the MultiPoint with lat long coordinates.

toMercator

  • toMercator(): MultiPoint
  • toMercator(): MultiPoint
  • toMercator(): MultiPoint
  • Convert this MultiPoint coordinates to Web Mercator coordinates.

    Returns MultiPoint

    the MultiPoint with Web Mercator coordinates.

  • Convert this MultiPoint coordinates to Web Mercator coordinates.

    Returns MultiPoint

    the MultiPoint with Web Mercator coordinates.

  • Convert this MultiPoint coordinates to Web Mercator coordinates.

    Returns MultiPoint

    the MultiPoint with Web Mercator coordinates.

toWkt

  • toWkt(): string
  • toWkt(): string
  • toWkt(): string
  • Convert this MultiPoint to well-known text representation.

    Returns string

    the well-known text representation this MultiPoint.

  • Convert this MultiPoint to well-known text representation.

    Returns string

    the well-known text representation this MultiPoint.

  • Convert this MultiPoint to well-known text representation.

    Returns string

    the well-known text representation this MultiPoint.

within

  • within(geometryObject: GeometryObject): boolean
  • within(geometryObject: GeometryObject): boolean
  • within(geometryObject: GeometryObject): boolean
  • See if this MultiPoint is within the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

  • See if this MultiPoint is within the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

  • See if this MultiPoint is within the GeometryObject given as an input parameter.

    Parameters

    Returns boolean

    a boolean

Static createFromWkt

  • createFromWkt(wkt: string): MultiPoint
  • createFromWkt(wkt: string): MultiPoint
  • createFromWkt(wkt: string): MultiPoint
  • Static method for creating a MultiPoint from well-known text.

    Parameters

    • wkt: string

      is a string of well-known text representing a MultiPoint.

    Returns MultiPoint

    a MultiPoint parsed from the well-known text.

  • Static method for creating a MultiPoint from well-known text.

    Parameters

    • wkt: string

      is a string of well-known text representing a MultiPoint.

    Returns MultiPoint

    a MultiPoint parsed from the well-known text.

  • Static method for creating a MultiPoint from well-known text.

    Parameters

    • wkt: string

      is a string of well-known text representing a MultiPoint.

    Returns MultiPoint

    a MultiPoint parsed from the well-known text.