Class GeometryBase
The driver-side representation for a DSE geospatial type.
Assembly: Cassandra.dll
Syntax
[Serializable]
public abstract class GeometryBase : ISerializable
Properties
GeoCoordinates
Gets the coordinates property for GeoJSON serialization.
Declaration
protected abstract IEnumerable GeoCoordinates { get; }
Property Value
GeoJsonType
Gets the type name to be used for GeoJSON serialization.
Declaration
protected virtual string GeoJsonType { get; }
Property Value
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 |
IList<T> |
elements |
|
Func<T, T> |
itemCallback |
|
Returns
Type Parameters
CombineHashCode<T>(IEnumerable<T>)
Combines the hash code based on the value of items.
Declaration
protected int CombineHashCode<T>(IEnumerable<T> items)
Parameters
Returns
Type Parameters
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
ToGeoJson()
Returns the GeoJSON representation of the instance.
Declaration
public virtual string ToGeoJson()
Returns
Implements