-
Notifications
You must be signed in to change notification settings - Fork 409
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
Fix #9685 Add possibility to use vector layers inside GeoProcessing tool #9691
Conversation
… Geo_Processing tool * refactored the way the counter for each tool is handled * add possibility to configure a wpsUrl to be used as default source in the plugin otherwise the url from the layer will be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Zoom to feature selected incorrect
geoprocessing_zoom_incorect.mp4
- When switch layer, old feature remain selected
selected_.webm
- I tried to create a buffer layer, and then use this buffer layer to intersect with states layer. The result looks to be the buffer layer itself, instead of the intersection.
Intersection_wrong.webm
Please test extensively before submitting reviews.
* better clean up of highlighted features * fixed layer used in intersection process * fiz zoom to feature when selected
@offtherailz PR is ready again for review.
basically it's this request (trying to intersect two multipolygon) with this error
currently it tells you there is no intersection between the two. but we can better parse the result by dispatching a more appropriate notification |
@MV88 please fix the tests |
done |
Extracting from the request you posted the geometries,I found that the geometry sent look quite strange. ANYWAY Trying to intersect the geometries of the map attached (I repeat, obtained by copying and pasting your requests json and adding them to the map) using the geoprocessing tool, it worked. If you select the whole vector layers (for both) it works, doing an (probably unnecessary) collect WPS request. So I'd ask you to check better if this is not a bug of mapstore instead. General overviewI see in anycase you send a collect geometries for each layer:
We should change strategy to avoid upload/download/upload roundrip. Maybe this is an optimization, so it is not strictly mandatory, but could be useful to move complexity. We should use, whenever possible, WFS directly or sending directly the geometry when vector data locally is available. Here in this example (even if collect geometry is used as a wrapper), intersect is used with WFS input directly, this could be more efficient in general. https://docs.geoserver.org/main/en/user/services/wps/processes/chaining.html |
As discussed with @aaime, @MV88 is right, this issue on JTS causes the problems reported on some geometries
|
@offtherailz thank you
Let's enable this in gs stable to complete the review.
Let's wait for the review to be completed. Then we will consider to do this optimization as part of this PR or later. |
JAVAT_OPTS updated on |
Thank you @randomorder. |
It works perfectly now 👍 Applied various buffer and intersection combination and it produced the expected result every time. |
@ElenaGallo please test it in DEV |
@MV88 It is not possible to buffer or intersect a measurement layer. measurament.mp4 |
…GeoProcessing tool (geosolutions-it#9691) * Fix geosolutions-it#9685 Add possibility tyo use vector layers inside Geo_Processing tool * refactored the way the counter for each tool is handled * add possibility to configure a wpsUrl to be used as default source in the plugin otherwise the url from the layer will be used * refactor: moved some utilities in dedicated utils file * improved feedback in case wpsUrl is missing * improve feedback also for buffer tool * better handling misconfigured layer in buffer tool * Fixed review points * better clean up of highlighted features * fixed layer used in intersection process * fiz zoom to feature when selected * fix test
Description
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#9685
What is the new behavior?
you can use vector layers inside GeoProcessing plugin
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information