Click or drag to resize

LineString Constructor (String)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Construct a LineString from WKT.

Namespace:  Telogis.GeoBase.Geometry
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public LineString(
	string wkt
)

Parameters

wkt
Type: SystemString
Well-known text (WKT) containing polygon geometry and, optionally, a value indicating a z level (that is, 'x y' without a Z level, or 'x y z' with).
Examples
C#
// Create a LineString from a WKT string
// -- Note that WKT uses 'x y' coordinates, reversing the values of a LatLon.
Telogis.GeoBase.Geometry.LineString newLineFromWKT = new Telogis.GeoBase.Geometry.LineString(
    "LINESTRING(-117.917855 33.67836,-117.875393 33.65718,-117.917845 33.640147)");
See Also