Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#4254 closed defect (fixed)

SOME USRP DATA ARE NOT DECODED CORRECTLY

Reported by: flovinopi Owned by: warmerdam
Priority: highest Milestone:
Component: GDAL_Raster Version: 1.8.1
Severity: blocker Keywords:
Cc:

Description (last modified by flovinopi)

I use GDAL to read and display data in various formats (DTED, USRP, CADRG, USRP, GEOTIFF, …). It’s working fine but some USRP DATA cannot be decoded correctly. On attached files you can see a USRP data decoded with GDAL and Global mapper. There is a problem with the tiles !!!. If somebody can help me, I can send the USRP DATA on a http site (It’s about 130 MB) Philippe and you can join me with my mail : mauge.philippe.at.free.fr Oups after 2 days I ... Finally I've found what was wrong in the file srpdataset.cpp at line 647, instead of

while(c ==' '
c== '')

just write while(c != 30 ) so instead of skipping blank and '', you just have to look for the next Record Separator (RS or ASCII code 30), I will attached the new srpdataset.cpp, just look up for the keyword PATCH_PHIL, see you soon Philippe It's seem that I have problems with special characters !!!!

I have attached the files. In the IMG file, the data to skip are full of "I", in other USRP data it's just blanck, that is the difference.

Attachments (7)

global_mapper.jpg (270.7 KB ) - added by flovinopi 13 years ago.
AC_with_gdal.jpg (180.0 KB ) - added by flovinopi 13 years ago.
srpdataset.cpp (31.5 KB ) - added by flovinopi 13 years ago.
TPCF2A01.GEN (982 bytes ) - added by flovinopi 13 years ago.
TPCF2A01.QAL (1.7 KB ) - added by flovinopi 13 years ago.
TPCF2A01.SOU (2.1 KB ) - added by flovinopi 13 years ago.
TPCF2A01_cut.IMG (110.0 KB ) - added by flovinopi 13 years ago.

Download all attachments as: .zip

Change History (20)

by flovinopi, 13 years ago

Attachment: global_mapper.jpg added

by flovinopi, 13 years ago

Attachment: AC_with_gdal.jpg added

comment:1 by flovinopi, 13 years ago

Description: modified (diff)

comment:2 by flovinopi, 13 years ago

Description: modified (diff)

comment:3 by flovinopi, 13 years ago

Description: modified (diff)

comment:4 by flovinopi, 13 years ago

Description: modified (diff)

comment:5 by flovinopi, 13 years ago

Description: modified (diff)

comment:6 by flovinopi, 13 years ago

Description: modified (diff)

by flovinopi, 13 years ago

Attachment: srpdataset.cpp added

comment:7 by flovinopi, 13 years ago

Description: modified (diff)

comment:8 by flovinopi, 13 years ago

I use GDAL to read and display data in various formats (DTED, USRP, CADRG, USRP, GEOTIFF, …). It’s working fine but some USRP DATA cannot be decoded correctly. On attached files you can see a USRP data decoded with GDAL and Global mapper. There is a problem with the tiles !!!. If somebody can help me, I can send the USRP DATA on a http site (It’s about 130 MB) Philippe and you can join me with my mail : mauge.philippe.at.free.fr Oups after 2 days I ... Finally I've found what was wrong in the file srpdataset.cpp at line 647, instead of

while(c ==' '
c== '')

just write while(c != 30 ) so instead of skipping blank and '', you just have to look for the next Record Separator (RS or ASCII code 30), I will attached the new srpdataset.cpp, just look up for the keyword PATCH_PHIL, see you soon Philippe

comment:9 by flovinopi, 13 years ago

Description: modified (diff)

comment:10 by Even Rouault, 13 years ago

Perhaps you could just attach the .gen, .qal, .sou and just the few first kilobytes of the .img (mainly just to reach the beginning of the actual imagery) ? I'm curious to see why this is necessary on your data, and not on the samples I have.

by flovinopi, 13 years ago

Attachment: TPCF2A01.GEN added

by flovinopi, 13 years ago

Attachment: TPCF2A01.QAL added

by flovinopi, 13 years ago

Attachment: TPCF2A01.SOU added

by flovinopi, 13 years ago

Attachment: TPCF2A01_cut.IMG added

comment:11 by flovinopi, 13 years ago

Description: modified (diff)

comment:12 by Even Rouault, 13 years ago

Milestone: 1.8.2
Resolution: fixed
Status: newclosed

r23124 /trunk/gdal/frmts/adrg/srpdataset.cpp: ASRP/USRP: fix skipping of padding characters on some datasets (#4254)

r23125 /branches/1.8/gdal/frmts/adrg/srpdataset.cpp: ASRP/USRP: fix skipping of padding characters on some datasets (#4254)

comment:13 by Even Rouault, 11 years ago

Milestone: 1.8.2

Milestone 1.8.2 deleted

Note: See TracTickets for help on using tickets.