src/operators/source/gdal_source.cpp
// load the json definition of the dataset, then get the file to be loaded from GDALTimesnap. Finally load the raster.
load the json definition of the dataset, then get the file to be loaded from GDALTimesnap. Finally load the raster.
load the json definition of the dataset then get the file to be loaded from GDALTimesnap . Finally load the raster .
std::unique_ptr<GenericRaster> RasterGDALSourceOperator::getRaster(const QueryRectangle &rect, const QueryTools &tools) {
	Json::Value datasetJson = GDALSourceDataSets::getDataSetDescription(sourcename);
	GDALTimesnap::GDALDataLoadingInfo loadingInfo = GDALTimesnap::getDataLoadingInfo(datasetJson, channel, rect);
	auto raster = loadDataset(loadingInfo, rect.crsId, true, rect);
	return raster->flip(false, true);
}
std :: unique_ptr < GenericRaster > RasterGDALSourceOperator :: getRaster ( const QueryRectangle & rect , const QueryTools & tools ) { Json :: Value datasetJson = GDALSourceDataSets :: getDataSetDescription ( sourcename ) ; GDALTimesnap :: GDALDataLoadingInfo loadingInfo = GDALTimesnap :: getDataLoadingInfo ( datasetJson , channel , rect ) ; auto raster = loadDataset ( loadingInfo , rect . crsId , true , rect ) ; return raster -> flip ( false , true ) ; }
load the json definition of the dataset, then get the file to be loaded from GDALTimesnap.
load the json definition of the dataset then get the file to be loaded from GDALTimesnap .
//flip here so the tiff result will not be flipped