Opened 8 years ago
Closed 8 years ago
#6341 closed defect (fixed)
Error when reading an ill-formed RPC file (double ^M line ending)
Reported by: | bugbuster | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.11.5 |
Component: | default | Version: | 1.11.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
Gdalinfo displays an error while reading an RPC file :
gdalinfo po_1471778_bgrn_0000000.small_tif Driver: GTiff/GeoTIFF ERROR 1: po_1471778_bgrn_0000000_rpc.txt file found, but missing SAMP_NUM_COEFF_1 field (and possibly others). Files: po_1471778_bgrn_0000000.small_tif po_1471778_bgrn_0000000_rpc.txt Size is 63, 63 ...
This data is an Ikonos product. The problem comes from an "ill-formed" RPC file : if you look carefully, each line is ended with a double "M".
LINE_OFF: +003154.00 pixels^M^M SAMP_OFF: +003154.00 pixels^M^M ...
I know that a dos2unix solves the problem. However, it is not always possible to modify the input data.
Could it be possible to make the GDALLoadRPBFile() function (gdal_rpcimdio.cpp) more robust against such ill-formed files ?
Attachments (1)
Change History (3)
by , 8 years ago
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Milestone: | → 1.11.5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
TIF image with RPC file