Class madrona.Formats
Defined in: formats.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new Formats object.
|
Method Attributes | Method Name and Description |
---|---|
geojsonToKmlPlacemark(geojson_obj,)
Builds the kml placemark representation from a geojson encoded polygon
|
|
geojsonToWkt(geojson_obj,)
Builds the wkt polygon representation from a geojson polygon representation
|
|
innerKml(coords,)
Called from geojsonToKml
Builds the coordinate related kml from a geojson list of coordinates
|
|
kmlToWkt(shape)
|
|
wktPolyToKml(wkt)
|
Method Detail
geojsonToKmlPlacemark(geojson_obj,)
Builds the kml placemark representation from a geojson encoded polygon
- Parameters:
- {Geojson} geojson_obj,
- geojson representation of a polygon
geojsonToWkt(geojson_obj,)
Builds the wkt polygon representation from a geojson polygon representation
- Parameters:
- {Geojson} geojson_obj,
- geojson representation of a polygon
innerKml(coords,)
Called from geojsonToKml
Builds the coordinate related kml from a geojson list of coordinates
- Parameters:
- {List} coords,
- geojson list of coordinates
kmlToWkt(shape)
- Parameters:
- shape
wktPolyToKml(wkt)
- Parameters:
- wkt