Opened 17 years ago
Last modified 17 years ago
#1997 closed defect
NaN values transformation in funtion Transform from OGRCoordinateTransformation class — at Version 1
Reported by: | mgfernandes | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SRS | Version: | svn-trunk |
Severity: | normal | Keywords: | NaN |
Cc: |
Description (last modified by )
When trying to transform an array with WGS84 latlon coordinates which has NaN values incorporated to UTM29 using functions Transform or TransformEX from class OGRCoordinateTransformation, the coordinates are transformed ok but the NaN values are transformed to Inf. This is the output from the test case I've attached:
Coordinates before transformation:
x: -8.95006 y: 37 -> is x nan: 0 is y nan: 0 x: -8.95009 y: 37 -> is x nan: 0 is y nan: 0 x: -1.#IND y: -1.#IND -> is x nan: 1 is y nan: 1 x: -8.94716 y: 37 -> is x nan: 0 is y nan: 0 x: -8.94716 y: 37 -> is x nan: 0 is y nan: 0
Coordinates after transformation:
x: 504444 y: 4.09488e+006 -> is x nan: 0 is y nan: 0 x: 504441 y: 4.09487e+006 -> is x nan: 0 is y nan: 0 x: 1.#INF y: 1.#INF -> is x nan: 0 is y nan: 0 x: 504702 y: 4.09487e+006 -> is x nan: 0 is y nan: 0 x: 504702 y: 4.09488e+006 -> is x nan: 0 is y nan: 0
The NaN values should be maintained.
Change History (2)
by , 17 years ago
comment:1 by , 17 years ago
Component: | OGR_SF → OGR_SRS |
---|---|
Description: | modified (diff) |
Keywords: | NaN added |
Note:
See TracTickets
for help on using tickets.
Transformation from latlon to utm29 using Transform from OGRCoordinateTransformation