Module: WktExporter

Provides WKT exporter functions. The following renderables can be exported:
  • WorldWind.Placemark
  • WorldWind.SurfaceCircle
  • WorldWind.SurfacePolyline
  • WorldWind.SurfacePolygon
  • WorldWind.SurfaceEllipse
  • WorldWind.SurfaceRectangle
  • WorldWind.SurfaceSector
  • WorldWind.Path
  • WorldWind.Polygon
Source:

Methods

(static) exportLayer(layer) → {String}

Exports a Layer in WKT format of type GeometryCollection.
Parameters:
Name Type Description
layer Layer The layer to export.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportPath(renderable) → {String}

Exports a Path in WKT format of type LineString.
Parameters:
Name Type Description
renderable SurfacePolyline The Path object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportPlacemark(renderable) → {String}

Exports a Placemark in WKT format of type Point.
Parameters:
Name Type Description
renderable Placemark The Placemark object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportPolygon(renderable) → {String}

Exports a Polygon in WKT format of type Polygon.
Parameters:
Name Type Description
renderable Polygon The Polygon object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportRenderable(renderable) → {String}

Exports a Renderable in WKT format.
Parameters:
Name Type Description
renderable Renderable The renderable to export.
Source:
Throws:
If the specified renderable is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportRenderables(renderables) → {String}

Exports a list of Renderable in WKT format of type GeometryCollection.
Parameters:
Name Type Description
renderables Array.<Renderable> The renderables to export.
Source:
Throws:
If the specified renderable is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportSurfaceCircle(renderable) → {String}

Exports a SurfaceCircle in WKT format of type Polygon.
Parameters:
Name Type Description
renderable SurfaceCircle The SurfaceCircle object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportSurfaceEllipse(renderable) → {String}

Exports a SurfaceEllipse in WKT format of type Polygon.
Parameters:
Name Type Description
renderable SurfaceEllipse The SurfaceEllipse object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportSurfacePolygon(renderable) → {String}

Exports a SurfacePolygon in WKT format of type Polygon.
Parameters:
Name Type Description
renderable SurfacePolygon The SurfacePolygon object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportSurfacePolyline(renderable) → {String}

Exports a SurfacePolyline in WKT format of type LineString.
Parameters:
Name Type Description
renderable SurfacePolyline The SurfacePolyline object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportSurfaceRectangle(renderable) → {String}

Exports a SurfaceRectangle in WKT format of type Polygon.
Parameters:
Name Type Description
renderable SurfaceRectangle The SurfaceRectangle object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String

(static) exportSurfaceSector(renderable) → {String}

Exports a SurfaceSector in WKT format of type Polygon.
Parameters:
Name Type Description
renderable SurfaceSector The SurfaceSector object.
Source:
Throws:
If the specified argument is null or undefined.
Type
ArgumentError
Returns:
WKT format.
Type
String