Skip to content

Commit 8741d4c

Browse files
committed
Deprecating pgr AlphaShape
- Remove use on doc, docqueires, pgtap - (doc) documenting changes on NEWS and release notes (cherry picked from commit a9441ae)
1 parent fbe1fa7 commit 8741d4c

File tree

9 files changed

+46
-12
lines changed

9 files changed

+46
-12
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ milestone for 3.8.0
124124

125125
**Deprecation of functions.**
126126

127+
* [#2749](https://github.com/pgRouting/pgrouting/issues/2749):
128+
pgr_alphaShape
127129
* [#2754](https://github.com/pgRouting/pgrouting/issues/2754):
128130
pgr_analyzeOneWay
129131
* [#2753](https://github.com/pgRouting/pgrouting/issues/2753):

doc/_static/page_history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ var filesArr = [
261261
]),
262262
new createInfo('pgr_alphaShape', '2.0', [
263263
{ v: '2.1', n: 'src/driving_distance/doc/dd_alphashape'},
264-
{ v: '2.3', n: 'src/alpha_shape/doc/pgr_alphaShape'}
264+
{ v: '2.3', n: 'src/alpha_shape/doc/pgr_alphaShape'}, 3.8
265265
]),
266266

267267
];

doc/alpha_shape/pgr_alphaShape.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
.. rubric:: Availability
2222

23+
* Version 3.8.0
24+
25+
* Deprecated function.
26+
2327
* Version 3.0.0
2428

2529
* Breaking change on signature
@@ -39,7 +43,10 @@
3943
* New official function.
4044
* Renamed from version 1.x
4145

42-
.. rubric:: Support
46+
47+
.. include:: migration.rst
48+
:start-after: migrate_pgr_alphaShape_start
49+
:end-before: migrate_pgr_alphaShape_end
4350

4451
Description
4552
-------------------------------------------------------------------------------

doc/driving_distance/pgr_drivingDistance.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ Additional Examples
177177
See Also
178178
-------------------------------------------------------------------------------
179179

180-
* :doc:`pgr_alphaShape` - Alpha shape computation
181180
* :doc:`sampledata`
182181

183182
.. rubric:: Indices and tables

doc/src/migration.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,36 @@ Results can be different because of the changes.
2424
.. contents:: Contents
2525
:depth: 2
2626

27+
.. migrate_pgr_alphaShape_start
28+
29+
Migration of ``pgr_alphaShape``
30+
-------------------------------------------------------------------------------
31+
32+
Starting from `v3.8.0 <https://docs.pgrouting.org/3.8/en/migration.html>`__
33+
34+
**Before Deprecation:** The following was calculated:
35+
36+
* An alphaShape was calculated
37+
38+
**After Deprecation:**
39+
40+
PostGIS has two ways of generating alphaShape.
41+
42+
If you have SFCGAL, which you can install using
43+
44+
::
45+
46+
CREATE EXTENSION postgis_sfcgal
47+
48+
* Since PostGIS 3.5+ use `CG_AlphaShape <https://postgis.net/docs/CG_AlphaShape.html>`__
49+
* For PostGIS 3.5+ use the old name ``ST_AlphaShape``
50+
51+
Other PostGIS options are
52+
* `ST_ConvexHull <https://postgis.net/docs/ST_ConvexHull.html>`__
53+
* `ST_ConcaveHull <https://postgis.net/docs/ST_ConcaveHull.html>`__
54+
55+
.. migrate_pgr_alphaShape_end
56+
2757
.. migrate_pgr_createTopology_start
2858
2959
Migration of ``pgr_createTopology``

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ milestone for 3.8.0
165165

166166
.. rubric:: Deprecation of functions.
167167

168+
* `#2749 <https://github.com/pgRouting/pgrouting/issues/2749>`__:
169+
pgr_alphaShape
168170
* `#2754 <https://github.com/pgRouting/pgrouting/issues/2754>`__:
169171
pgr_analyzeOneWay
170172
* `#2753 <https://github.com/pgRouting/pgrouting/issues/2753>`__:

doc/withPoints/pgr_withPointsDD.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ See Also
267267
-------------------------------------------------------------------------------
268268

269269
* :doc:`pgr_drivingDistance`
270-
* :doc:`pgr_alphaShape`
271270
* :doc:`sampledata`
272271

273272
.. rubric:: Indices and tables

docqueries/alpha_shape/alphashape.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SET
55
/* -- q1 */
66
SELECT ST_Area(pgr_alphaShape((SELECT ST_Collect(geom)
77
FROM vertices), 1.5));
8+
WARNING: pgr_alphashape(geometry,double precision) deprecated function on v3.8.0
89
st_area
910
---------
1011
9.75

sql/alpha_shape/alphaShape.sql

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ geom geometry;
4040
delauny_query TEXT;
4141

4242
BEGIN
43+
RAISE WARNING 'pgr_alphashape(geometry,double precision) deprecated function on v3.8.0';
4344
delauny_query = format($$
4445
WITH
4546
original AS (
@@ -83,11 +84,4 @@ LANGUAGE plpgsql VOLATILE STRICT
8384
COST 100;
8485

8586
COMMENT ON FUNCTION pgr_alphashape(geometry, FLOAT)
86-
IS 'pgr_alphaShape
87-
- Parameters
88-
- An SQL with columns: geom
89-
- Optional Parameters
90-
- alpha := 0
91-
- Documentation:
92-
- ${PROJECT_DOC_LINK}/pgr_alphaShape.html
93-
';
87+
IS 'pgr_alphaShape deprecated function on v3.8.0';

0 commit comments

Comments
 (0)