Open PaulWessel opened 11 months ago
I think this was fixed, right?
No, and on the road.
Strange things going on. I ran the grdview twice: One with -Qc (image on left) and another with -Qs (surface polygons on right). This yields correct for -Qs and a bad clip(?) for -Qc:
However, if I edit the two PostScript files and remove all the stuff that plots the color surface or color image, we are left with basic setup, clip paths, and basemap. The diff of those edited files show no differences. So same clip path, which works fine for surfaces but not for tiling or images. Conclusion must be that the images and the tiling are not doing the right thing, even though they happen in separate branches in grdview code. Using polygon tiles (-T) shows the same bad clipping in grdview (but not in grdimage as the top plot shows).
Clearly, the pixels that do show (on the left image) are in the right place (comparing to surface on right) so it would seem the loop over pixels or tiles is skipping those locations since the clip is the same? Adding a vertical scale (-JZ3c) correctly strengths this in the z-dimensions but the clipping is the same. Any thoughts on how to figure this out is appreciated.
Oops, grdview tiling (-T) also places this in the wrong place:
Looks rotated and shifted.
Reduced the case reported on the forum reduced to this simple example:
Same plot but with two different modules. The left plot uses grdview which has a bug while grdimage does not.
Both -Qi and -Qc give the same problem, but doing tiles (-Qs) is unaffected. Suspicion is that the computed mask polygon in grdview is not properly 3-D projected, while grdimage does not have such a thing.