Class GeometryBase
The driver-side representation for a DSE geospatial type.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Geometry
Assembly: Dse.dll
Syntax
public abstract class GeometryBase
Properties
GeoCoordinates
Gets the coordinates property for GeoJSON serialization.
Declaration
protected abstract IEnumerable GeoCoordinates { get; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable |
GeoJsonType
Gets the type name to be used for GeoJSON serialization.
Declaration
protected virtual string GeoJsonType { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AsReadOnlyCollection<T>(IList<T>, Func<T, T>)
Checks for null items and returns a read-only collection with an array as underlying list.
Declaration
protected ReadOnlyCollection<T> AsReadOnlyCollection<T>(IList<T> elements, Func<T, T> itemCallback = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<T> | elements | |
System.Func<T, T> | itemCallback |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<T> |
Type Parameters
Name | Description |
---|---|
T |
CombineHashCode<T>(IEnumerable<T>)
Combines the hash code based on the value of items.
Declaration
protected int CombineHashCode<T>(IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items |
Returns
Type | Description |
---|---|
System.Int32 |
Type Parameters
Name | Description |
---|---|
T |
ToGeoJson()
Returns the GeoJSON representation of the instance.
Declaration
public virtual string ToGeoJson()
Returns
Type | Description |
---|---|
System.String |