Class GeometryEditor.CoordinateSequenceOperation
A GeometryEditor.IGeometryEditorOperation which edits the CoordinateSequence of a Geometry.
Operates on Geometry subclasses which contains a single coordinate list.Implements
Inherited Members
Namespace: NetTopologySuite.Geometries.Utilities
Assembly: NetTopologySuite.dll
Syntax
public class GeometryEditor.CoordinateSequenceOperation : GeometryEditor.IGeometryEditorOperation
Constructors
| Edit this page View SourceCoordinateSequenceOperation()
Declaration
public CoordinateSequenceOperation()
CoordinateSequenceOperation(Func<CoordinateSequence, Geometry, CoordinateSequence>)
Declaration
public CoordinateSequenceOperation(Func<CoordinateSequence, Geometry, CoordinateSequence> editSequence)
Parameters
Type | Name | Description |
---|---|---|
Func<CoordinateSequence, Geometry, CoordinateSequence> | editSequence |
Properties
| Edit this page View SourceEditSequence
Declaration
protected Func<CoordinateSequence, Geometry, CoordinateSequence> EditSequence { get; set; }
Property Value
Type | Description |
---|---|
Func<CoordinateSequence, Geometry, CoordinateSequence> | An edited coordinate sequence (which may be the same as the input) |
Methods
| Edit this page View SourceEdit(Geometry, GeometryFactory)
Edits a Geometry by returning a new Geometry with a modification.
The returned Geometry may be the input geometry itself.
It may be null
if the geometry is to be deleted.
Declaration
public Geometry Edit(Geometry geometry, GeometryFactory factory)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The Geometry to modify. |
GeometryFactory | factory | The factory with which to construct the modified Geometry (may be different to the factory of the input point). |
Returns
Type | Description |
---|---|
Geometry | A new Geometry which is a modification of the input Geometry. |