Class HonuaPlanarGeometryAnalyzer
NTS-backed planar geometry analysis helpers.
public static class HonuaPlanarGeometryAnalyzer
- Inheritance
-
HonuaPlanarGeometryAnalyzer
- Inherited Members
Methods
Buffer(Geometry, double, PlanarGeometryAnalysisOptions?)
Buffers a geometry with the NTS planar buffer operation.
public static Geometry Buffer(Geometry geometry, double distance, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to buffer.
distancedoubleThe buffer distance in the active analysis coordinate units.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- Geometry
The buffered geometry in the active analysis coordinate space.
Contains(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Determines whether one geometry contains another in planar coordinates.
public static bool Contains(Geometry container, Geometry candidate, PlanarGeometryAnalysisOptions? options = null)
Parameters
containerGeometryThe possible containing geometry.
candidateGeometryThe candidate contained geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- bool
True when the container contains the candidate.
Covers(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Determines whether one geometry covers another in planar coordinates.
public static bool Covers(Geometry container, Geometry candidate, PlanarGeometryAnalysisOptions? options = null)
Parameters
containerGeometryThe possible covering geometry.
candidateGeometryThe candidate covered geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- bool
True when the container covers the candidate.
FindNearestPoints(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Finds the nearest points between two geometries.
public static NearestGeometryPointPair FindNearestPoints(Geometry first, Geometry second, PlanarGeometryAnalysisOptions? options = null)
Parameters
firstGeometryThe first geometry.
secondGeometryThe second geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- NearestGeometryPointPair
The nearest point pair in the active analysis coordinate space.
FindNearestVertex(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Finds the nearest vertex in a geometry to a target geometry.
public static NearestGeometryVertex FindNearestVertex(Geometry geometry, Geometry target, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry whose vertices are searched.
targetGeometryThe target geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- NearestGeometryVertex
The nearest vertex in the active analysis coordinate space.
GetCentroid(Geometry, PlanarGeometryAnalysisOptions?)
Gets the planar centroid of a geometry.
public static Point GetCentroid(Geometry geometry, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to analyze.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- Point
The centroid point in the active analysis coordinate space.
GetEnvelope(Geometry, PlanarGeometryAnalysisOptions?)
Gets the envelope of a geometry.
public static Envelope GetEnvelope(Geometry geometry, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to analyze.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- Envelope
The envelope in the active analysis coordinate space.
GetEnvelopeGeometry(Geometry, PlanarGeometryAnalysisOptions?)
Gets the envelope geometry of a geometry.
public static Geometry GetEnvelopeGeometry(Geometry geometry, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to analyze.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- Geometry
The envelope geometry in the active analysis coordinate space.
Intersect(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Intersects two geometries with the NTS planar overlay operation.
public static Geometry Intersect(Geometry first, Geometry second, PlanarGeometryAnalysisOptions? options = null)
Parameters
firstGeometryThe first geometry.
secondGeometryThe second geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- Geometry
The intersection geometry in the active analysis coordinate space.
Intersects(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Determines whether two geometries intersect in planar coordinates.
public static bool Intersects(Geometry first, Geometry second, PlanarGeometryAnalysisOptions? options = null)
Parameters
firstGeometryThe first geometry.
secondGeometryThe second geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- bool
True when the geometries intersect.
MeasureArea(Geometry, PlanarGeometryAnalysisOptions?)
Measures the planar area of a geometry.
public static double MeasureArea(Geometry geometry, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to measure.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- double
The planar area in squared active analysis coordinate units.
MeasureDistance(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Measures the planar distance between two geometries.
public static double MeasureDistance(Geometry first, Geometry second, PlanarGeometryAnalysisOptions? options = null)
Parameters
firstGeometryThe first geometry.
secondGeometryThe second geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- double
The planar distance in the active analysis coordinate units.
MeasureLength(Geometry, PlanarGeometryAnalysisOptions?)
Measures the planar length of a geometry.
public static double MeasureLength(Geometry geometry, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to measure.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- double
The planar length in the active analysis coordinate units.
Overlaps(Geometry, Geometry, PlanarGeometryAnalysisOptions?)
Determines whether two geometries overlap in planar coordinates.
public static bool Overlaps(Geometry first, Geometry second, PlanarGeometryAnalysisOptions? options = null)
Parameters
firstGeometryThe first geometry.
secondGeometryThe second geometry.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- bool
True when the geometries overlap.
Simplify(Geometry, double, PlanarGeometryAnalysisOptions?)
Simplifies a geometry with NTS topology-preserving simplification.
public static Geometry Simplify(Geometry geometry, double distanceTolerance, PlanarGeometryAnalysisOptions? options = null)
Parameters
geometryGeometryThe geometry to simplify.
distanceTolerancedoubleThe simplification tolerance in the active analysis coordinate units.
optionsPlanarGeometryAnalysisOptionsOptional projection and coordinate policy.
Returns
- Geometry
The simplified geometry in the active analysis coordinate space.