Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
d176fad5
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d176fad5
编写于
8月 08, 2002
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some improvements in geometric-operators documentation.
上级
f8400217
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
25 addition
and
9 deletion
+25
-9
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+25
-9
未找到文件。
doc/src/sgml/func.sgml
浏览文件 @
d176fad5
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.10
8 2002/08/06 05:40:44 ishii
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.10
9 2002/08/08 14:29:07 tgl
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -3868,7 +3868,7 @@ SELECT TIMESTAMP 'now';
...
@@ -3868,7 +3868,7 @@ SELECT TIMESTAMP 'now';
</row>
</row>
<row>
<row>
<entry> # </entry>
<entry> # </entry>
<entry>Number of points in polygon</entry>
<entry>Number of points in p
ath or p
olygon</entry>
<entry><literal># '((1,0),(0,1),(-1,0))'</literal></entry>
<entry><literal># '((1,0),(0,1),(-1,0))'</literal></entry>
</row>
</row>
<row>
<row>
...
@@ -4025,6 +4025,18 @@ SELECT TIMESTAMP 'now';
...
@@ -4025,6 +4025,18 @@ SELECT TIMESTAMP 'now';
<entry>length of item</entry>
<entry>length of item</entry>
<entry><literal>length(path '((-1,0),(1,0))')</literal></entry>
<entry><literal>length(path '((-1,0),(1,0))')</literal></entry>
</row>
</row>
<row>
<entry><function>npoints</function>(path)</entry>
<entry><type>integer</type></entry>
<entry>number of points</entry>
<entry><literal>npoints(path '[(0,0),(1,1),(2,0)]')</literal></entry>
</row>
<row>
<entry><function>npoints</function>(polygon)</entry>
<entry><type>integer</type></entry>
<entry>number of points</entry>
<entry><literal>npoints(polygon '((1,1),(0,0))')</literal></entry>
</row>
<row>
<row>
<entry><function>pclose</function>(path)</entry>
<entry><function>pclose</function>(path)</entry>
<entry><type>path</type></entry>
<entry><type>path</type></entry>
...
@@ -4040,12 +4052,6 @@ SELECT TIMESTAMP 'now';
...
@@ -4040,12 +4052,6 @@ SELECT TIMESTAMP 'now';
<entry><literal>point(lseg '((-1,0),(1,0))',lseg '((-2,-2),(2,2))')</literal></entry>
<entry><literal>point(lseg '((-1,0),(1,0))',lseg '((-2,-2),(2,2))')</literal></entry>
</row>
</row>
]]>
]]>
<row>
<entry><function>npoint</function>(path)</entry>
<entry><type>integer</type></entry>
<entry>number of points</entry>
<entry><literal>npoints(path '[(0,0),(1,1),(2,0)]')</literal></entry>
</row>
<row>
<row>
<entry><function>popen</function>(path)</entry>
<entry><function>popen</function>(path)</entry>
<entry><type>path</type></entry>
<entry><type>path</type></entry>
...
@@ -4150,7 +4156,7 @@ SELECT TIMESTAMP 'now';
...
@@ -4150,7 +4156,7 @@ SELECT TIMESTAMP 'now';
<row>
<row>
<entry><function>polygon</function>(<type>box</type>)</entry>
<entry><function>polygon</function>(<type>box</type>)</entry>
<entry><type>polygon</type></entry>
<entry><type>polygon</type></entry>
<entry>
12
point polygon</entry>
<entry>
4-
point polygon</entry>
<entry><literal>polygon(box '((0,0),(1,1))')</literal></entry>
<entry><literal>polygon(box '((0,0),(1,1))')</literal></entry>
</row>
</row>
<row>
<row>
...
@@ -4175,6 +4181,16 @@ SELECT TIMESTAMP 'now';
...
@@ -4175,6 +4181,16 @@ SELECT TIMESTAMP 'now';
</tgroup>
</tgroup>
</table>
</table>
<para>
It is possible to access the two component numbers of a <type>point</>
as though it were an array with subscripts 0,1. For example, if
<literal>t.p</> is a <type>point</> column then
<literal>SELECT p[0] FROM t</> retrieves the X coordinate;
<literal>UPDATE t SET p[1] = ...</> changes the Y coordinate.
In the same way, a <type>box</> or an <type>lseg</> may be treated
as an array of two <type>point</>s.
</para>
</sect1>
</sect1>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录