DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
deveeldb.git
src
deveeldb-gis
Deveel.Data.Spatial
SpatialTypeResolver.cs
Go to the documentation of this file.
1
using
System
;
2
3
using
Deveel
.
Data
.
Types
;
4
5
namespace
Deveel
.Data.Spatial {
6
public
sealed
class
SpatialTypeResolver
:
ITypeResolver
{
7
public
SqlType
ResolveType
(
TypeResolveContext
context) {
8
try
{
9
var srid = -1;
10
if
(context.
HasMeta
(
"SRID"
)) {
11
var sridMeta = context.
GetMeta
(
"SRID"
);
12
srid = Convert.
ToInt32
(sridMeta.ToInt32());
13
}
14
15
return
new
SpatialType
(srid);
16
}
catch
(Exception) {
17
return
null;
18
}
19
}
20
}
21
}
Deveel
System
Definition:
NonSerializedAttribute.cs:3
Deveel.Data.Types.ITypeResolver
Definition:
ITypeResolver.cs:20
Deveel.Data.Types.DataTypeMeta.ToInt32
int ToInt32()
Definition:
DataTypeMeta.cs:33
Deveel.Data.Types.TypeResolveContext.HasMeta
bool HasMeta(string name)
Definition:
TypeResolveContext.cs:58
Deveel.Data.Types.SqlType
Defines the properties of a specific SQL Type and handles the values compatible.
Definition:
SqlType.cs:33
Deveel.Data.Spatial.SpatialTypeResolver
Definition:
SpatialTypeResolver.cs:6
Deveel.Data.Types.TypeResolveContext
Definition:
TypeResolveContext.cs:22
Deveel.Data.Types.TypeResolveContext.GetMeta
DataTypeMeta GetMeta(string name)
Definition:
TypeResolveContext.cs:62
Deveel.Data.Spatial.SpatialTypeResolver.ResolveType
SqlType ResolveType(TypeResolveContext context)
Definition:
SpatialTypeResolver.cs:7
Deveel.Data.Types
Definition:
ArrayType.cs:21
Deveel.Data
Definition:
ActiveSessionList.cs:22
Deveel.Data.Spatial.SpatialType
Definition:
SpatialType.cs:6
Generated by
1.8.10