Skip to main content

@mapgear/mapengine > Geometry

Geometry interface

Geometry class

Signature:
export interface Geometry 

Properties

PropertyModifiersTypeDescription
ExtentExtentGets the extent of the geometry.

Methods

MethodDescription
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