Opened 6 years ago

Closed 6 years ago

Last modified 5 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 6 years ago.
AC_with_gdal.jpg (180.0 KB) - added by flovinopi 6 years ago.
srpdataset.cpp (31.5 KB) - added by flovinopi 6 years ago.
TPCF2A01.GEN (982 bytes) - added by flovinopi 6 years ago.
TPCF2A01.QAL (1.7 KB) - added by flovinopi 6 years ago.
TPCF2A01.SOU (2.1 KB) - added by flovinopi 6 years ago.
TPCF2A01_cut.IMG (110.0 KB) - added by flovinopi 6 years ago.

Download all attachments as: .zip

Change History (20)

Changed 6 years ago by flovinopi

Attachment: global_mapper.jpg added

Changed 6 years ago by flovinopi

Attachment: AC_with_gdal.jpg added

comment:1 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:2 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:3 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:4 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:5 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:6 Changed 6 years ago by flovinopi

Description: modified (diff)

Changed 6 years ago by flovinopi

Attachment: srpdataset.cpp added

comment:7 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:8 Changed 6 years ago 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

comment:9 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:10 Changed 6 years ago by Even Rouault

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.

Changed 6 years ago by flovinopi

Attachment: TPCF2A01.GEN added

Changed 6 years ago by flovinopi

Attachment: TPCF2A01.QAL added

Changed 6 years ago by flovinopi

Attachment: TPCF2A01.SOU added

Changed 6 years ago by flovinopi

Attachment: TPCF2A01_cut.IMG added

comment:11 Changed 6 years ago by flovinopi

Description: modified (diff)

comment:12 Changed 6 years ago by Even Rouault

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 Changed 5 years ago by Even Rouault

Milestone: 1.8.2

Milestone 1.8.2 deleted

Note: See TracTickets for help on using tickets.