WCPS scale operation not to ignore single-cell trimmings
|Reported by:||pcampalani||Owned by:||pcampalani|
|Keywords:||scale narrow trim||Cc:|
The WCPS scaling operator skips every dimension where the cell domain elements' extremes coincide, as a method to recognize slicings, which are correctly supposed to be left out.
However it can happen that a narrow trim selects a single cell anyway, but for integrity of coverage dimensionality, that dimension must not be left out.
for c in (eobstest) return encode( scale( d[t("1950-01-01"), Long(43:44), Lat(24:24)], imageCrsDomain(c[t("1950-01-01T01"), Long(43:44), Lat(24:24)])) "csv")
Becomes a RasQL :
select csv(scale( c[0,36:38,103:103], [36:38] )) from eobstest AS c
It should translate instead to:
select csv(scale( c[0,36:38,103:103], [36:38,103:103] )) from eobstest AS c