Skip to content

GeoProcessing tool review #9367

Description

@tdipisa

Description

This issue collects a few findings I discovered while checking the tool here.

  1. It seems all times I try to use the Intersection process, the tool returns the same error. This need to be investigated
    image

Below the WPS output:

<?xml version="1.0" encoding="UTF-8"?>
<wps:ExecuteResponse xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" service="WPS" serviceInstance="https://gs-stable.geosolutionsgroup.com/geoserver/ows?authkey=f7a11038-a04d-4519-b778-d0994232e9ae&amp;" version="1.0.0">
	<wps:Process wps:processVersion="1.0.0">
		<ows:Identifier>gs:IntersectionFeatureCollection</ows:Identifier>
		<ows:Title>Intersection of Feature Collections</ows:Title>
		<ows:Abstract>Spatial intersection of two feature collections, including combining attributes from both.</ows:Abstract>
	</wps:Process>
	<wps:Status creationTime="2023-08-29T13:49:41.590Z">
		<wps:ProcessFailed>
			<ows:ExceptionReport version="1.1.0">
				<ows:Exception exceptionCode="NoApplicableCode">
					<ows:ExceptionText>Failed to retrieve value for input first feature collection</ows:ExceptionText>
				</ows:Exception>
			</ows:ExceptionReport>
		</wps:ProcessFailed>
	</wps:Status>
</wps:ExecuteResponse>

Does it maybe depends on the dataset used fro this test? In this case an hardening is requested.

  1. There is no need to have the validation icon clickable as a button
    image

  2. Let's use simply GeoProcessing and Select the process to use
    image

  3. One of the main goal of a tool should be to display the result clearly without letting the user to find it. It is not the case here, where the result of the geoprocessing tools is not visible at the end:

    • Both Buffer and intersection layers are appended in TOC and for this reason they are not visible
      Image

    • At the end of the process the map should zoom to the interested area covered by the geometry produced by the process. At the same time the layer should have a good default style to properly highlight it and make it more evident. Where is the intersection below? This test has been performed using this map.
      Image

    • When selecting the layer result of a process, the "zoom to" doesn't appear in TOC toolbar but it should be.

  4. Tow consecutive runs of the same process (and also more making the problem incremental) generate an inconsistent behavior in TOC. This test has been performed using this map.
    Image

    • I think it is totally useless to create at each run a new group in TOC and it must be avoided
    • In addition the layer name should have some sense, but it is also true the user can change it in a second moment throug layer settings (so nothing to do for this now)
  5. When switching from a geoprocess to another, all the form should be cleaned (see also fix #9367 review of geo processing tool #9351). At the moment the previous selection performed by the client remains and it is not coherent with the state of the form
    Image

  6. A more coherent tool icon must be created
    Image

  7. If you click on the tool icon with the catalog tool opened the tool's panel is not visible. Visibility rules and thees kind of interactions must be better managed
    Image

  8. Typo to be fixed for the following notification message
    Image

  9. As I indicated here in the original issue, the request was to implement an extendable WPS tool also for future evolutions while, talking with @offtherailz that reviewed the work, it seems the current implementation it's overdressed on the two currently supported processes. An abstraction level in the middle should be present so, we have to discuss about thatWhat kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

Activity

  1. assigned
    and
    MV88
    and unassigned on Aug 29, 2023
  2. added this to the 2023.02.00 milestone on Aug 29, 2023
  3. linked a pull request that will close this issueFix for Longitudinal profile. #9358on Aug 30, 2023
  4. MV88 commented on Sep 4, 2023

    @MV88
    Contributor

    It seems all times I try to use the Intersection process, the tool returns the same error. This happen on GS-STABLE where the WPS community module has been installed using this version. This need to be investigated

    This was reported twice times in the PR here and here
    and it could be due to the version used by the gs-stable which is on old 2.21, instead of gs-main which is on 2.24

    consider that simply changing the geoserver to make the request it is enough to make this working.
    We might investigate where this is fixed to suggest start using a minimum version of geoserver?

    Also you report the link to the longitudinal profile, but that is not impacting this task

    • not related to the codebase, I suppose

    There is no need to have the validation icon clickable as a button

    • sure ok

    One of the main goal of a tool should be to display the result clearly without letting the user to find it. It is not the case here, where the result of the geoprocessing tools is not visible at the end:

    the difference at that scale between the normal feature and the buffered one is subtle, Also the highlight layer by implementation is using a system that appends layer on top (these are called additionalLayers) so the highlight can hide the generated one.

    • at this point we can turn off highlight mode as soon the user clicks run
    • and move the new groups at the top so they are not hidden

    At the end of the process the map should zoom to the interested area covered by the geometry produced by the process. At the same time the layer should have a good default style to properly highlight it and make it more evident.

    • sure, I can also change the style of the created layers, it's a orangish with white fill color opacity 0.3

    details here

    {
      "kind": "Fill",
      "outlineWidth": 3,
      "outlineColor": "#ffac12",
      "color": "#ffffff",
      "fillOpacity": 0.3
    }
    

    image
    image

    When selecting the layer result of a process, the "zoom to" doesn't appear in TOC toolbar but it should be.

    • Ok can check this

    When switching from a geoprocess to another, all the form should be cleaned

    • ok will fix

    As I indicated https://github.com/geosolutions-it/MapStore-C265/issues/4#issue-1700382132 in the original issue, the request was to implement an extendable WPS tool also for future evolutions while, talking with @offtherailz that reviewed the work, it seems the current implementation it's overdressed on the two currently supported processes. An abstraction level in the middle should be present so, we have to discuss about that

    • I have discussed this with @offtherailz and I'll provide an update to make things more abstracted can more easily upgradable in the future, this can require quite some time

    A more coherent tool icon must be created

    • well I'm open to suggestion, what about a layer icon with a little cog in a corner?

    or this ?
    image

    If you click on the tool icon with the catalog tool opened the tool's panel is not visible. Visibility rules and these kind of interactions must be better managed

    • same as above, I'm open to suggestion. Consider that we do not have a layout manager system so either and this has effect on the z-index. maybe a dedicated issues is needed. Anyway I saw that other tools are closing existing opened panel on the right. so wee can use the same approach even if is ugly

    Typo to be fixed for the following notification message

    • ok, will fix
  5. added
    BackportNeeded
    on Sep 18, 2023
  6. added a commit that references this issue on Sep 20, 2023
    8deccc2
  7. self-assigned this
    on Sep 22, 2023
  8. added a commit that references this issue on Sep 25, 2023
    725656c
  9. added a commit that references this issue on Sep 26, 2023
    215931b
  10. removed
    BackportNeeded
    on Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions