Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
808f846e
提交
808f846e
authored
9月 13, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update documentation
上级
b552fab4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
23 行增加
和
5 行删除
+23
-5
help.csv
h2/src/docsrc/help/help.csv
+16
-2
EWKTUtils.java
h2/src/main/org/h2/util/geometry/EWKTUtils.java
+2
-2
ValueEnum.java
h2/src/main/org/h2/value/ValueEnum.java
+4
-1
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-0
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
808f846e
...
...
@@ -3037,20 +3037,34 @@ ENUM('clubs', 'diamonds', 'hearts', 'spades')
"
"Data Types","GEOMETRY Type","
GEOMETRY
[({ sridInt | { {POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING
|MULTIPOLYGON|GEOMETRYCOLLECTION} [Z|M|ZM] [, sridInt]} })]
","
A spatial geometry type.
Mapped to ""org.locationtech.jts.geom.Geometry"" if JTS library is in classpath.
If additional constraints are not specified this type accepts all supported types of geometries.
A constraint with required geometry type and dimension system can be set by specifying name of the type and
dimension system. A whitespace between them is optional.
2D dimension system does not have a name and assumed if only a geometry type name is specified.
POINT means 2D point, POINT Z or POINTZ means 3D point.
A constraint with required spatial reference system identifier (SRID) can be set by specifying this identifier.
Both constraints for type and SRID can be specified together.
Mapped to ""org.locationtech.jts.geom.Geometry"" if JTS library is in classpath and to ""java.lang.String"" otherwise.
May be represented in textual format using the WKT (well-known text) or EWKT (extended well-known text) format.
Values are stored internally in EWKB (extended well-known binary) format.
Only a subset of EWKB and EWKT features is supported.
Supported objects are POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, and GEOMETRYCOLLECTION.
Supported dimension systems are
XY (2D), XYZ, XYM, and XYZM
.
Supported dimension systems are
2D (XY), Z (XYZ), M (XYM), and ZM (XYZM)
.
SRID (spatial reference system identifier) is supported.
Use a quoted string containing a WKT/EWKT formatted string or ""PreparedStatement.setObject()"" to store values,
and ""ResultSet.getObject(..)"" or ""ResultSet.getString(..)"" to retrieve the values.
","
GEOMETRY
GEOMETRY(POINT)
GEOMETRY(POINT Z)
GEOMETRY(POINT Z, 4326)
GEOMETRY(4326)
"
"Data Types","INTERVAL Type","
...
...
h2/src/main/org/h2/util/geometry/EWKTUtils.java
浏览文件 @
808f846e
...
...
@@ -58,7 +58,7 @@ public final class EWKTUtils {
/**
* Names of dimension systems.
*/
private
static
final
String
[]
DIMENSION_SYTEMS
=
{
//
private
static
final
String
[]
DIMENSION_SY
S
TEMS
=
{
//
"XY"
,
//
"Z"
,
//
"M"
,
//
...
...
@@ -677,7 +677,7 @@ public final class EWKTUtils {
}
String
result
=
TYPES
[
t
-
1
];
if
(
d
!=
DIMENSION_SYSTEM_XY
)
{
result
=
result
+
' '
+
DIMENSION_SYTEMS
[
d
];
result
=
result
+
' '
+
DIMENSION_SY
S
TEMS
[
d
];
}
return
result
;
}
...
...
h2/src/main/org/h2/value/ValueEnum.java
浏览文件 @
808f846e
...
...
@@ -5,11 +5,14 @@
*/
package
org
.
h2
.
value
;
/**
* ENUM value.
*/
public
class
ValueEnum
extends
ValueEnumBase
{
private
final
ExtTypeInfoEnum
enumerators
;
ValueEnum
(
ExtTypeInfoEnum
enumerators
,
String
label
,
int
ordinal
)
{
ValueEnum
(
ExtTypeInfoEnum
enumerators
,
String
label
,
int
ordinal
)
{
super
(
label
,
ordinal
);
this
.
enumerators
=
enumerators
;
}
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
808f846e
...
...
@@ -795,3 +795,4 @@ minxd maxxd minyd maxyd bminxd bmaxxd bminyd bmaxyd
interior envelopes multilinestring multipoint packed exterior normalization awkward determination subgeometries
xym normalizes coord setz xyzm geometrycollection multipolygon mixup rings polygons rejection finite
pointzm pointz pointm dimensionality redefine forum measures
mpg casted pzm mls constrained
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论