Provides GeoJSON exporter functions.
The following renderables can be exported:
- WorldWind.Placemark
- WorldWind.SurfacePolyline
- WorldWind.SurfacePolygon
- WorldWind.SurfaceEllipse
- WorldWind.SurfaceRectangle
- WorldWind.Path
- WorldWind.Polygon
Methods
(static) exportLayer(layer) → {String}
Exports a Layer in GeoJSON format of type GeometryCollection.
Parameters:
Name | Type | Description |
---|---|---|
layer |
Layer | The layer to export. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Throws:
-
If the specified argument is null or undefined.
- Type
- ArgumentError
Returns:
GeoJSON format.
- Type
- String