Click or drag to resize

LineStringPoints Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets/sets an array of LatLons.

Namespace:  Telogis.GeoBase.Geometry
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public LatLon[] Points { get; set; }

Property Value

Type: LatLon
Examples
C#
// 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
}
See Also