Class: WktPoint

WktPoint()

new WktPoint()

It represents Point
Source:

Extends

Members

coordinates :Array.<Position>|Array.<Location>

Type:
Inherited From:
Source:

options :Object

Options contains information relevant for parsing of this specific Object. Basically processed tokens, parsed coordinates and amounts of parntheses used to find out whether the object was already finished.
Type:
  • Object
Inherited From:
Source:

type :WKTType

Type of this object.
Type:
  • WKTType
Inherited From:
Source:

Methods

(static) placemark(coordinates) → {Placemark}

Default Placemark implementation for the Point and MultiPoint.
Parameters:
Name Type Description
coordinates Location | Position Location or Position for the Placemark
Source:
Returns:
Placemark to be displayed on the map.
Type
Placemark

addCoordinates()

Array containing latitude, longitude and potentially either altitude or LRS.
Inherited From:
Source:

(protected) commaWithoutCoordinates(options)

Used by Multi objects to delineate the internal objects. This is default implementation doing nothing.
Parameters:
Name Type Description
options Object Options specifying current status of the implementation
Properties
Name Type Description
coordinates Array.<Number> Passed in coordinates
leftParenthesis Number Amount of the left parenthesis
rightParenthesis Number Amount of the right parenthesis
tokens Array.<Object> Processed tokens.
Inherited From:
Source:

handleToken(token)

Token handling is delegated to the objects.
Parameters:
Name Type Description
token Object It contains type and value.
Inherited From:
Source:

isFinished() → {Boolean}

It returns true when the object is finished.
Inherited From:
Source:
Returns:
True if the parentheses are closed, false otherwise
Type
Boolean

set3d()

It sets the information that this object is actually represented in 3D
Inherited From:
Source:

setLrs()

It sets the information that the object contain information about LRS offset.
Inherited From:
Source:

setOptions(text, currentObject)

It sets the options of the current object. This means setting up the 3D and the linear space.
Parameters:
Name Type Description
text String Specific text used as options.
currentObject WktObject Object to apply the options to.
Inherited From:
Source:

shapes() → {Array.<Placemark>}

It returns Placemark representing this point.
Overrides:
Source:
Returns:
Type
Array.<Placemark>