Class Geometry
Geometry is the root class of the Geometry Object Model hierarchy.
Geometry is an abstract (non-instantiable) class.
Inheritance
System.Object
Geometry
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Mapsui.Geometries.dll
Syntax
public abstract class Geometry : IGeometry, IEquatable<Geometry>
Properties
|
Improve this Doc
View Source
BoundingBox
Declaration
public abstract 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
public Geometry Envelope { get; }
Property Value
See Also
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
public abstract 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
public abstract double Distance(Point point)
Parameters
Type |
Name |
Description |
Point |
point |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Equals(Geometry)
Declaration
public abstract bool Equals(Geometry geom)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GeomFromText(String)
Creates a Geometry based on a WellKnownText string
Declaration
public static Geometry GeomFromText(string wkt)
Parameters
Type |
Name |
Description |
System.String |
wkt |
Well-known Text
|
Returns
|
Improve this Doc
View Source
GeomFromWKB(Byte[])
Creates a Geometry based on a WellKnownBinary byte array
Declaration
public static Geometry GeomFromWKB(byte[] wkb)
Parameters
Type |
Name |
Description |
System.Byte[] |
wkb |
Well-known Binary
|
Returns
|
Improve this Doc
View Source
GetBoundingBox()
Declaration
[Obsolete("Use the BoundingBox field instead")]
public BoundingBox GetBoundingBox()
Returns
|
Improve this Doc
View Source
GetHashCode()
Serves as a hash function for a particular type. GetHashCode() is suitable for use
in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
A hash code for the current GetHashCode().
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
IsEmpty()
Returns 'true' if this Geometry is the empty geometry . If true, then this
Geometry represents the empty point set, Ø, for the coordinate space.
Declaration
public abstract bool IsEmpty()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToString()
Returns a WellKnownText representation of the Geometry
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
Well-known text
|
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>
Extension Methods