Class InteriorPointLine
- Namespace
- NetTopologySuite.Algorithm
- Assembly
- NetTopologySuite.dll
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.
public class InteriorPointLine
- Inheritance
-
InteriorPointLine
- Inherited Members
Constructors
InteriorPointLine(Geometry)
public InteriorPointLine(Geometry g)
Parameters
g
Geometry
Properties
InteriorPoint
public Coordinate InteriorPoint { get; }
Property Value
Methods
GetInteriorPoint(Geometry)
Computes an interior point for the linear components of a Geometry.
public static Coordinate GetInteriorPoint(Geometry geom)
Parameters
geom
GeometryThe geometry to compute.
Returns
- Coordinate
The computed interior point, or null if the geometry has no linear components.