Skip to content

#9241 long profile tool - #9253

Merged
offtherailz merged 3 commits into
geosolutions-it:masterfrom
MV88:9241_long_profile_tool
Jun 28, 2023
Merged

offtherailz merged 3 commits into
geosolutions-it:masterfrom
MV88:9241_long_profile_tool

Conversation

@MV88

@MV88 MV88 commented Jun 26, 2023

Copy link
Copy Markdown
Contributor

Description

This pr introduce a new plugin called longitudinal plugin that works in combination of a new wps process gs:LongitudinalProfile that can be found here

to review this locally i suggest to install that jar in a local geoserver proxying to it and publish sfdem layer too,, you can found it here

also by default this is not enabled in main viewer and
can only added in a context

it should also not conflict with the current similar implementation here

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#9241

What is the new behavior?

Now you can use the longitudinal profile plugin needs wps on geoserver

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@MV88 MV88 added this to the 2023.02.00 milestone Jun 26, 2023
@MV88
MV88 requested a review from offtherailz June 26, 2023 16:45
@MV88 MV88 self-assigned this Jun 26, 2023
@MV88 MV88 mentioned this pull request Jun 26, 2023
5 of 12 tasks
@tdipisa tdipisa linked an issue Jun 27, 2023 that may be closed by this pull request
25 tasks
@tdipisa tdipisa added the New Feature used for new functionalities label Jun 27, 2023

@offtherailz offtherailz left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to test the upload and the 3D extensively. Anyway I found the following issues.

  • Upload file doesn't work.
screencast-localhost_8081-2023.06.27-12_31_25.webm
  • Having 2 ways to edit settings is unuseful, remove one
    image

  • The info tab uses Icons, but it is not clear what are the values. Add at least some labels here, what are the values shown? For instance my first impression was that the arrows indicate max and min altitude, but they indicate the active and passive differences in altitude.

image

  • "Points" string is not localized (see screen above)

  • the marker is not aligned in 3d mode

screencast-localhost_8081-2023.06.27-12_33_00.webm
  • Maximize do not fit the window, overlaps on the right
screencast-localhost_8081-2023.06.27-12_34_04.webm
  • When I draw a profile, the geometry is centered without taking into account the panel displacement. Fix this or otherwise is better to not center the geometry at all.
screencast-localhost_8081-2023.06.27-12_57_09.webm
  • When I draw outside, I see there is a process failure, but it is not notified to the user. ( Maybe I missed some notifications?
screencast-localhost_8081-2023.06.27-13_00_04.webm
  • You regenerated the icons, but apparently no new icon has been added to the proper folder. Please commit also the new icon or revert your chnages to the iconset.

Comment thread build/devServer.js Resolved
Comment thread package.json Resolved
import {getLayerTitle} from "../utils/LayersUtils";
import {currentLocaleSelector} from "./locale";


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed new line

Suggested change

@tdipisa

tdipisa commented Jun 27, 2023

Copy link
Copy Markdown
Member

Here my further feedback on points highlighted above

  • Upload file doesn't work.

It was working before, maybe a regression from the previous PR status

  • Having 2 ways to edit settings is unuseful, remove one

I can agree. I can provide 2 options for this:

  • simply remove the preferences tab if this doesn't require much time (I think it should be a quick and easy thing)
  • otherwise leave this as it is for now
  • The info tab uses Icons, but it is not clear what are the values. Add at least some labels here, what are the values shown? For instance my first impression was that the arrows indicate max and min altitude, but they indicate the active and passive differences in altitude.

I agree. thank you for notifying that @offtherailz

  • "Points" string is not localized (see screen above)

I agree. thank you for notifying that @offtherailz

  • the marker is not aligned in 3d mode

I agree. thank you for notifying that @offtherailz
It is not a request for now to have a complete support for 3D. Therefore if this requires too much time, simly disable the tool when in 3D mode as I've initially requested

  • Maximize do not fit the window, overlaps on the right

I assume you would like to have the same of widgets. In this case I agree with that. fully covering the UI is not so nice.

  • When I draw a profile, the geometry is centered without taking into account the panel displacement. Fix this or otherwise is better to not center the geometry at all.

I agree.

  • When I draw outside, I see there is a process failure, but it is not notified to the user. ( Maybe I missed some notifications?

This is something we have to definitely handle well. In these cases (and this also happens for example if you load a DXF file specifying a wrong projection) the WPS return with an exception like this one:

<?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="http://localhost:8080/geoserver/ows?" version="1.0.0">
	<wps:Process wps:processVersion="1.0.0">
		<ows:Identifier>gs:LongitudinalProfile</ows:Identifier>
		<ows:Title>Longitudinal Profile Process</ows:Title>
		<ows:Abstract>The process splits provided linestring to segments, that are no bigger then distance parameter, then evaluates altitude for each point and builds longitudinal profile. Altitude will be adjusted if adjustment layer is provided as parameter. Also supports reprojection to different crs</ows:Abstract>
	</wps:Process>
	<wps:Status creationTime="2023-06-27T12:46:53.927Z">
		<wps:ProcessFailed>
			<ows:ExceptionReport version="1.1.0">
				<ows:Exception exceptionCode="NoApplicableCode">
					<ows:ExceptionText>Process failed during execution
org.opengis.coverage.PointOutsideCoverageException: Coordinate (612.658,086, 4.915.061,527) is outside coverage.
Coordinate (612.658,086, 4.915.061,527) is outside coverage.</ows:ExceptionText>
				</ows:Exception>
			</ows:ExceptionReport>
		</wps:ProcessFailed>
	</wps:Status>
</wps:ExecuteResponse>

We have to properly handle the ows:ExceptionReport and notify the user with a popup message in the middle of the screen as we usually do for other plugins.

  • You regenerated the icons, but apparently no new icon has been added to the proper folder. Please commit also the new icon or revert your chnages to the iconset.

I've nothing to say in this regard.

@MV88
MV88 requested a review from offtherailz June 27, 2023 16:22
@MV88

MV88 commented Jun 27, 2023

Copy link
Copy Markdown
Contributor Author

The info tab uses Icons, but it is not clear what are the values. Add at least some labels here, what are the values shown? For instance my first impression was that the arrows indicate max and min altitude, but they indicate the active and passive differences in altitude.

I'll with third option, but i had prefer something different
image

Upload file doesn't work.

i was able to replicate, you have to draw and then try to import

Having 2 ways to edit settings is unuseful, remove one
I can agree. I can provide 2 options for this:
simply remove the preferences tab if this doesn't require much time (I think it should be a quick and easy thing)
otherwise leave this as it is for now

going to remove a Tab

You regenerated the icons, but apparently no new icon has been added to the proper folder. Please commit also the new icon or revert your changes to the iconset.

yeah i'll try to restore original files

other reports are fixed

@offtherailz offtherailz left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • fix failing tests
  • fix inconsistent state of UI (tabs with emtpy chart and empty data in both tabs) when drawing out of the box
    image
  • I noticed that selection of lines in 3d do not work
    screencast-localhost_8081-2023.06.28-10_07_57.webm maybe is better to disable it at all?
  • Inline comments
  • icon changes are still present.

Minor things

  • PDF may contain also the info shown in the info tab.
  • PDF on full screen overflows the page size and goes in the next page, like this. I suggest to reduce a little the vertical size of the chart to make the pdf generate at full screen a 1 page result (or if you need to add the info too, you will need 2 pages, so you can ignore this point.
    Longitudinal profile (2).pdf
  • Selection of the layer. SelectionThis should be better in recognize the two steps (otherwise Selected label" appended string looks strange.
    image
    I suggest to show:
  • IF layer is not selected ""Please select layer in TOC and click on the line feature to generate profile",
  • IF layer is selected: ".Selected layer: {layerName}
    Click on the line feature to generate the profile."

Comment thread web/client/translations/data.it-IT.json Resolved
Comment thread web/client/translations/data.it-IT.json Resolved
@MV88
MV88 force-pushed the 9241_long_profile_tool branch from 5240298 to 8ec4bbf Compare June 28, 2023 09:19
@tdipisa

tdipisa commented Jun 28, 2023

Copy link
Copy Markdown
Member
  • PDF may contain also the info shown in the info tab.
  • PDF on full screen overflows the page size and goes in the next page, like this. I suggest to reduce a little the vertical size of the chart to make the pdf generate at full screen a 1 page result (or if you need to add the info too, you will need 2 pages, so you can ignore this point.

These two points can be excluded for the moment. @offtherailz please can you review again?

@MV88
MV88 requested a review from offtherailz June 28, 2023 12:39
@offtherailz
offtherailz merged commit ef62d22 into geosolutions-it:master Jun 28, 2023
@MV88

MV88 commented Jun 29, 2023

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C265-ATOLCD-2023-DEV_MS_CNR New Feature used for new functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Longitudinal profile plugin

3 participants