API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class WKTFormat

Package | org.openscales.core.format
Class | public class WKTFormat
Inheritance | WKTFormat Format

Read/Write WKT.

Public Properties

| Property | Defined by
--- | --- | ---
|  | extract : Object | WKTFormat
|  | parse : Object | WKTFormat

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _externalProj : ProjProjection = null | Format
|  | _internalProj : ProjProjection = null | Format

Public Methods

| Method | Defined by
--- | --- | ---
|  | WKTFormat() Create a new parser for WKT | WKTFormat
|  | read(wkt:Object):Object Deserialize a WKT string and return a vector feature or an array of vector features | WKTFormat
|  | write(features:Object):Object Serialize a feature or array of features into a WKT string. | WKTFormat

Property detail

extract | property

`public var extract:Object`

parse | property |

`public var parse:Object`
Constructor detail

WKTFormat | () | constructor

`public function WKTFormat()`

Create a new parser for WKT

Method detail

read | () | method

`public override function read(wkt:Object):Object`

Deserialize a WKT string and return a vector feature or an array of vector features

Parameters

| `wkt:Object` — A WKT string

Returns

| `Object` — A feature or array of features for GEOMETRYCOLLECTION WKT.

write | () | method |

`public override function write(features:Object):Object`

Serialize a feature or array of features into a WKT string.

Parameters

| `features:Object` — A feature or array of features

Returns

| `Object` — The WKT string representation of the input geometries