GH-4275: Reject non-finite GeoSPARQL transformation results

Reject non-finite transformed X/Y and consumed transformed Z with
TransformException before BigDecimal precision cleanup can throw
NumberFormatException.

Preserve existing precision rounding and source Z/M handling, including
ignoring unused target dimensions from 2D transformations.

Cover NaN and both infinities across X/Y/Z, finite 2D and 3D Z/M
semantics, and a 2D-to-3D transform with unused NaN output.
2 files changed