Closed tdipisa closed 1 year ago
@alexander-fedorenko let's work first on the design using a side panel.
@catmorales few points below to show our design and the progress on it.
A Side panel will display the result of the profile generation, it will have three tabs just like the original plugin.
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.
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.
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:
Download the resulting image: for the charts the same library used by MS can be used (PlotlyJS). It should natively provide the ability to download the chart
Export the profile: as present in the older plugin it should be possible to export the profile params in CSV format. This functionality is provided in the old mapfishapp by a dedicated webservice (eg. https://geoportail.lepuyenvelay.fr/mapfishapp/ws/csv/) but the MS extension must not rely on mapfishapp components, the aim is to replace it, so the CSV should be generated client side possiblyfrom the WPS response
Set up one or more support layers (DTM, DEM,…) in the plugin: this functionality is referring to the existing functionality depicted below. This allows the user to set up the parameters for the WPS request and all of these things are already supported by the WPS backend. It is only needed to reproduce the same and make it possible to configure the desired options for dropdowns
A functionality which was present on the old plugin but, but absent in the plugin installed in GeoSolutions DEV, is the function called "profile from a selection" which allows after a selection of a layer feature of type line, to draw the profile of this entity (see the option "Selection to profile" in the image below)
The use case is as follows:
For this it would be good to provide an option in the new MS tool to allow the user to select a feature in map of a selected layer in TOC, display that selection and use the related geometry line for the WPS.
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.