LineStringPoints Property |
Namespace: Telogis.GeoBase.Geometry
// Create LineString Telogis.GeoBase.Geometry.LineString newLine = new Telogis.GeoBase.Geometry.LineString(); // Set points newLine.Points = 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.582953,-117.740873) }; // Get points for (int i = 0; i < newLine.Points.Length; i++) { int n = i+1; Console.WriteLine("Point {0} of LineString: {1}", n, newLine.Points[i]); // Point 1 of LineString: 33.594096,-117.741204 // Point 2 of LineString: 33.594195,-117.726176 // Point 3 of LineString: 33.582902,-117.725361 // Point 4 of LineString: 33.582953,-117.740873 }