tuiview icon indicating copy to clipboard operation
tuiview copied to clipboard

Multiple Profiles in the Same Window

Open jlaura opened this issue 1 year ago • 4 comments

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?

jlaura avatar Jun 07 '24 13:06 jlaura

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...

gillins avatar Jun 08 '24 03:06 gillins

@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?

jlaura avatar Jun 08 '24 12:06 jlaura

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....

gillins avatar Jun 09 '24 23:06 gillins

@jlaura I've just merged https://github.com/ubarsc/tuiview/pull/89. Hopefully this hasn't mucked up any PR your are currently working on...

gillins avatar Oct 25 '24 04:10 gillins