georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

Longitudinal profile MapStore plugin #544

Closed tdipisa closed 1 year ago

tdipisa commented 2 years ago

It is requested to migrate the Profil en long plugin to MapStore by creating a new extension for it as it has already been done for Cadastrapp, Urbanisme and many other extensions.

The functionalities of the plugin are based on a backend counterpart that is represented by a WPS process in GeoServer that is responsible of generating the longitudinal profile.

The longitudinal WPS process is ready in GeoSolutions DEV and there is an example of request and response in the README file. The code of the old plugin for mapfishapp is available here for reference if needed.

As far as the existing plugin functionalities are concerned:

image

image

Other useful information

Additional DEM data for the WPS backend are available if needed. https://geoservices.ign.fr/rgealti has download links for 1m and 5m datasets for every region of france.

tdipisa commented 2 years ago

@alexander-fedorenko let's work first on the design using a side panel.

tdipisa commented 2 years ago

@catmorales few points below to show our design and the progress on it.

  1. Once the page is loaded, user can see a menu item in sidebar

image

  1. Clicking on "Draw profile" will start the drawing session, the standard line creation workflow when the user clicks on the map and clicks once more on the end point to complete the drawing. Popovers on the map will guide you through the drawing process.

image

  1. Clicking on the “Load GML file” the usual import interface will open. Once the GML file is imported, a line from the GML file will be drawn on the map and the side panel will open to show the result of the process

image

  1. Clicking on the “Selection to profile” menu item the selection process is activated. The user will see a popover near the pointer on the map guiding through the steps needed for generation. The popover will also show the name of the selected layer once the user selects it in TOC.

image

  1. The parameters can be changed prior to the profile drawing, the GML loading or the usage of a selected feature. Clicking on the menu item the modal will open so that the user will be able to select the layer and resolution (distance) to be user for the process (this is configurable from plugin config)

image

A Side panel will display the result of the profile generation, it will have three tabs just like the original plugin.

image

image

image

landryb commented 2 years ago

great stuff, that all looks awesome and good - minor nit, sure the previous version in mfapp allowed to import a GML file, but in 2022 i think geojson is better :) That's also what is mentioned/specified in comment 1.

tdipisa commented 2 years ago

That's also what is mentioned/specified in comment 1

yes indeed, thank you so much. @alexander-fedorenko please correct the mockup above and keep note about that: we have to effectively use geojson and not GML.

tdipisa commented 2 years ago

Work in pending review here.