Click or drag to resize

LineStringIsLoop Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Returns true of this LineString forms a connected loop. A loop has at least 4 points, where the first and last points are equal.

Namespace:  Telogis.GeoBase.Geometry
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public bool IsLoop { get; }

Property Value

Type: Boolean
Examples
C#
// Create a LineString from an array of four points to form a closed loop 
// -- That is, with the same first and last points
Telogis.GeoBase.Geometry.LineString newLineConnected = new Telogis.GeoBase.Geometry.LineString(
    new Telogis.GeoBase.LatLon[] {
        new Telogis.GeoBase.LatLon(33.594096,-117.741204),
        new Telogis.GeoBase.LatLon(33.594195,-117.726176),
        new Telogis.GeoBase.LatLon(33.582902,-117.725361),
        new Telogis.GeoBase.LatLon(33.594096,-117.741204)}
);
Console.WriteLine("Is this a closed LineString? {0}", newLineConnected.IsLoop);
// 'Is this a closed LineString? True'
See Also