WktParserHelper
Kind: global class
new WktParserHelper()
WktParserHelper class
WktParserHelper.convertPolygonToWK(GeoJSON, [type]) ⇒ string
| Buffer
Converts GeoJSON to Wkt or Wkb
Kind: static method of WktParserHelper
Returns: string
| Buffer
- WKT or WKT
Param | Type | Default | Description |
---|
GeoJSON | object | | GeoJSON to convert to WKT or WKB |
[type] | 'wkt' | 'wkb' | 'wkt' | |
WktParserHelper.parseFromWK(item) ⇒ object
Parses from WKT or WKB
Kind: static method of WktParserHelper
Returns: object
- GeoJSON
Param | Type | Description |
---|
item | string | Buffer | WKT or WKB to convert to GeoJSON |