File tree Expand file tree Collapse file tree 9 files changed +46
-12
lines changed
Expand file tree Collapse file tree 9 files changed +46
-12
lines changed Original file line number Diff line number Diff 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 ) :
Original file line number Diff line number Diff 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] ;
Original file line number Diff line number Diff line change 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
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
4451Description
4552-------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ Additional Examples
177177See Also
178178-------------------------------------------------------------------------------
179179
180- * :doc: `pgr_alphaShape ` - Alpha shape computation
181180* :doc: `sampledata `
182181
183182.. rubric :: Indices and tables
Original file line number Diff line number Diff 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 ``
Original file line number Diff line number Diff 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 >`__:
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55/* -- q1 */
66SELECT 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
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ geom geometry;
4040delauny_query TEXT ;
4141
4242BEGIN
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
8384COST 100 ;
8485
8586COMMENT 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' ;
You can’t perform that action at this time.
0 commit comments