LineStringIsLoop Property |
Namespace: Telogis.GeoBase.Geometry
// 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'