Point

Hierarchy

  • Point
    • Point

Constructors

  • Returns Point

  • Parameters

    • point: Point

    Returns Point

  • Parameters

    • x: number
    • y: number

    Returns Point

  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Point

  • Parameters

    • x: number
    • y: number
    • z: number
    • m: number

    Returns Point

  • Parameters

    • hasZ: boolean
    • hasM: boolean
    • x: number
    • y: number

    Returns Point

Accessors

  • get geometryType(): GeometryType
  • Get the geometry type

    Returns

    geometry type

    Returns GeometryType

  • get hasM(): boolean
  • Does the geometry have m coordinates

    Returns

    true if has m coordinates

    Returns boolean

  • set hasM(hasM: boolean): void
  • Set if the geometry has m coordinates

    Parameters

    • hasM: boolean

      true if has m coordinates

    Returns void

  • get hasZ(): boolean
  • Does the geometry have z coordinates

    Returns

    true if has z coordinates

    Returns boolean

  • set hasZ(hasZ: boolean): void
  • Set if the geometry has z coordinates

    Parameters

    • hasZ: boolean

      true if has z coordinates

    Returns void

  • get is3D(): boolean
  • Does the geometry have z coordinates

    Returns

    true if has z coordinates

    See

    #hasZ()

    Returns boolean

  • get m(): number
  • Get m

    Returns

    m

    Returns number

  • set m(m: number): void
  • Set m

    Parameters

    • m: number

    Returns void

  • get x(): number
  • Get x

    Returns

    x

    Returns number

  • set x(x: number): void
  • Set y

    Parameters

    • x: number

    Returns void

  • get y(): number
  • Get y

    Returns

    y

    Returns number

  • set y(y: number): void
  • Set y

    Parameters

    • y: number

    Returns void

  • get z(): number
  • Get z

    Returns

    z

    Returns number

  • set z(z: number): void
  • Set z

    Parameters

    • z: number

    Returns void

Methods

  • Expand the envelope with the minimum bounding box for this Geometry

    Parameters

    • envelope: GeometryEnvelope

      geometry envelope to expand

    Returns void

  • Get the mathematical centroid point of a 2 dimensional representation of the Geometry (balancing point of a 2d cutout of the geometry). Only the x and y coordinate of the resulting point are calculated and populated. The resulting Point#getZ() and Point#getM() methods will always return null.

    Returns

    centroid point

    Returns Point

  • Get the geographic centroid point of a 2 dimensional representation of the degree unit Geometry. Only the x and y coordinate of the resulting point are calculated and populated. The resulting Point#getZ() and Point#getM() methods will always return null.

    Returns

    centroid point

    Returns Point

  • Get the inherent dimension (0, 1, or 2) for this Geometry

    Returns

    dimension

    Returns number

  • Get the minimum bounding box for this Geometry

    Returns

    geometry envelope

    Returns GeometryEnvelope

  • Get the pixel where the point fits into the bounds

    Returns

    pixel

    Parameters

    • width: number

      width

    • height: number

      height

    • bounds: Bounds

      bounds

    Returns Pixel

  • {@inheritDoc}

    Returns boolean

  • Does the geometry have m coordinates.

    Returns

    true if has m coordinates

    See

    #hasM()

    Returns boolean

  • {@inheritDoc}

    Returns boolean

  • Is in the provided unit type

    Returns

    true if in the unit

    Parameters

    • Optional unit: Unit

      unit

    Returns boolean

  • Set the latitude

    Parameters

    • latitude: number

      latitude

    Returns void

  • Set the longitude

    Parameters

    • longitude: number

      longitude

    Returns void

  • Update currently false hasZ and hasM values using the provided geometry

    Parameters

    • geometry: Geometry

      geometry

    Returns void

  • Create a point in degrees

    Returns

    point in degrees

    Parameters

    • longitude: number

      longitude in degrees

    • latitude: number

      latitude in degrees

    Returns Point

  • Create a point converting the degrees coordinate to meters

    Returns

    point in meters

    Parameters

    • longitude: number

      longitude in degrees

    • latitude: number

      latitude in degrees

    Returns Point

  • Determine if the geometries contain a M value

    Returns

    true if has m

    Parameters

    • geometries: Geometry[]

      list of geometries

    Returns boolean

  • Determine if the geometries contain a Z value

    Returns

    true if has z

    Parameters

    • geometries: Geometry[]

      list of geometries

    Returns boolean

  • Create a point in meters

    Returns

    point in meters

    Parameters

    • longitude: number

      longitude in meters

    • latitude: number

      latitude in meters

    Returns Point

  • Create a point converting the meters coordinate to degrees

    Returns

    point in degrees

    Parameters

    • longitude: number

      longitude in meters

    • latitude: number

      latitude in meters

    Returns Point

  • Create a point

    Returns

    point

    Parameters

    • longitude: number

      longitude

    • latitude: number

      latitude

    • Optional unit: Unit

      unit; if null, it will use the default degree unit

    Returns Point

  • Create a point from a coordinate in a unit to another unit

    Returns

    point in unit

    Parameters

    • fromUnit: Unit

      unit of provided coordinate

    • longitude: number

      longitude

    • latitude: number

      latitude

    • toUnit: Unit

      desired unit

    Returns Point

  • Create a point from a coordinate in an opposite unit to another unit

    Returns

    point in unit

    Parameters

    • longitude: number

      longitude

    • latitude: number

      latitude

    • unit: Unit

      desired unit

    Returns Point

Generated using TypeDoc