Interface IGeometryRef
Defines a geometry instance
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public interface IGeometryRef
Properties
|
Improve this Doc
View Source
Area
Gets the area of this instance
Declaration
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
IsEmpty
Gets whether this instance is empty
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSimple
Gets whether this entity is simple or not. Simple entities do not contain any points of self-tangency or self intersection.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsValid
Gets whether the coordinates given to construct the entity represent a valid Geometry
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Length
Gets the length of this instance
Declaration
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
AsText()
Gets the well-known text representation of this geometry
Declaration
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Contains(IGeometryRef)
Returns true if and only if no points of B lie in the exterior of A, and at least one point of the interior of B lies in the interior of A
Declaration
bool Contains(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ConvexHull()
Gets the minimum convex geometry that encloses all geometries within the set
Declaration
IGeometryRef ConvexHull()
Returns
|
Improve this Doc
View Source
Crosses(IGeometryRef)
Returns true if the supplied geometries have some, but not all, interior points in common
Declaration
bool Crosses(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Difference(IGeometryRef)
Returns a geometry that represents that part of geometry A that does not intersect with geometry B
Declaration
IGeometryRef Difference(IGeometryRef other)
Parameters
Returns
|
Improve this Doc
View Source
Disjoint(IGeometryRef)
Returns true if the Geometries do not "spatially intersect" - if they do not share any space together
Declaration
bool Disjoint(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(IGeometryRef)
Returns true if the given geometries represent the same geometry. Directionality is ignored
Declaration
bool Equals(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetCentroid(Boolean)
Gets the centroid of the geometry instance
Declaration
IPoint2D GetCentroid(bool envelope)
Parameters
Type |
Name |
Description |
System.Boolean |
envelope |
If true, will return the center of the geometry's envelope instead. This is faster for really complex geometries and you only require an approximate center (eg. A point to zoom to)
|
Returns
|
Improve this Doc
View Source
GetEnvelope()
Gets the envelope of this geometry
Declaration
Returns
|
Improve this Doc
View Source
Intersection(IGeometryRef)
Returns a geometry that represents the point set intersection of this geometry and another
Declaration
IGeometryRef Intersection(IGeometryRef other)
Parameters
Returns
|
Improve this Doc
View Source
Intersects(IGeometryRef)
This is a convenience method. Given 2 geometries a and b, a.Intersects(b) is true if and only if a.Disjoint (b) is false.
Declaration
bool Intersects(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Overlaps(IGeometryRef)
Given 2 geometries a and b, a.Overlaps(b) is true if and only if the dimension of the interior of a equals the dimension of the interior of b equals the dimension of the intersection of the interior of a and the interior of b and the intersection of a and b is neither a nor b
Declaration
bool Overlaps(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SymmetricDifference(IGeometryRef)
Returns a geometry that represents the point set symmetric difference of this geometry with another
Declaration
IGeometryRef SymmetricDifference(IGeometryRef other)
Parameters
Returns
|
Improve this Doc
View Source
Touches(IGeometryRef)
Returns true if the geometries have at least one point in common, but their interiors do not intersect
Declaration
bool Touches(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Union(IGeometryRef)
Returns a geometry that represents the point set union of the Geometries
Declaration
IGeometryRef Union(IGeometryRef other)
Parameters
Returns
|
Improve this Doc
View Source
Within(IGeometryRef)
Returns true if the geometry A is completely inside geometry B
Declaration
bool Within(IGeometryRef other)
Parameters
Returns
Type |
Description |
System.Boolean |
|