Definition at line 14 of file SqlGeometry.cs.
Deveel.Data.Spatial.SqlGeometry.SqlGeometry |
( |
IGeometry |
geometry, |
|
|
bool |
isNull |
|
) |
| |
|
inlineprivate |
Deveel.Data.Spatial.SqlGeometry.SqlGeometry |
( |
IGeometry |
geometry | ) |
|
|
inlineprivate |
Definition at line 27 of file SqlGeometry.cs.
28 :
this(geometry,
false) {
30 throw new ArgumentNullException(
"geometry");
Definition at line 116 of file SqlGeometry.cs.
double IConvertible. ToDouble(IFormatProvider provider)
SqlGeometry Buffer(SqlNumber distance)
SqlGeometry Deveel.Data.Spatial.SqlGeometry.Buffer |
( |
double |
distance | ) |
|
|
inline |
Definition at line 123 of file SqlGeometry.cs.
124 var result =
Geometry.Buffer(distance);
SqlGeometry(IGeometry geometry, bool isNull)
int IComparable. Deveel.Data.Spatial.SqlGeometry.CompareTo |
( |
object |
obj | ) |
|
|
inlineprivate |
Definition at line 35 of file SqlGeometry.cs.
37 throw new ArgumentException();
SqlGeometry(IGeometry geometry, bool isNull)
int IComparable. CompareTo(object obj)
Definition at line 42 of file SqlGeometry.cs.
44 throw new ArgumentException();
SqlGeometry(IGeometry geometry, bool isNull)
int IComparable. CompareTo(object obj)
int Deveel.Data.Spatial.SqlGeometry.CompareTo |
( |
SqlGeometry |
other | ) |
|
|
inline |
Definition at line 128 of file SqlGeometry.cs.
129 if (
IsNull || (geometry == null || geometry.IsNull))
132 var result =
Geometry.Distance(geometry.Geometry);
static readonly SqlNumber Null
bool ISqlObject. Deveel.Data.Spatial.SqlGeometry.IsComparableTo |
( |
ISqlObject |
other | ) |
|
|
inlineprivate |
Checks if the current object is comparable with the given one.
- Parameters
-
other | The other ISqlObject to compare. |
- Returns
- Returns
true
if the current object is comparable with the given one, false
otherwise.
Implements Deveel.Data.Sql.Objects.ISqlObject.
Definition at line 100 of file SqlGeometry.cs.
bool ISqlObject. IsComparableTo(ISqlObject other)
Checks if the current object is comparable with the given one.
SqlGeometry(IGeometry geometry, bool isNull)
bool Deveel.Data.Spatial.SqlGeometry.IsComparableTo |
( |
SqlGeometry |
other | ) |
|
|
inline |
Definition at line 107 of file SqlGeometry.cs.
108 if (
IsNull && (other == null || other.IsNull))
110 if (!
IsNull && (other != null && !other.IsNull))
static SqlGeometry Deveel.Data.Spatial.SqlGeometry.Parse |
( |
string |
text | ) |
|
|
inlinestatic |
Definition at line 196 of file SqlGeometry.cs.
199 if (!
TryParse(text, out geometry, out error))
200 throw new FormatException(
String.Format(
"Could not parse the input string '{0}' to a valid GEOMETRY.", text), error);
A long string in the system.
static bool TryParse(string text, out SqlGeometry geometry, out Exception error)
SqlGeometry(IGeometry geometry, bool isNull)
static SqlGeometry Deveel.Data.Spatial.SqlGeometry.Parse |
( |
byte[] |
bytes | ) |
|
|
inlinestatic |
Definition at line 235 of file SqlGeometry.cs.
238 if (!
TryParse(bytes, out geometry, out error))
239 throw new FormatException(
"Could not parse the input bytes to a valid GEOMETRY.", error);
static bool TryParse(string text, out SqlGeometry geometry, out Exception error)
SqlGeometry(IGeometry geometry, bool isNull)
override string Deveel.Data.Spatial.SqlGeometry.ToString |
( |
| ) |
|
|
inline |
Definition at line 151 of file SqlGeometry.cs.
A long string in the system.
string ToString(Encoding encoding)
SqlString ToWellKnownText()
SqlBinary Deveel.Data.Spatial.SqlGeometry.ToWellKnownBytes |
( |
| ) |
|
|
inline |
Definition at line 143 of file SqlGeometry.cs.
Implements a BINARY object that handles a limited number of bytes, not exceding MaxLength.
static readonly SqlBinary Null
SqlString Deveel.Data.Spatial.SqlGeometry.ToWellKnownText |
( |
| ) |
|
|
inline |
Definition at line 158 of file SqlGeometry.cs.
Deveel.Data.Sql.Objects.SqlString SqlString
static bool Deveel.Data.Spatial.SqlGeometry.TryParse |
( |
string |
text, |
|
|
out SqlGeometry |
geometry, |
|
|
out Exception |
error |
|
) |
| |
|
inlinestaticprivate |
Definition at line 166 of file SqlGeometry.cs.
167 if (
String.IsNullOrEmpty(text)) {
169 error =
new ArgumentNullException(
"text");
177 using (var textReader =
new StringReader(text)) {
178 g = reader.Read(textReader);
184 }
catch (Exception ex) {
A long string in the system.
static readonly IGeometryFactory DefaultGeometryFactory
SqlGeometry(IGeometry geometry, bool isNull)
static bool Deveel.Data.Spatial.SqlGeometry.TryParse |
( |
string |
text, |
|
|
out SqlGeometry |
geometry |
|
) |
| |
|
inlinestatic |
Definition at line 191 of file SqlGeometry.cs.
193 return TryParse(text, out geometry, out error);
static bool TryParse(string text, out SqlGeometry geometry, out Exception error)
static bool Deveel.Data.Spatial.SqlGeometry.TryParse |
( |
byte[] |
bytes, |
|
|
out SqlGeometry |
geometry |
|
) |
| |
|
inlinestatic |
Definition at line 205 of file SqlGeometry.cs.
207 return TryParse(bytes, out geometry, out error);
static bool TryParse(string text, out SqlGeometry geometry, out Exception error)
static bool Deveel.Data.Spatial.SqlGeometry.TryParse |
( |
byte[] |
bytes, |
|
|
out SqlGeometry |
geometry, |
|
|
out Exception |
error |
|
) |
| |
|
inlinestaticprivate |
Definition at line 210 of file SqlGeometry.cs.
213 error =
new ArgumentNullException(
"bytes");
221 using (var stream =
new MemoryStream(bytes)) {
222 g = reader.Read(stream);
228 }
catch (Exception ex) {
static readonly IGeometryServices DefaultGeometryServices
SqlGeometry(IGeometry geometry, bool isNull)
readonly IGeometryFactory Deveel.Data.Spatial.SqlGeometry.DefaultGeometryFactory = new GeometryFactory() |
|
staticprivate |
readonly IGeometryServices Deveel.Data.Spatial.SqlGeometry.DefaultGeometryServices = new NtsGeometryServices() |
|
staticprivate |
SqlNumber Deveel.Data.Spatial.SqlGeometry.Area |
|
get |
IGeometry Deveel.Data.Spatial.SqlGeometry.Geometry |
|
getsetprivate |
SqlString Deveel.Data.Spatial.SqlGeometry.GeometryType |
|
get |
bool Deveel.Data.Spatial.SqlGeometry.IsNull |
|
getprivate set |
SqlNumber Deveel.Data.Spatial.SqlGeometry.Length |
|
get |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-gis/Deveel.Data.Spatial/SqlGeometry.cs