Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d176fad5
Commit
d176fad5
authored
Aug 08, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some improvements in geometric-operators documentation.
parent
f8400217
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+25
-9
No files found.
doc/src/sgml/func.sgml
View file @
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
-->
...
...
@@ -3868,7 +3868,7 @@ SELECT TIMESTAMP 'now';
</row>
<row>
<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>
</row>
<row>
...
...
@@ -4025,6 +4025,18 @@ SELECT TIMESTAMP 'now';
<entry>length of item</entry>
<entry><literal>length(path '((-1,0),(1,0))')</literal></entry>
</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>
<entry><function>pclose</function>(path)</entry>
<entry><type>path</type></entry>
...
...
@@ -4040,12 +4052,6 @@ SELECT TIMESTAMP 'now';
<entry><literal>point(lseg '((-1,0),(1,0))',lseg '((-2,-2),(2,2))')</literal></entry>
</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>
<entry><function>popen</function>(path)</entry>
<entry><type>path</type></entry>
...
...
@@ -4150,7 +4156,7 @@ SELECT TIMESTAMP 'now';
<row>
<entry><function>polygon</function>(<type>box</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>
</row>
<row>
...
...
@@ -4175,6 +4181,16 @@ SELECT TIMESTAMP 'now';
</tgroup>
</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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment