ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Multiple Profiles in the Same Window #87

Open jlaura opened 1 month ago

jlaura commented 1 month ago

I have 2+ DTMs that I am seeking to compare. To compare, I am attempting to draw a transect and then extract 2+ profiles. I can get a single profile to render and see that the profile tool code has support for different pen colors if the polyline is a list. This leads me to believe that multiple concurrent profiles may be supported.

If so, how does one render two profiles from two layers in the same profile window?

gillins commented 1 month ago

When you are displaying 3 bands (in RGB mode) all 3 bands are plotted.

Currently I don't support profiling bands that are not currently displayed because it uses the pixel data it has in memory to create the profile. However, if you feel it should be able to profile other bands I'd be open to a PR to add this...

jlaura commented 1 month ago

@gillins Cool! Glad a PR would be welcome. Would you be open to a PR that added the ability to profile simultaneously from different layers?

gillins commented 1 month ago

Yes, indeed open to it. I'm interested to see how you plan to achieve this though - if the layer isn't currently being displayed you'll have to read it in at some stage....