Tag Info

New answers tagged

0

i think it is your method when you delcare your myplayer. try this way : QString myFileName = QFileDialog::getOpenFileName(this, tr("Open File"), QCoreApplication::applicationDirPath () + "/data", tr("GeoTiff (*.shp)")); QFileInfo myRasterFileInfo(myFileName); qDebug() << "myFileName =" << ...


0

Apart from gdal (see other answers) and building a virtual file, you can use the OTB library. This is a C++ open source library including a large set of filters for image processing. Specifically, the otb::MultiChannelExtractROI does the trick. It is also available as an application if you want to use it directly.


3

Here's just the nuts-and-bolts from some working code: #include "gdal_priv.h" #include "gdal_alg.h" // in main()... GDALAllRegister(); // register all drivers // open your raster - format doesn't matter as all the drivers are registered GDALDataset* SourceRasterDS = (GDALDataset*) GDALOpen(Raster,GA_ReadOnly); double GeoTransform[6]; ...



Top 50 recent answers are included