WktParserHelper
Kind: global class
new WktParserHelper()
WktParserHelper class
WktParserHelper.convertPolygonToWK()
Deprecated
Converts GeoJSON to Wkt or Wkb
Kind: static method of WktParserHelper
WktParserHelper.convertToWK(GeoJSON, [type]) ⇒ string
| Buffer
Converts GeoJSON to WKT or WKB
Kind: static method of WktParserHelper
Returns: string
| Buffer
- WKT or WKB
Param | Type | Default | Description |
---|
GeoJSON | Object | | GeoJSON to convert to WKT or WKB |
[type] | 'wkt' | 'wkb' | 'wkt' | |
WktParserHelper.parseFromWK(item, [asFeature], [properties]) ⇒ object
Parses from WKT or WKB
Kind: static method of WktParserHelper
Returns: object
- GeoJSON
Param | Type | Default | Description |
---|
item | string | Buffer | | WKT or WKB to convert to GeoJSON |
[asFeature] | boolean | false | |
[properties] | object | {} | Properties to embed resulting GeoJSON feature |
WktParserHelper.convertFeatureCollection(GeoJSON) ⇒ string
Converts GeoJSON FeatureCollection to WKT GEOMETRYCOLLECTION
Kind: static method of WktParserHelper
Returns: string
- WKT or WKT
Param | Type | Description |
---|
GeoJSON | Object | GeoJSON FeatureCollection to convert to WKT |