Class: WktGeometryCollection

WktGeometryCollection()

new WktGeometryCollection()

This item can contain other geometries to be shown.
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

add(object)

It takes an object and adds it among those, it will render
Parameters:
Name Type Description
object WKTObject Object to be added to this collection.
Source:

addCoordinates()

Array containing latitude, longitude and potentially either altitude or LRS.
Overrides:
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.<Renderable>}

It is used to retrieve and create the shape or shapes associated.
Overrides:
Source:
Returns:
Array of renderables associated with given shape.
Type
Array.<Renderable>