Table of Contents

Method GeometryFromText

Namespace
YndigoBlue.Velocity.Utils
Assembly
YndigoBlue.Velocity.dll

GeometryFromText(string)

Creates a planar geometry from Well-Known Text (WKT) representation with SRID 0.

public static Geometry GeometryFromText(string wkt)

Parameters

wkt string

The Well-Known Text string representing the geometry.

Returns

Geometry

A Geometry object with SRID set to 0.

Remarks

This method creates geometries for flat, Cartesian coordinate systems. The SRID (Spatial Reference Identifier) is set to 0, indicating an undefined or custom coordinate system.

GeometryFromText<T>(string)

Creates a strongly-typed planar geometry from Well-Known Text (WKT) representation.

public static T GeometryFromText<T>(string wkt) where T : Geometry

Parameters

wkt string

The Well-Known Text string representing the geometry.

Returns

T

A Geometry object of the specified type with SRID set to 0.

Type Parameters

T

The specific geometry type to return (Point, LineString, Polygon, etc.).

Remarks

This generic method allows retrieving a specific geometry type from the WKT string, providing type-safe access to geometry properties and methods specific to that geometry type.