Geometry interface
Geometry class
Signature:export interface Geometry
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
Extent | Extent | Gets the extent of the geometry. |
Methods
Method | Description |
---|---|
AsGeoJSON() | Exports the geometry as GeoJSON |
AsWKT() | Exports the geometry as WKT |
Buffer(distance) | Buffer the geometry and returns the updated geometry |
GetLength() | Retrieve the length of the geometry |
Transform(target) | Transform the current geometry. The returned geometry is a copy of the current geometry object |
Transform(source, target) | Transform the current geometry. The returned geometry is a copy of the current geometry object |