Table of Contents

Class HonuaPlanarGeometryAnalyzer

Namespace
Honua.Sdk.Geometry
Assembly
Honua.Sdk.Geometry.dll

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

geometry Geometry

The geometry to buffer.

distance double

The buffer distance in the active analysis coordinate units.

options PlanarGeometryAnalysisOptions

Optional 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

container Geometry

The possible containing geometry.

candidate Geometry

The candidate contained geometry.

options PlanarGeometryAnalysisOptions

Optional 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

container Geometry

The possible covering geometry.

candidate Geometry

The candidate covered geometry.

options PlanarGeometryAnalysisOptions

Optional 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

first Geometry

The first geometry.

second Geometry

The second geometry.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry whose vertices are searched.

target Geometry

The target geometry.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry to analyze.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry to analyze.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry to analyze.

options PlanarGeometryAnalysisOptions

Optional 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

first Geometry

The first geometry.

second Geometry

The second geometry.

options PlanarGeometryAnalysisOptions

Optional 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

first Geometry

The first geometry.

second Geometry

The second geometry.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry to measure.

options PlanarGeometryAnalysisOptions

Optional 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

first Geometry

The first geometry.

second Geometry

The second geometry.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry to measure.

options PlanarGeometryAnalysisOptions

Optional 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

first Geometry

The first geometry.

second Geometry

The second geometry.

options PlanarGeometryAnalysisOptions

Optional 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

geometry Geometry

The geometry to simplify.

distanceTolerance double

The simplification tolerance in the active analysis coordinate units.

options PlanarGeometryAnalysisOptions

Optional projection and coordinate policy.

Returns

Geometry

The simplified geometry in the active analysis coordinate space.