Class PreparedPolygon
A prepared version for IPolygonal geometries. This class supports both Polygons and MultiPolygons.
This class does not support MultiPolygons which are non-valid (e.g. with overlapping elements).
Instances of this class are thread-safe and immutable.Implements
Inherited Members
Namespace: NetTopologySuite.Geometries.Prepared
Assembly: NetTopologySuite.dll
Syntax
public class PreparedPolygon : BasicPreparedGeometry, IPreparedGeometry
Constructors
| Edit this page View SourcePreparedPolygon(IPolygonal)
Declaration
public PreparedPolygon(IPolygonal poly)
Parameters
| Type | Name | Description |
|---|---|---|
| IPolygonal | poly |
Properties
| Edit this page View SourceIntersectionFinder
Declaration
public FastSegmentSetIntersectionFinder IntersectionFinder { get; }
Property Value
| Type | Description |
|---|---|
| FastSegmentSetIntersectionFinder |
PointLocator
Declaration
public IPointOnGeometryLocator PointLocator { get; }
Property Value
| Type | Description |
|---|---|
| IPointOnGeometryLocator |
Methods
| Edit this page View SourceContains(Geometry)
Tests whether the base Geometry contains a given geometry.
Declaration
public override bool Contains(Geometry g)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g | The Geometry to test |
Returns
| Type | Description |
|---|---|
| bool | true if this Geometry contains the given Geometry |
Overrides
Remarks
Default implementation.
ContainsProperly(Geometry)
Tests whether the base Geometry properly contains a given geometry.
TheContainsProperly predicate has the following equivalent definitions:
In other words, if the test geometry has any interaction with the boundary of the target
geometry the result of ContainsProperly is false.
This is different semantics to the Contains(Geometry) predicate,
in which test geometries can intersect the target's boundary and still be contained.
a priori to be simply the original test geometry.
Declaration
public override bool ContainsProperly(Geometry g)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g | The geometry to test |
Returns
| Type | Description |
|---|---|
| bool | true if this geometry properly contains the given geometry |
Overrides
Remarks
Default implementation.
See Also
| Edit this page View SourceCovers(Geometry)
Tests whether the base Geometry covers a given geometry.
Declaration
public override bool Covers(Geometry g)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g | The geometry to test |
Returns
| Type | Description |
|---|---|
| bool | true if this geometry covers the given geometry |
Overrides
Remarks
Default implementation.
Intersects(Geometry)
Tests whether the base Geometry intersects a given geometry.
Declaration
public override bool Intersects(Geometry g)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g | The geometry to test |
Returns
| Type | Description |
|---|---|
| bool | true if this geometry intersects the given geometry |
Overrides
Remarks
Default implementation.