-
<static> this.fromObject(obj) → {Wkt.Wkt}
-
Sets internal geometry (components) from framework geometry (e.g.
Google Polygon objects or google.maps.Polygon).
Parameters:
Name |
Type |
Description |
obj |
Object
|
The framework-dependent geometry representation |
- Source:
Returns:
The object itself
-
Type
-
Wkt.Wkt
-
<static> this.isCollection() → {Boolean}
-
Returns true if the internal geometry is a collection of geometries.
- Source:
Returns:
Returns true when it is a collection
-
Type
-
Boolean
-
<static> this.read(wkt) → {Array}
-
Reads a WKT string, validating and incorporating it.
Parameters:
Name |
Type |
Description |
wkt |
String
|
A WKT string |
- Source:
Returns:
An Array of internal geometry objects
-
Type
-
Array
-
<static> this.sameCoords(a, b) → {Boolean}
-
Compares two x,y coordinates for equality.
Parameters:
Name |
Type |
Description |
a |
Object
|
An object with x and y properties |
b |
Object
|
An object with x and y properties |
- Source:
Returns:
-
Type
-
Boolean
-
<static> this.toObject(config) → {Object}
-
Creates external geometry objects based on a plug-in framework's
construction methods and available geometry classes.
Parameters:
Name |
Type |
Description |
config |
Object
|
An optional framework-dependent properties specification |
- Source:
Returns:
The framework-dependent geometry representation
-
Type
-
Object
-
<static> this.write(components) → {String}
-
Writes a WKT string.
Parameters:
Name |
Type |
Description |
components |
Array
|
An Array of internal geometry objects |
- Source:
Returns:
The corresponding WKT representation
-
Type
-
String