Module: GeoJSONExporter

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

Methods

(static) exportLayer(layer) → {String}

Exports a Layer in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportPath(renderable) → {String}

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

(static) exportPlacemark(renderable) → {String}

Exports a Placemark in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportPolygon(renderable) → {String}

Exports a Polygon in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportRenderable(renderable) → {String}

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

(static) exportRenderables(renderables) → {String}

Exports a list of Renderable in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportSurfaceCircle(renderable) → {String}

Exports a SurfaceCircle in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportSurfaceEllipse(renderable) → {String}

Exports a SurfaceEllipse in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportSurfacePolygon(renderable) → {String}

Exports a SurfacePolygon in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportSurfacePolyline(renderable) → {String}

Exports a SurfacePolyline in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportSurfaceRectangle(renderable) → {String}

Exports a SurfaceRectangle in GeoJSON 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:
GeoJSON format.
Type
String

(static) exportSurfaceSector(renderable) → {String}

Exports a SurfaceSector in GeoJSON 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:
GeoJSON format.
Type
String