Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
e71dad1b
提交
e71dad1b
authored
2月 22, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update JTS to version 1.15.0 from LocationTech
上级
ee756ecb
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
46 行增加
和
47 行删除
+46
-47
pom.xml
h2/pom.xml
+2
-2
help.csv
h2/src/docsrc/help/help.csv
+1
-1
advanced.html
h2/src/docsrc/html/advanced.html
+3
-3
MANIFEST.MF
h2/src/main/META-INF/MANIFEST.MF
+1
-2
SpatialTreeIndex.java
h2/src/main/org/h2/index/SpatialTreeIndex.java
+2
-2
MVSpatialIndex.java
h2/src/main/org/h2/mvstore/db/MVSpatialIndex.java
+2
-2
DataType.java
h2/src/main/org/h2/value/DataType.java
+1
-1
ValueGeometry.java
h2/src/main/org/h2/value/ValueGeometry.java
+13
-13
TestSpatial.java
h2/src/test/org/h2/test/db/TestSpatial.java
+9
-9
Build.java
h2/src/tools/org/h2/build/Build.java
+11
-11
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/pom.xml
浏览文件 @
e71dad1b
...
...
@@ -74,9 +74,9 @@
<version>
${osgi.version}
</version>
</dependency>
<dependency>
<groupId>
com.vividsolution
s
</groupId>
<groupId>
org.locationtech.jt
s
</groupId>
<artifactId>
jts-core
</artifactId>
<version>
1.1
4
.0
</version>
<version>
1.1
5
.0
</version>
</dependency>
<!-- END COMPILE DEPENDENCIES !-->
...
...
h2/src/docsrc/help/help.csv
浏览文件 @
e71dad1b
...
...
@@ -2647,7 +2647,7 @@ ENUM('clubs', 'diamonds', 'hearts', 'spades')
"Data Types","GEOMETRY Type","
GEOMETRY
","
A spatial geometry type, based on the ""
com.vividsolutions
.jts"" library.
A spatial geometry type, based on the ""
org.locationtech
.jts"" library.
Normally represented in textual format using the WKT (well known text) format.
Use a quoted string containing a WKT formatted string or ""PreparedStatement.setObject()"" to store values,
...
...
h2/src/docsrc/html/advanced.html
浏览文件 @
e71dad1b
...
...
@@ -1433,16 +1433,16 @@ that means the probability is about 0.000'000'000'06.
<h2
id=
"spatial_features"
>
Spatial Features
</h2>
<p>
H2 supports the geometry data type and spatial indexes if
the
<a
href=
"http
://tsusiatsoftware.net/jts/main.html
"
>
JTS Topology Suite
</a>
the
<a
href=
"http
s://projects.eclipse.org/projects/locationtech.jts
"
>
JTS Topology Suite
</a>
is in the classpath.
To run the H2 Console tool with the JTS tool, you need to download the
<a
href=
"http
://search.maven.org/remotecontent?filepath=com/vividsolutions/jts-core/1.14.0/jts-core-1.14.0.jar"
>
JTS-CORE 1.14
.0 jar file
</a>
<a
href=
"http
s://search.maven.org/remotecontent?filepath=org/locationtech/jts/jts-core/1.15.0/jts-core-1.15.0.jar"
>
JTS-CORE 1.15
.0 jar file
</a>
and place it in the h2 bin directory. Then edit the
<code>
h2.sh
</code>
file as follows:
</p>
<pre>
#!/bin/sh
dir=$(dirname "$0")
java -cp "$dir/h2.jar:jts-core-1.1
4
.0.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "$@"
java -cp "$dir/h2.jar:jts-core-1.1
5
.0.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "$@"
</pre>
<p>
Here is an example SQL script to create a table with a spatial column and index:
...
...
h2/src/main/META-INF/MANIFEST.MF
浏览文件 @
e71dad1b
...
...
@@ -32,8 +32,7 @@ Import-Package: javax.management,
org.apache.lucene.search;version="[3.6.2,4.0.0)";resolution:=optional,
org.apache.lucene.store;version="[3.6.2,4.0.0)";resolution:=optional,
org.apache.lucene.util;version="[3.6.2,4.0.0)";resolution:=optional,
com.vividsolutions.jts.geom;version="1.14.0";resolution:=optional,
com.vividsolutions.jts.io;version="1.14.0";resolution:=optional,
org.locationtech.jts.geom;version="1.15.0";resolution:=optional,
org.h2;version="[${version},1.5.0)",
org.h2.api;version="[${version},1.5.0)",
org.h2.fulltext;version="[${version},1.5.0)",
...
...
h2/src/main/org/h2/index/SpatialTreeIndex.java
浏览文件 @
e71dad1b
...
...
@@ -23,8 +23,8 @@ import org.h2.table.TableFilter;
import
org.h2.value.Value
;
import
org.h2.value.ValueGeometry
;
import
org.h2.value.ValueNull
;
import
com.vividsolutions
.jts.geom.Envelope
;
import
com.vividsolutions
.jts.geom.Geometry
;
import
org.locationtech
.jts.geom.Envelope
;
import
org.locationtech
.jts.geom.Geometry
;
/**
* This is an index based on a MVR-TreeMap.
...
...
h2/src/main/org/h2/mvstore/db/MVSpatialIndex.java
浏览文件 @
e71dad1b
...
...
@@ -34,8 +34,8 @@ import org.h2.value.Value;
import
org.h2.value.ValueGeometry
;
import
org.h2.value.ValueLong
;
import
org.h2.value.ValueNull
;
import
com.vividsolutions
.jts.geom.Envelope
;
import
com.vividsolutions
.jts.geom.Geometry
;
import
org.locationtech
.jts.geom.Envelope
;
import
org.locationtech
.jts.geom.Geometry
;
/**
* This is an index based on a MVRTreeMap.
...
...
h2/src/main/org/h2/value/DataType.java
浏览文件 @
e71dad1b
...
...
@@ -60,7 +60,7 @@ public class DataType {
public
static
final
Class
<?>
GEOMETRY_CLASS
;
private
static
final
String
GEOMETRY_CLASS_NAME
=
"
com.vividsolutions
.jts.geom.Geometry"
;
"
org.locationtech
.jts.geom.Geometry"
;
/**
* The list of types. An ArrayList so that Tomcat doesn't set it to null
...
...
h2/src/main/org/h2/value/ValueGeometry.java
浏览文件 @
e71dad1b
...
...
@@ -11,17 +11,17 @@ import java.util.Arrays;
import
org.h2.engine.Mode
;
import
org.h2.message.DbException
;
import
org.h2.util.StringUtils
;
import
com.vividsolutions
.jts.geom.CoordinateSequence
;
import
com.vividsolutions
.jts.geom.CoordinateSequenceFilter
;
import
com.vividsolutions
.jts.geom.Envelope
;
import
com.vividsolutions
.jts.geom.Geometry
;
import
com.vividsolutions
.jts.geom.GeometryFactory
;
import
com.vividsolutions
.jts.geom.PrecisionModel
;
import
com.vividsolutions
.jts.io.ParseException
;
import
com.vividsolutions
.jts.io.WKBReader
;
import
com.vividsolutions
.jts.io.WKBWriter
;
import
com.vividsolutions
.jts.io.WKTReader
;
import
com.vividsolutions
.jts.io.WKTWriter
;
import
org.locationtech
.jts.geom.CoordinateSequence
;
import
org.locationtech
.jts.geom.CoordinateSequenceFilter
;
import
org.locationtech
.jts.geom.Envelope
;
import
org.locationtech
.jts.geom.Geometry
;
import
org.locationtech
.jts.geom.GeometryFactory
;
import
org.locationtech
.jts.geom.PrecisionModel
;
import
org.locationtech
.jts.io.ParseException
;
import
org.locationtech
.jts.io.WKBReader
;
import
org.locationtech
.jts.io.WKBWriter
;
import
org.locationtech
.jts.io.WKTReader
;
import
org.locationtech
.jts.io.WKTWriter
;
/**
* Implementation of the GEOMETRY data type.
...
...
@@ -66,7 +66,7 @@ public class ValueGeometry extends Value {
* Get or create a geometry value for the given geometry.
*
* @param o the geometry object (of type
*
com.vividsolutions
.jts.geom.Geometry)
*
org.locationtech
.jts.geom.Geometry)
* @return the value
*/
public
static
ValueGeometry
getFromGeometry
(
Object
o
)
{
...
...
@@ -140,7 +140,7 @@ public class ValueGeometry extends Value {
* @return a copy of the geometry object
*/
public
Geometry
getGeometry
()
{
return
(
Geometry
)
getGeometryNoCopy
().
clone
();
return
getGeometryNoCopy
().
copy
();
}
public
Geometry
getGeometryNoCopy
()
{
...
...
h2/src/test/org/h2/test/db/TestSpatial.java
浏览文件 @
e71dad1b
...
...
@@ -19,15 +19,15 @@ import org.h2.tools.SimpleRowSource;
import
org.h2.value.DataType
;
import
org.h2.value.Value
;
import
org.h2.value.ValueGeometry
;
import
com.vividsolutions
.jts.geom.Coordinate
;
import
com.vividsolutions
.jts.geom.Envelope
;
import
com.vividsolutions
.jts.geom.Geometry
;
import
com.vividsolutions
.jts.geom.GeometryFactory
;
import
com.vividsolutions
.jts.geom.Point
;
import
com.vividsolutions
.jts.geom.Polygon
;
import
com.vividsolutions
.jts.geom.util.AffineTransformation
;
import
com.vividsolutions
.jts.io.ParseException
;
import
com.vividsolutions
.jts.io.WKTReader
;
import
org.locationtech
.jts.geom.Coordinate
;
import
org.locationtech
.jts.geom.Envelope
;
import
org.locationtech
.jts.geom.Geometry
;
import
org.locationtech
.jts.geom.GeometryFactory
;
import
org.locationtech
.jts.geom.Point
;
import
org.locationtech
.jts.geom.Polygon
;
import
org.locationtech
.jts.geom.util.AffineTransformation
;
import
org.locationtech
.jts.io.ParseException
;
import
org.locationtech
.jts.io.WKTReader
;
/**
* Spatial datatype and index tests.
...
...
h2/src/tools/org/h2/build/Build.java
浏览文件 @
e71dad1b
...
...
@@ -188,7 +188,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/h2mig_pagestore_addon.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-api-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-nop-1.6.0.jar"
+
File
.
pathSeparator
+
javaToolsJar
;
...
...
@@ -292,7 +292,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/slf4j-api-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
+
File
.
pathSeparator
+
javaToolsJar
;
FileList
files
;
if
(
clientOnly
)
{
...
...
@@ -395,9 +395,9 @@ public class Build extends BuildBase {
downloadOrVerify
(
"ext/org.osgi.enterprise-4.2.0.jar"
,
"org/osgi"
,
"org.osgi.enterprise"
,
"4.2.0"
,
"8634dcb0fc62196e820ed0f1062993c377f74972"
,
offline
);
downloadOrVerify
(
"ext/jts-core-1.1
4
.0.jar"
,
"
com/vividsolutions"
,
"jts-core"
,
"1.14
.0"
,
"
ff63492fba33a395f0da17720dd1716aba0d8c84
"
,
offline
);
downloadOrVerify
(
"ext/jts-core-1.1
5
.0.jar"
,
"
org/locationtech/jts"
,
"jts-core"
,
"1.15
.0"
,
"
705981b7e25d05a76a3654e597dab6ba423eb79e
"
,
offline
);
downloadOrVerify
(
"ext/junit-4.12.jar"
,
"junit"
,
"junit"
,
"4.12"
,
"2973d150c0dc1fefe998f834810d68f278ea58ec"
,
offline
);
...
...
@@ -691,7 +691,7 @@ public class Build extends BuildBase {
"org.h2.tools"
,
"org.h2.api"
,
"org.h2.engine"
,
"org.h2.fulltext"
,
"-classpath"
,
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
,
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
,
"-docletpath"
,
"bin"
+
File
.
pathSeparator
+
"temp"
,
"-doclet"
,
"org.h2.build.doclet.Doclet"
);
copy
(
"docs/javadoc"
,
files
(
"src/docsrc/javadoc"
),
"src/docsrc/javadoc"
);
...
...
@@ -717,7 +717,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
,
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
,
"-subpackages"
,
"org.h2"
,
"-exclude"
,
"org.h2.test.jaqu:org.h2.jaqu"
);
...
...
@@ -732,7 +732,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
,
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
,
"-subpackages"
,
"org.h2.mvstore"
,
"-exclude"
,
"org.h2.mvstore.db"
);
...
...
@@ -747,7 +747,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
,
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
,
"-subpackages"
,
"org.h2"
,
"-exclude"
,
"org.h2.test.jaqu:org.h2.jaqu"
,
"-package"
,
...
...
@@ -964,7 +964,7 @@ public class Build extends BuildBase {
javadoc
(
"-sourcepath"
,
"src/main"
,
"org.h2.tools"
,
"org.h2.jmx"
,
"-classpath"
,
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
,
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
,
"-docletpath"
,
"bin"
+
File
.
pathSeparator
+
"temp"
,
"-doclet"
,
"org.h2.build.doclet.ResourceDoclet"
);
}
...
...
@@ -1017,7 +1017,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/h2mig_pagestore_addon.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
4
.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.1
5
.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-api-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-nop-1.6.0.jar"
+
File
.
pathSeparator
+
javaToolsJar
;
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
e71dad1b
...
...
@@ -721,7 +721,7 @@ young younger youngest your yourself youtube ytd yuml yyfxyy yyyymmdd zeile zen
zepfred zero zeroes zeros zeta zhang zip ziv zloty zone zones zurich zwj zwnj
recompiled incl reveal designators templates invoked candidate handshake altered
accomplished permanent clarify weaken excl alternatively dita imjcc optimizes
dotall multiline xdoclint scenario
dotall multiline xdoclint scenario
locationtech
stefan jobs defunct spain jconn decades chrono courtesy dtl xdg avp lifecycle
experiment throughout staging booth akkuzin observed maxinplace russian
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论