Class OffsetPointGenerator
Generates points offset by a given distance from both sides of the midpoint of all segments in a Geometry.
Inherited Members
Namespace: NetTopologySuite.Operation.Overlay.Validate
Assembly: NetTopologySuite.dll
Syntax
public class OffsetPointGenerator
Remarks
Can be used to generate probe points for determining whether a polygonal overlay result is incorrect.
The input geometry may have any orientation for its rings, but SetSidesToGenerate(bool, bool) is only meaningful if the orientation is known.
Constructors
| Edit this page View SourceOffsetPointGenerator(Geometry)
Declaration
public OffsetPointGenerator(Geometry g)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g |
Methods
| Edit this page View SourceGetPoints(double)
Gets the computed offset points.
Declaration
public List<Coordinate> GetPoints(double offsetDistance)
Parameters
| Type | Name | Description |
|---|---|---|
| double | offsetDistance |
Returns
| Type | Description |
|---|---|
| List<Coordinate> |
SetSidesToGenerate(bool, bool)
Set the sides on which to generate offset points.
Declaration
public void SetSidesToGenerate(bool doLeft, bool doRight)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | doLeft | |
| bool | doRight |