if (!toGeo) {
// We are going to convert geophysics values to packed ones.
transform = transform.inverse();
}
offset = transform.transform(0);
scale = transform.derivative(Double.NaN);
if (isNaN(scale) || isNaN(offset)) {
// One category doesn't use a linear transformation. We can't deal with
// that with "Rescale" or "Piecewise". Fallback on our "SampleTranscode".
canRescale = false;
canPiecewise = false;