LineStringItem Property |
Namespace: Telogis.GeoBase.Geometry
// Create a LineString Telogis.GeoBase.Geometry.LineString newLine = 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)} ); // zero-based, so first item is '0' int n = 0; Console.WriteLine("First point is {0}", newLine[n]); n = 2; Console.WriteLine("Third point is {0}", newLine[n]); // First point is 33.594096,-117.741204 // Third point is 33.582902,-117.725361