Interface IGeometry
Defines basic interface for a Geometry
Assembly: Mapsui.Geometries.dll
Syntax
public interface IGeometry
Properties
|
Improve this Doc
View Source
BoundingBox
Declaration
BoundingBox BoundingBox { get; }
Property Value
|
Improve this Doc
View Source
Envelope
The minimum bounding box for this Geometry, returned as a Geometry. The
polygon is defined by the corner points of the bounding box ((MINX, MINY), (MAXX, MINY), (MAXX,
MAXY), (MINX, MAXY), (MINX, MINY)).
Declaration
Geometry Envelope { get; }
Property Value
Methods
|
Improve this Doc
View Source
AsBinary()
Exports this Geometry to a specific well-known binary representation of Geometry.
Declaration
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
AsText()
Declaration
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Clone()
This method must be overridden using 'public new [derived_data_type] Clone()'
Declaration
Returns
Type |
Description |
Geometry |
Copy of Geometry
|
|
Improve this Doc
View Source
Contains(Point)
Declaration
bool Contains(Point point)
Parameters
Type |
Name |
Description |
Point |
point |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Distance(Point)
Returns the shortest distance between any two points in the two geometries
as calculated in the spatial reference system of this Geometry.
Declaration
double Distance(Point point)
Parameters
Type |
Name |
Description |
Point |
point |
Point to calculate distance to
|
Returns
Type |
Description |
System.Double |
Shortest distance between any two points in the two geometries
|
|
Improve this Doc
View Source
Equals(Geometry)
Declaration
bool Equals(Geometry geom)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetBoundingBox()
Declaration
[Obsolete("Use the BoundingBox field instead")]
BoundingBox GetBoundingBox()
Returns
|
Improve this Doc
View Source
IsEmpty()
If true, then this Geometry represents the empty point set, Ø, for the coordinate space.
Declaration
Returns
Type |
Description |
System.Boolean |
Returns 'true' if this Geometry is the empty geometry
|
|
Improve this Doc
View Source
ToString()
Returns a WellKnownText representation of the Geometry
Declaration
Returns
Type |
Description |
System.String |
Well-known text
|
Extension Methods