[gdal-dev] Unable to read PDS3 (img + lbl) Moon DEM

Even Rouault even.rouault at mines-paris.org
Thu Jul 10 02:51:18 PDT 2014


Selon GrJo <gregor.jochmann at rt.rif-ev.de>:

> I've tried to access a lunar elevation model, but gdalinfo and gdal_translate
> give me a strange error message.
>
> "Error1: Sample_bits of 0 is not supported in this gdal PDS reader"
>
> The elevation model is a PDS3 pair (.img with seperate .lbl file), and
> pointing gdalinfo to the lbl file gives me the above error message (pointing
> to the .img directly gives "not a recognized file format"):
> IMG (binary)
>
<http://imbrium.mit.edu/DATA/LOLA_GDR/CYLINDRICAL/IMG/LDEM_256_00N_90N_000_180.IMG>
> LBL (plaintext label)
>
<http://imbrium.mit.edu/DATA/LOLA_GDR/CYLINDRICAL/IMG/LDEM_256_00N_90N_000_180.LBL>
>
> the strange thing is - the label file explicitely specifies says "
> SAMPLE_BITS           = 16" in line 52.
>
> Is this a bug in the reader, an invalid label file or am i doing something
> wrong?

Nothing wrong. You are just using an old version of GDAL. Your issue is
http://trac.osgeo.org/gdal/ticket/3943 that was fixed in GDAL 1.9.0.

>
>
>
> --
> View this message in context:
>
http://osgeo-org.1560.x6.nabble.com/Unable-to-read-PDS3-img-lbl-Moon-DEM-tp5150432.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>




More information about the gdal-dev mailing list