Class GeometryBase
The driver-side representation for a DSE geospatial type.
Implements
ISerializable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.Geometry
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
Type | Description |
---|---|
IEnumerable |
GeoJsonType
Gets the type name to be used for GeoJSON serialization.
Declaration
protected virtual string GeoJsonType { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|---|
IList<T> | elements | |
Func<T, T> | itemCallback |
Returns
Type | Description |
---|---|
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 |
---|---|---|
IEnumerable<T> | items |
Returns
Type | Description |
---|---|
int |
Type Parameters
Name | Description |
---|---|
T |
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
ToGeoJson()
Returns the GeoJSON representation of the instance.
Declaration
public virtual string ToGeoJson()
Returns
Type | Description |
---|---|
string |
Implements
System.Runtime.Serialization.ISerializable