"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/qgsgdalutils.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsgdalutils.cpp  (QGIS-final-3_14_15):qgsgdalutils.cpp  (QGIS-final-3_14_16)
skipping to change at line 492 skipping to change at line 492
{ {
// well-behaved RPC should have height offset a good value for RPC_HEIGHT // well-behaved RPC should have height offset a good value for RPC_HEIGHT
const char *heightOffStr = GDALGetMetadataItem( hSrcDS, "HEIGHT_OFF", "RPC" ); const char *heightOffStr = GDALGetMetadataItem( hSrcDS, "HEIGHT_OFF", "RPC" );
if ( heightOffStr ) if ( heightOffStr )
opts = CSLAddNameValue( opts, "RPC_HEIGHT", heightOffStr ); opts = CSLAddNameValue( opts, "RPC_HEIGHT", heightOffStr );
} }
return GDALAutoCreateWarpedVRTEx( hSrcDS, pszSrcWKT, pszDstWKT, eResampleAlg, dfMaxError, psOptionsIn, opts ); return GDALAutoCreateWarpedVRTEx( hSrcDS, pszSrcWKT, pszDstWKT, eResampleAlg, dfMaxError, psOptionsIn, opts );
} }
void *QgsGdalUtils::rpcAwareCreateTransformer( GDALDatasetH hSrcDS, GDALDatasetH
hDstDS, char **papszOptions )
{
char **opts = CSLDuplicate( papszOptions );
if ( GDALGetMetadata( hSrcDS, "RPC" ) )
{
// well-behaved RPC should have height offset a good value for RPC_HEIGHT
const char *heightOffStr = GDALGetMetadataItem( hSrcDS, "HEIGHT_OFF", "RPC"
);
if ( heightOffStr )
opts = CSLAddNameValue( opts, "RPC_HEIGHT", heightOffStr );
}
void *transformer = GDALCreateGenImgProjTransformer2( hSrcDS, hDstDS, opts );
CSLDestroy( opts );
return transformer;
}
#ifndef QT_NO_NETWORKPROXY #ifndef QT_NO_NETWORKPROXY
void QgsGdalUtils::setupProxy() void QgsGdalUtils::setupProxy()
{ {
// Check proxy configuration, they are application level but // Check proxy configuration, they are application level but
// instead of adding an API and complex signal/slot connections // instead of adding an API and complex signal/slot connections
// given the limited cost of checking them on every provider instantiation // given the limited cost of checking them on every provider instantiation
// we can do it here so that new settings are applied whenever a new layer // we can do it here so that new settings are applied whenever a new layer
// is created. // is created.
QgsSettings settings; QgsSettings settings;
// Check that proxy is enabled // Check that proxy is enabled
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)