-
-
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
fixed pgr_pointsAsPolygon breaking when comparing strings in WHERE clause #1193
Conversation
You can use this query to test with & without this update. Before, it should throw a syntax error from pgr_alphaShape. After, it should execute as normal.
|
Hello @iboates There is a typo on a test file (I really dont know how it came to pgRouting
to this
in your PR, so that tests pass and then I am able to merge please FYI, I would really appreciate if you try the new function on some real data |
@cvvergara Is there still a separate function for |
@iboates _pgr_alphaShape (its the backend & does the calculation) & pgr_alphaShape(pre calculates the delauny triangles and calls the backend function) <--- so things look like this now (on v3.0.0 for sep) |
@cvvergara I tested on the 3.0.0 development docker image and it is no longer an issue. The fact that the geometry is passed directly and not via a SQL string means that there is no problem with characters becoming unescaped. |
@cvvergara Tests now pass |
Fixes #1192 .
Changes proposed in this pull request:
pgr_pointsAsPolygon()
with escaped quotes, stopping a failure if a string comparison is specified in itsWHERE
clause in the subsequent call topgr_alphaShape()
@pgRouting/admins