7 namespace Deveel.Data.Spatial {
26 var result = FromWkb(input);
39 if (geometry == null || geometry.
IsNull)
47 var result = FromWkt(input);
60 if (geometry == null || geometry.
IsNull)
76 var envelope = Envelope(input);
90 var result = Distance(input, otherGeometry);
95 if (geometry == null || geometry.
IsNull)
102 if (geometry == null || geometry.
IsNull)
111 var result = Contains(g1, g2);
117 var result = Area(input);
122 if (geometry == null || geometry.
IsNull)
125 return geometry.
Area;
130 var result = input.Boundary;
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static DataObject FromWkt(IRequest context, DataObject source)
static SqlGeometry FromWkb(SqlBinary source)
The system uses instances of this interface to resolve routines given a user invocation.
static SqlBinary ToWkb(SqlGeometry geometry)
bool IsNull
Gets a value that indicates if this object is materialized as null.
static DataObject Binary(SqlBinary binary)
static SpatialType Geometry(int srid)
static DataObject Contains(DataObject geometry, DataObject other)
static DataObject ToWkb(DataObject geometry)
static bool TryParse(string text, out SqlGeometry geometry, out Exception error)
Implements a BINARY object that handles a limited number of bytes, not exceding MaxLength.
SqlBoolean Contains(SqlGeometry other)
static DataObject Number(SqlNumber value)
static DataObject Null(SqlType type)
static DataObject FromWkb(DataObject source)
SqlNumber Distance(SqlGeometry geometry)
ISqlObject Value
Gets the underlined value that is handled.
static DataObject String(string s)
static DataObject Boolean(SqlBoolean value)
SqlBinary ToWellKnownBytes()
byte[] ToByteArray()
Returns an array of bytes representing the contents of the binary.
static DataObject Envelope(DataObject geometry)
static SqlGeometry Envelope(SqlGeometry geometry)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static DataObject Boundary(DataObject geometry)
string ToString(Encoding encoding)
static readonly SqlNumber Null
static SqlNumber Distance(SqlGeometry geometry, SqlGeometry other)
static DataObject Distance(DataObject geometry, DataObject other)
static DataObject ToWkt(DataObject geometry)
static StringType String()
SqlString ToWellKnownText()
static SqlBoolean Contains(SqlGeometry geometry, SqlGeometry other)
static DataObject Area(DataObject geometry)
static SqlString ToWkt(SqlGeometry geometry)
static SqlGeometry FromWkt(SqlString source)
Deveel.Data.Sql.Objects.SqlString SqlString
static SqlNumber Area(SqlGeometry geometry)
static readonly SqlBinary Null