Click or drag to resize

LineStringAdd Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Add the given point to the end of the LineString.

Namespace:  Telogis.GeoBase.Geometry
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void Add(
	LatLon point
)

Parameters

point
Type: Telogis.GeoBaseLatLon
The point to add.
Examples
C#
// Create a LineString from an array of four LatLon points
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),
        new Telogis.GeoBase.LatLon(33.582953,-117.740873)}
);
// Add a new point to the end of the LineString
newLine.Add(new LatLon(33.588524, -117.733313));
See Also