CADWRDeltaModeling / csdp

Cross Section Development Program
1 stars 0 forks source link

Create XSection Profile by sampling bathymetry points along the cross section line #3

Open dwr-psandhu opened 11 months ago

dwr-psandhu commented 11 months ago

Currently CSDP is able to place cross-sections at regular intervals (user specified). However these cross sections then have to be drawn manually by looking at the cloud of points within the cross-section thickness (perpendicular depth from the x section plane)

Especially for DEM points, these cross-section profiles can be created by sampling along the cross-section line and estimating the depth (averaging, interpolation, nearest-neighbor).

If the resulting cross-section profile has too many redundant points, a line simplification algorithm can be applied to result in a fairly good profile.

bradtom commented 11 months ago

Line simplification is working. Next I will add features to the cross-section window: 1) A "Create XS" button, 2) an epsilon slider, 3) minimum year specification combo box, 4) maximum year combo box. Changes to options 2-4 will be saved to global variables and remembered until session ends or user modifies them again. Adding an automatic cross-section will also create a metadata entry. Then I will add features to the main window: 1) Automatically create cross-sections for all existing cross-section lines in selected centerline, or for selected cross-section line--probably include a warning and an "are you sure" dialog if any of the cross-section lines already have an existing drawing. image

dwr-psandhu commented 11 months ago

For the metadata, include the simplification epsilon, min and max year. Nice work!