[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-96-gd17abd3
git at osgeo.org
git at osgeo.org
Thu Feb 18 15:28:58 PST 2021
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via d17abd3bc43e3ba9521d66d6ea3676c92062734a (commit)
from b108f45d25abf4360da449bd9f876c421eab9ed1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d17abd3bc43e3ba9521d66d6ea3676c92062734a
Author: Martin Davis <mtnclimb at gmail.com>
Date: Thu Feb 18 15:28:43 2021 -0800
Change docs to use ST_Point where possible
diff --git a/doc/reference_accessor.xml b/doc/reference_accessor.xml
index 1ad25f4..5b06a58 100644
--- a/doc/reference_accessor.xml
+++ b/doc/reference_accessor.xml
@@ -261,7 +261,7 @@ The result is still topologically valid.
<programlisting>
-- Get the minimum X in a buffer around a point
SELECT ST_X(ST_StartPoint(ST_BoundingDiagonal(
- ST_Buffer(ST_MakePoint(0,0),10)
+ ST_Buffer(ST_Point(0,0),10)
)));
st_x
------
diff --git a/doc/reference_bbox.xml b/doc/reference_bbox.xml
index 6b01777..15055ce 100644
--- a/doc/reference_bbox.xml
+++ b/doc/reference_bbox.xml
@@ -449,7 +449,7 @@ FROM (SELECT ST_MakePoint(x,y,z) As the_geom
--Get the extent of various elevated circular strings
SELECT ST_3DExtent(foo.the_geom) As b3extent
-FROM (SELECT ST_Translate(ST_Force_3DZ(ST_LineToCurve(ST_Buffer(ST_MakePoint(x,y),1))),0,0,z) As the_geom
+FROM (SELECT ST_Translate(ST_Force_3DZ(ST_LineToCurve(ST_Buffer(ST_Point(x,y),1))),0,0,z) As the_geom
FROM generate_series(1,3) As x
CROSS JOIN generate_series(1,2) As y
CROSS JOIN generate_series(0,2) As Z) As foo;
@@ -507,7 +507,7 @@ WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-989502.1875, 528439.
<refsection>
<title>See Also</title>
- <para><xref linkend="ST_MakePoint" />, <xref linkend="ST_Point" />, <xref linkend="ST_SetSRID" />, <xref linkend="ST_SRID" /></para>
+ <para><xref linkend="ST_Point" />, <xref linkend="ST_SetSRID" />, <xref linkend="ST_SRID" /></para>
</refsection>
</refentry>
diff --git a/doc/reference_constructor.xml b/doc/reference_constructor.xml
index 4b3ff05..8d80ee0 100644
--- a/doc/reference_constructor.xml
+++ b/doc/reference_constructor.xml
@@ -278,7 +278,7 @@ POLYGON((10 10, 10 11, 11 11, 11 10, 10 10))
<para>Create a line composed of two points.</para>
<programlisting>
-SELECT ST_AsText( ST_MakeLine(ST_MakePoint(1,2), ST_MakePoint(3,4)) );
+SELECT ST_AsText( ST_MakeLine(ST_Point(1,2), ST_Point(3,4)) );
st_astext
---------------------
@@ -346,7 +346,13 @@ SELECT gps.track_id, ST_MakeLine(gps.geom) As geom
<refsection>
<title>See Also</title>
- <para><xref linkend="ST_RemoveRepeatedPoints" />, <xref linkend="ST_AsEWKT" />, <xref linkend="ST_AsText" />, <xref linkend="ST_GeomFromText" />, <xref linkend="ST_MakePoint" /></para>
+ <para><xref linkend="ST_RemoveRepeatedPoints" />,
+ <xref linkend="ST_AsEWKT" />,
+ <xref linkend="ST_AsText" />,
+ <xref linkend="ST_GeomFromText" />,
+ <xref linkend="ST_MakePoint" />,
+ <xref linkend="ST_Point" />
+ </para>
</refsection>
</refentry>
@@ -573,10 +579,10 @@ POLYGONM((75.15 29.53 1,77 29 1,77.6 29.5 2,75.15 29.53 2))
<programlisting>
SELECT ST_MakePolygon( ST_ExteriorRing( ST_Buffer(ring.line,10)),
ARRAY[ ST_Translate(ring.line, 1, 1),
- ST_ExteriorRing(ST_Buffer(ST_MakePoint(20,20),1)) ]
+ ST_ExteriorRing(ST_Buffer(ST_Point(20,20),1)) ]
)
FROM (SELECT ST_ExteriorRing(
- ST_Buffer(ST_MakePoint(10,10),10,10)) AS line ) AS ring;
+ ST_Buffer(ST_Point(10,10),10,10)) AS line ) AS ring;
</programlisting>
<para>Create a set of province boundaries with holes
representing lakes. The input is a table of
diff --git a/doc/reference_editor.xml b/doc/reference_editor.xml
index 671235b..77c0fea 100644
--- a/doc/reference_editor.xml
+++ b/doc/reference_editor.xml
@@ -1542,8 +1542,8 @@ UPDATE sometable
<programlisting>
SELECT ST_AsText(the_geom) as line, ST_AsText(ST_Reverse(the_geom)) As reverseline
FROM
-(SELECT ST_MakeLine(ST_MakePoint(1,2),
- ST_MakePoint(1,10)) As the_geom) as foo;
+(SELECT ST_MakeLine(ST_Point(1,2),
+ ST_Point(1,10)) As the_geom) as foo;
--result
line | reverseline
---------------------+----------------------
diff --git a/doc/reference_lrs.xml b/doc/reference_lrs.xml
index 5fff62a..54ba9bb 100644
--- a/doc/reference_lrs.xml
+++ b/doc/reference_lrs.xml
@@ -277,7 +277,7 @@ SELECT ST_AsText(house_loc) As as_text_house_loc,
* ST_LineLocatePoint(street_line, house_loc) As integer) As street_num
FROM
(SELECT ST_GeomFromText('LINESTRING(1 2, 3 4)') As street_line,
- ST_MakePoint(x*1.01,y*1.03) As house_loc, 10 As startstreet_num,
+ ST_Point(x*1.01,y*1.03) As house_loc, 10 As startstreet_num,
20 As endstreet_num
FROM generate_series(1,3) x CROSS JOIN generate_series(2,4) As y)
As foo
diff --git a/doc/reference_measure.xml b/doc/reference_measure.xml
index 416e259..7f93c67 100644
--- a/doc/reference_measure.xml
+++ b/doc/reference_measure.xml
@@ -244,7 +244,7 @@ SELECT degrees(ST_Azimuth(ST_Point(25, 45), ST_Point(75, 100))) AS degA_B,
FROM generate_series(1,2,2) AS s
)
, points AS (
- SELECT s, rad1,rad2, ST_MakePoint(cos1+s,sin1+s) as p1, ST_MakePoint(s,s) AS p2, ST_MakePoint(cos2+s,sin2+s) as p3
+ SELECT s, rad1,rad2, ST_Point(cos1+s,sin1+s) as p1, ST_Point(s,s) AS p2, ST_Point(cos2+s,sin2+s) as p3
FROM rand
,cos(rad1) cos1, sin(rad1) sin1
,cos(rad2) cos2, sin(rad2) sin2
diff --git a/doc/reference_output.xml b/doc/reference_output.xml
index c40b075..dd75bb5 100644
--- a/doc/reference_output.xml
+++ b/doc/reference_output.xml
@@ -1572,13 +1572,13 @@ x3dfrag
<refsection>
<title>Examples</title>
- <programlisting><![CDATA[SELECT ST_GeoHash(ST_SetSRID(ST_MakePoint(-126,48),4326));
+ <programlisting><![CDATA[SELECT ST_GeoHash(ST_SetSRID(ST_Point(-126,48),4326));
st_geohash
----------------------
c0w3hf1s70w3hf1s70w3
-SELECT ST_GeoHash(ST_SetSRID(ST_MakePoint(-126,48),4326),5);
+SELECT ST_GeoHash(ST_SetSRID(ST_Point(-126,48),4326),5);
st_geohash
------------
diff --git a/doc/reference_overlay.xml b/doc/reference_overlay.xml
index 67c57d9..928b7df 100644
--- a/doc/reference_overlay.xml
+++ b/doc/reference_overlay.xml
@@ -513,7 +513,7 @@ When a (multi)polygon is passed as as the blade, its linear component
-- this is similar to the example we demonstrated in ST_BuildArea
SELECT ST_Split(circle, line)
FROM (SELECT
- ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(190, 190)) As line,
+ ST_MakeLine(ST_Point(10, 10),ST_Point(190, 190)) As line,
ST_Buffer(ST_GeomFromText('POINT(100 90)'), 50) As circle) As foo;
-- result --
@@ -522,7 +522,7 @@ FROM (SELECT
-- To convert to individual polygons, you can use ST_Dump or ST_GeometryN
SELECT ST_AsText((ST_Dump(ST_Split(circle, line))).geom) As wkt
FROM (SELECT
- ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(190, 190)) As line,
+ ST_MakeLine(ST_Point(10, 10),ST_Point(190, 190)) As line,
ST_Buffer(ST_GeomFromText('POINT(100 90)'), 50) As circle) As foo;
-- result --
diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml
index 2284c95..f1260a3 100644
--- a/doc/reference_processing.xml
+++ b/doc/reference_processing.xml
@@ -362,7 +362,7 @@ promisingcircle_pcount | lamecircle_pcount
to Mass state plane meter and then buffer to get measurements in meters;
SELECT ST_AsText(ST_Buffer(
ST_Transform(
-ST_SetSRID(ST_MakePoint(-71.063526, 42.35785),4269), 26986)
+ST_SetSRID(ST_Point(-71.063526, 42.35785),4269), 26986)
,100,2)) As octagon;
----------------------
POLYGON((236057.59057465 900908.759918696,236028.301252769 900838.049240578,235
diff --git a/doc/reference_sfcgal.xml b/doc/reference_sfcgal.xml
index ef1633c..f4e5557 100644
--- a/doc/reference_sfcgal.xml
+++ b/doc/reference_sfcgal.xml
@@ -419,7 +419,7 @@ around ST_StraightSkeleton (slower case).
<programlisting>
SELECT ST_MinkowskiSum(line, circle))
FROM (SELECT
- ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(100, 100)) As line,
+ ST_MakeLine(ST_Point(10, 10),ST_Point(100, 100)) As line,
ST_Buffer(ST_GeomFromText('POINT(50 50)'), 30) As circle) As foo;
-- wkt --
@@ -511,7 +511,7 @@ Output is a TIN.
<informaltable>
<tgroup cols="2">
<tbody>
- <row>
+ <row>
<entry><para><informalfigure>
<mediaobject>
<imageobject>
@@ -545,7 +545,7 @@ select ST_DelaunayTriangles(
)
);
</programlisting>
- </para></entry>
+ </para></entry>
</row>
</tbody>
</tgroup>
diff --git a/doc/reference_validation.xml b/doc/reference_validation.xml
index dc9d960..9299250 100644
--- a/doc/reference_validation.xml
+++ b/doc/reference_validation.xml
@@ -158,12 +158,12 @@ The optional <varname>flags</varname> parameter is a bitfield. It can have the f
SELECT gid, reason(ST_IsValidDetail(the_geom)), ST_AsText(location(ST_IsValidDetail(the_geom))) as location
FROM
(SELECT ST_MakePolygon(ST_ExteriorRing(e.buff), array_agg(f.line)) As the_geom, gid
-FROM (SELECT ST_Buffer(ST_MakePoint(x1*10,y1), z1) As buff, x1*10 + y1*100 + z1*1000 As gid
+FROM (SELECT ST_Buffer(ST_Point(x1*10,y1), z1) As buff, x1*10 + y1*100 + z1*1000 As gid
FROM generate_series(-4,6) x1
CROSS JOIN generate_series(2,5) y1
CROSS JOIN generate_series(1,8) z1
WHERE x1 > y1*0.5 AND z1 < x1*y1) As e
- INNER JOIN (SELECT ST_Translate(ST_ExteriorRing(ST_Buffer(ST_MakePoint(x1*10,y1), z1)),y1*1, z1*2) As line
+ INNER JOIN (SELECT ST_Translate(ST_ExteriorRing(ST_Buffer(ST_Point(x1*10,y1), z1)),y1*1, z1*2) As line
FROM generate_series(-3,6) x1
CROSS JOIN generate_series(2,5) y1
CROSS JOIN generate_series(1,10) z1
@@ -253,12 +253,12 @@ Self-intersection[150 150]
SELECT gid, ST_IsValidReason(the_geom) as validity_info
FROM
(SELECT ST_MakePolygon(ST_ExteriorRing(e.buff), array_agg(f.line)) As the_geom, gid
-FROM (SELECT ST_Buffer(ST_MakePoint(x1*10,y1), z1) As buff, x1*10 + y1*100 + z1*1000 As gid
+FROM (SELECT ST_Buffer(ST_Point(x1*10,y1), z1) As buff, x1*10 + y1*100 + z1*1000 As gid
FROM generate_series(-4,6) x1
CROSS JOIN generate_series(2,5) y1
CROSS JOIN generate_series(1,8) z1
WHERE x1 > y1*0.5 AND z1 < x1*y1) As e
- INNER JOIN (SELECT ST_Translate(ST_ExteriorRing(ST_Buffer(ST_MakePoint(x1*10,y1), z1)),y1*1, z1*2) As line
+ INNER JOIN (SELECT ST_Translate(ST_ExteriorRing(ST_Buffer(ST_Point(x1*10,y1), z1)),y1*1, z1*2) As line
FROM generate_series(-3,6) x1
CROSS JOIN generate_series(2,5) y1
CROSS JOIN generate_series(1,10) z1
-----------------------------------------------------------------------
Summary of changes:
doc/reference_accessor.xml | 2 +-
doc/reference_bbox.xml | 4 ++--
doc/reference_constructor.xml | 14 ++++++++++----
doc/reference_editor.xml | 4 ++--
doc/reference_lrs.xml | 2 +-
doc/reference_measure.xml | 2 +-
doc/reference_output.xml | 4 ++--
doc/reference_overlay.xml | 4 ++--
doc/reference_processing.xml | 2 +-
doc/reference_sfcgal.xml | 6 +++---
doc/reference_validation.xml | 8 ++++----
11 files changed, 29 insertions(+), 23 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list