-
-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgr_alphaShape sometimes fails (parse error - invalid geometry) #1603
Comments
A story about it: V2:
|
Any updates on this? Tks. |
PostGIS has the alpha shape now, Please use PostGIS alpha shape. |
Please note that ST_AlphaShape is part of postgis_sfcgal which is not available on all distros. Better to use ST_ConcaveHull, which was redone recently. If you are using GEOS 3.11, it's much faster than old ST_ConcaveHull. As a side note, I got that error too. But only seems to happen if I don't pass in an alpha. |
Describe the bug
pgr_alphaShape sometimes fails with this exception:
We had this very weird situation:
Buidling an alphashape for 149 points succeeded, but it fails if we build the alphashape with 148 of the 149 points.
To Reproduce
Insert the points in sample_data.sql and execute the two sql commands at the bottom of the file to see the problem.
Expected behavior
A valid (alpha shape) hull
Sample Data
sample_data.zip
Specifications (please complete the following information):
SELECT version();
PostgreSQL 12.3 (Debian 12.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
SELECT postgis_full_version();
POSTGIS="3.0.1 ec2a9aa" [EXTENSION] PGSQL="120" GEOS="3.7.1-CAPI-1.11.1 27a5e771" PROJ="Rel. 5.2.0, September 15th, 2018" GDAL="GDAL 2.4.0, released 2018/12/14" LIBXML="2.9.4" LIBJSON="0.12.1" LIBPROTOBUF="1.3.1" WAGYU="0.4.3 (Internal)" TOPOLOGY RASTER
SELECT pgr_version();
3.0.2
Additional context
Despite the circumstance that we upgraded to pg12 & pgrouting3 only because of the new (easily usable) pgr_alphaShape function: Does this bug only affect Driving_Distance, or is pgr_alphaShape used in other pgr functions, too?
The text was updated successfully, but these errors were encountered: