Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CurvePolygon<T>

A planar surface defined by an exterior ring and zero or more interior ring. Each ring is defined by a Curve instance.

Type parameters

Hierarchy

Index

Constructors

constructor

Accessors

geometryType

hasM

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

    Returns boolean

    true if has m coordinates

  • Set if the geometry has m coordinates

    Parameters

    • hasM: boolean

      true if has m coordinates

    Returns void

    true if has m coordinates

hasZ

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

    Returns boolean

    true if has z coordinates

  • Set if the geometry has z coordinates

    Parameters

    • hasZ: boolean

      true if has z coordinates

    Returns void

    true if has z coordinates

is3D

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

    see

    #hasZ()

    Returns boolean

    true if has z coordinates

rings

  • get rings(): Array<T>
  • set rings(rings: Array<T>): void

Methods

addRing

  • addRing(ring: T): void

addRings

  • addRings(rings: Array<T>): void

copy

equals

expandEnvelope

getCentroid

  • 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 {@link Point#getZ()} and {@link Point#getM()} methods will always return null.

    Returns Point

    centroid point

getDegreesCentroid

  • getDegreesCentroid(): 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 {@link Point#getZ()} and {@link Point#getM()} methods will always return null.

    Returns Point

    centroid point

getDimension

  • getDimension(): number

getEnvelope

getExteriorRing

  • getExteriorRing(): T

getInteriorRing

  • getInteriorRing(n: number): T
  • Returns the Nth interior ring for this Polygon

    Parameters

    • n: number

      interior ring number

    Returns T

    interior ring

getRing

  • getRing(n: number): Curve
  • Returns the Nth ring where the exterior ring is at 0, interior rings begin at 1

    Parameters

    • n: number

      nth ring to return

    Returns Curve

    ring

isEmpty

  • isEmpty(): boolean

isMeasured

  • isMeasured(): boolean

isSimple

  • isSimple(): boolean

numInteriorRings

  • numInteriorRings(): number

numRings

  • numRings(): number
  • Get the number of rings including exterior and interior

    Returns number

    number of rings

updateZM

Static hasM

  • hasM(geometries: Array<Geometry>): boolean
  • Determine if the geometries contain a M value

    Parameters

    • geometries: Array<Geometry>

      list of geometries

    Returns boolean

    true if has m

Static hasZ

  • hasZ(geometries: Array<Geometry>): boolean
  • Determine if the geometries contain a Z value

    Parameters

    • geometries: Array<Geometry>

      list of geometries

    Returns boolean

    true if has z

Generated using TypeDoc