Class LinearGeometryBuilder
Builds a linear geometry (LineString or MultiLineString) incrementally (point-by-point).
Inherited Members
Namespace: NetTopologySuite.LinearReferencing
Assembly: NetTopologySuite.dll
Syntax
public class LinearGeometryBuilderConstructors
| Edit this page View SourceLinearGeometryBuilder(GeometryFactory)
Creates an instance of this class.
Declaration
public LinearGeometryBuilder(GeometryFactory geomFact)Parameters
| Type | Name | Description | 
|---|---|---|
| GeometryFactory | geomFact | The geometry factory to use. | 
Properties
| Edit this page View SourceFixInvalidLines
Allows invalid lines to be fixed rather than causing Exceptions. An invalid line is one which has only one unique point.
Declaration
public bool FixInvalidLines { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
IgnoreInvalidLines
Allows invalid lines to be ignored rather than causing Exceptions. An invalid line is one which has only one unique point.
Declaration
public bool IgnoreInvalidLines { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
LastCoordinate
Declaration
public Coordinate LastCoordinate { get; }Property Value
| Type | Description | 
|---|---|
| Coordinate | 
Methods
| Edit this page View SourceAdd(Coordinate)
Adds a point to the current line.
Declaration
public void Add(Coordinate pt)Parameters
| Type | Name | Description | 
|---|---|---|
| Coordinate | pt | The Coordinate to add. | 
Add(Coordinate, bool)
Adds a point to the current line.
Declaration
public void Add(Coordinate pt, bool allowRepeatedPoints)Parameters
| Type | Name | Description | 
|---|---|---|
| Coordinate | pt | The Coordinate to add. | 
| bool | allowRepeatedPoints | If  | 
EndLine()
Terminate the current LineString.
Declaration
public void EndLine()GetGeometry()
Builds and returns the Geometry.
Declaration
public Geometry GetGeometry()Returns
| Type | Description | 
|---|---|
| Geometry |