Hi,

I would like to note that the Landsat metadata files support added to GDAL 2.0 (https://svn.osgeo.org/gdal/trunk/gdal/gcore/mdreader/reader_landsat.cpp) I think you can use this metadata reader to parse Landsat metadata file, or set to the Landsat dataset the imagery metadata in same manner. Also, I think the tests for new format in autotest (https://svn.osgeo.org/gdal/trunk/autotest/gdrivers/) folder needed.

And, it seems to me that the use:
        char** papszBandMeta = NULL;
        papszBandMeta = CSLAddString(papszBandMeta, pszFilename);
        pLandsatBand->SetMetadata(papszBandMeta);
        poDS->SetBand( iBand+1, pLandsatBand);

should ended with free papszBandMeta array:
        CSLDestroy(papszBandMeta);

But the new driver look promising!

Best regards,
    Dmitry

01.06.2015 15:55, liminlu0314 пишет:
landsatdataset.cpp
<http://osgeo-org.1560.x6.nabble.com/file/n5208440/landsatdataset.cpp>

landsatdataset.cpp is LANDSAT Driver source code



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GDAL-Landsat-Dirver-tp5208438p5208440.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev



_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to