Class InteriorPointLine
Computes a point in the interior of an linear point. Algorithm: Find an interior vertex which is closest to the centroid of the linestring. If there is no interior vertex, find the endpoint which is closest to the centroid.
Inherited Members
Namespace: NetTopologySuite.Algorithm
Assembly: NetTopologySuite.dll
Syntax
public class InteriorPointLine
Constructors
| Edit this page View SourceInteriorPointLine(Geometry)
Declaration
public InteriorPointLine(Geometry g)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g |
Properties
| Edit this page View SourceInteriorPoint
Declaration
public Coordinate InteriorPoint { get; }
Property Value
Type | Description |
---|---|
Coordinate |
Methods
| Edit this page View SourceGetInteriorPoint(Geometry)
Computes an interior point for the linear components of a Geometry.
Declaration
public static Coordinate GetInteriorPoint(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The geometry to compute. |
Returns
Type | Description |
---|---|
Coordinate | The computed interior point, or null if the geometry has no linear components. |