| Age | Commit message (Collapse) | Author |
|
When transforming coordinates outside the grid model the deformation
operation failed spectatularly. This is now fixed by checking that the
coordinate is inside the grid. If it isn't an error is returned and a
debugging log message is issued.
Closes #934
|
|
Previous to this commit cct would return the following
$ cct -c 2,3,4 -t 0 -I +proj=cart +ellps=GRS80
BLAH 3579685.56545 508396.50343 5236837.50646
8.0832413787 55.5578176654 99.9833 0.0000
8.0832413787 55.5578176654 99.9833 0.0000
where the second input should not be parsed as a valid coordinate.
With this commit that no longer happens and the input is returned
verbatim back to the user.
Closes #932
|
|
|
|
|
|
With this it is possible to skip the header when transforming
coordinates from a file.
|
|
|
|
|
|
This uses a linear approximation of tan(x+pi/4) for better precision at small latitudes.
As a result points of latitude 0 maintain a 0 Y coordinate and 0,0 is transformed to 0,0
|
|
|
|
original ellipsoid parameters (before any projection mess with them)
|
|
Add --skip-lines option to cct
|
|
|
|
|
|
This uses a linear approximation of tan(x+pi/4) for better precision at small latitudes.
As a result points of latitude 0 maintain a 0 Y coordinate and 0,0 is transformed to 0,0
|
|
|
|
original ellipsoid parameters (before any projection mess with them)
|
|
With this it is possible to skip the header when transforming
coordinates from a file.
|
|
operations
|
|
|
|
Check for sweep_axis being an empty string in PJ_geos
|
|
Rename CMake infrastructure to remove 4
|
|
Print help
|
|
Validate pipeline units
|
|
Previously gie would return "Nothing to do" when called without
arguments. With this change the help text is returned instead.
|
|
|
|
Previously when calling cct without any arguments the following
message would be presented to the user:
cct: Bad transformation arguments - ((null))
'cct -h' for help
With this change the help instructions are returned instead.
|
|
|
|
Since units are validated during pipeline setup we need to make sure
that axisswap can be used for more than just projected outputs.
|
|
As suggested in [0], steps in a pipeline are now checked for compliance.
If the right side units in step n differ from the left side units in
step n+1 the pipeline can't be constructed and an error is raised.
[0] https://lists.osgeo.org/pipermail/grass-dev/2018-March/088123.html
|
|
gie.c: Initialize test_time other fields.
|
|
Leaving x, y, z fields unset triggers an MSAN failure.
fwd_prepare pj_fwd.c:40:9
pj_fwd4d pj_fwd.c:260:15
proj_trans proj_4D_api.c:166:20
test_time gie.c:1955:11
|
|
|
|
Catch over range lam0 in proj_etmerc.c
|
|
lam0 of inf caused a nan in the cast to int.
Picked +/-1000 for lam0 as a guess for what constitutes reduculously large values.
proj_etmerc.c:361:16: runtime error: nan is outside the range of representable values of type 'int'
Found with autofuzz: UndefinedBehaviorSanitizer: float-cast-overflow
|
|
horner: Fail if the order is unreasonably large.
|
|
geodtest: introduce assertNaN. geodesic: comment on non-use of pj_is_nan.
|
|
Use pj_is_nan rather than x == x or x != x (#894)
|
|
|
|
|
|
|
|
|
|
Overflow in horner_alloc with "2*(int)order"
Found with autofuzz with UndefinedBehaviorSanitizer: signed-integer-overflow
|
|
Extend HAVE_C99_MATH checks in CMakeLists.txt and configure.ac to
include test for C99 function isnan.
|
|
|
|
This required extending the HAVE_C99_MATH checks in CMakeLists.txt and
configure.ac to include a test for the C99 function isnan.
|
|
Handle nan float cast overflow in PJ_robin.c and nad_intr.c
|
|
Uses the new pj_is_nan to avoid x == x checks.
Removes an assignment from an arg list
|
|
|
|
3 -> PJ_LOG_TRACE for pj_log level in pj_init.c
|
|
This will help avoiding issues for people tracking proj master and GDAL
See https://lists.osgeo.org/pipermail/gdal-dev/2018-March/048285.html
|