UTM coordinates (s2p default output CRS) commonly have northing coordinates ranging up to 10 millions meters. Hence these coordinates need to be represented with double precision.
This was the case in former s2p version (up to version 1.0b17). In PR #16, double precision was mistakenly switched to single precision (my bad). The current PR fixes this bug. Many thanks to Alvaro and @gfacciol for spotting it!
Single precision has limited accuracy when representing large numbers: for example, numbers between 4 millions and 8 millions stored in single precision are accurate up to 0.5. See https://en.wikipedia.org/w/index.php?title=Single-precision_floating-point_format
UTM coordinates (
s2p
default output CRS) commonly have northing coordinates ranging up to 10 millions meters. Hence these coordinates need to be represented with double precision.This was the case in former
s2p
version (up to version1.0b17
). In PR #16, double precision was mistakenly switched to single precision (my bad). The current PR fixes this bug. Many thanks to Alvaro and @gfacciol for spotting it!