new SuperMap.Format.WKT(options)
Name | Type | Description |
---|---|---|
options |
Object |
The optional parameters.Its properties will be set to instance. Option specific configuration entries inherit from SuperMap.Format. |
Extends
Members
-
dataObject
-
When the keepData attribute is set to true, This is the string that is passed to the read operation to be parsed.
-
keepDataObject
-
Keep a reference to the data that is read recently (through the attribute). The default value is false
Methods
-
inherited destroy()
Format.js, line 36 -
Disposes the resource. The property that references resource is set to null.
-
extractGeometry(geometry){string}
WKT.js, line 333 -
Entry point to construct the WKT for a single Geometry object.
Name Type Description geometry
SuperMap.Geometry Returns:
Type Description string A WKT string of representing the geometry -
read(wkt){SuperMap.Feature.Vector|Array}
WKT.js, line 276 -
Deserialize a WKT string and return a vector feature or an array of vector features. Supports WKT for POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and GEOMETRYCOLLECTION.
Name Type Description wkt
string A WKT string
Returns:
Type Description SuperMap.Feature.Vector | Array A feature or array of features for GEOMETRYCOLLECTION WKT. -
write(features){string}
WKT.js, line 301 -
Serialize a feature or array of features into a WKT string.
Name Type Description features
SuperMap.Feature.Vector | Array.<SuperMap.Feature.Vector> A feature or array of features
Returns:
Type Description string The WKT string representation of the input geometries