Definition at line 8 of file SpatialSystemFunctions.cs.
Definition at line 115 of file SpatialSystemFunctions.cs.
116 var input = (SqlGeometry) geometry.Value;
117 var result =
Area(input);
118 return DataObject.
Number(result);
static DataObject Number(SqlNumber value)
static DataObject Area(DataObject geometry)
Definition at line 121 of file SpatialSystemFunctions.cs.
122 if (geometry == null || geometry.IsNull)
125 return geometry.Area;
static readonly SqlNumber Null
Definition at line 128 of file SpatialSystemFunctions.cs.
129 var input = (SqlGeometry) geometry.Value;
130 var result = input.Boundary;
131 return new DataObject(SpatialType.Geometry(), result);
Definition at line 108 of file SpatialSystemFunctions.cs.
109 var g1 = (SqlGeometry) geometry.Value;
110 var g2 = (SqlGeometry) other.Value;
112 return DataObject.Boolean(result);
static SqlBoolean Contains(SqlGeometry geometry, SqlGeometry other)
Definition at line 87 of file SpatialSystemFunctions.cs.
88 var input = (SqlGeometry)geometry.Value;
89 var otherGeometry = (SqlGeometry) other.Value;
90 var result =
Distance(input, otherGeometry);
91 return DataObject.Number(result);
static DataObject Distance(DataObject geometry, DataObject other)
Definition at line 94 of file SpatialSystemFunctions.cs.
95 if (geometry == null || geometry.IsNull)
98 return geometry.Distance(other);
static readonly SqlNumber Null
Definition at line 74 of file SpatialSystemFunctions.cs.
75 var input = (SqlGeometry) geometry.Value;
77 return new DataObject(SpatialType.Geometry(), envelope);
static DataObject Envelope(DataObject geometry)
Definition at line 13 of file SpatialSystemFunctions.cs.
15 return SqlGeometry.Null;
18 if (!SqlGeometry.TryParse(source.
ToByteArray(), out geometry))
19 return SqlGeometry.Null;
byte[] ToByteArray()
Returns an array of bytes representing the contents of the binary.
Definition at line 24 of file SpatialSystemFunctions.cs.
27 return new DataObject(SpatialType.Geometry(), result);
static SqlGeometry FromWkb(SqlBinary source)
Implements a BINARY object that handles a limited number of bytes, not exceding MaxLength.
Definition at line 45 of file SpatialSystemFunctions.cs.
48 return new DataObject(SpatialType.Geometry(), result);
static DataObject FromWkt(IRequest context, DataObject source)
Deveel.Data.Sql.Objects.SqlString SqlString
Definition at line 51 of file SpatialSystemFunctions.cs.
53 if (!SqlGeometry.TryParse(source.
ToString(), out geometry))
54 return SqlGeometry.Null;
string ToString(Encoding encoding)
Definition at line 30 of file SpatialSystemFunctions.cs.
34 var g = (SqlGeometry)geometry.Value;
35 return DataObject.Binary(
ToWkb(g));
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static DataObject ToWkb(DataObject geometry)
static StringType String()
Definition at line 38 of file SpatialSystemFunctions.cs.
39 if (geometry == null || geometry.IsNull)
42 return geometry.ToWellKnownBytes();
Implements a BINARY object that handles a limited number of bytes, not exceding MaxLength.
static readonly SqlBinary Null
Definition at line 59 of file SpatialSystemFunctions.cs.
60 if (geometry == null || geometry.IsNull)
63 return geometry.ToWellKnownText();
Definition at line 66 of file SpatialSystemFunctions.cs.
70 var g = (SqlGeometry) geometry.Value;
71 return DataObject.String(
ToWkt(g));
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static StringType String()
static SqlString ToWkt(SqlGeometry geometry)
The documentation for this class was generated from the following file: