提交 e6639bd9 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Update documentation

上级 bcf6a187
...@@ -3038,9 +3038,14 @@ ENUM('clubs', 'diamonds', 'hearts', 'spades') ...@@ -3038,9 +3038,14 @@ ENUM('clubs', 'diamonds', 'hearts', 'spades')
"Data Types","GEOMETRY Type"," "Data Types","GEOMETRY Type","
GEOMETRY GEOMETRY
"," ","
A spatial geometry type, based on the ""org.locationtech.jts"" library. A spatial geometry type.
Mapped to ""org.locationtech.jts.geom.Geometry"" if JTS library is in classpath.
May be represented in textual format using the WKT (well-known text) or EWKT (extended well-known text) format. 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. 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.
SRID (spatial reference system identifier) is supported.
Use a quoted string containing a WKT/EWKT formatted string or ""PreparedStatement.setObject()"" to store values, 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. and ""ResultSet.getObject(..)"" or ""ResultSet.getString(..)"" to retrieve the values.
......
...@@ -1415,19 +1415,7 @@ that means the probability is about 0.000'000'000'06. ...@@ -1415,19 +1415,7 @@ that means the probability is about 0.000'000'000'06.
<h2 id="spatial_features">Spatial Features</h2> <h2 id="spatial_features">Spatial Features</h2>
<p> <p>
H2 supports the geometry data type and spatial indexes if H2 supports the geometry data type and spatial indexes.
the <a href="https://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="https://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.15.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: Here is an example SQL script to create a table with a spatial column and index:
</p> </p>
<pre> <pre>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论