Skip to content

Commit

Permalink
fix pointless message
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jul 16, 2023
1 parent 953896c commit 1e27766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/include/gdalwarpgeneral/gdalwarpgeneral.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ List gdal_suggest_warp(GDALDataset* poSrcDS, void *pfnTransformerArg) {
GDALTransformerFunc pfnTransformer;
pfnTransformer = GDALGenImgProjTransform;


GDALSuggestedWarpOutput2(poSrcDS, pfnTransformer, pfnTransformerArg,
adfGeoTransform, &nXSize, &nYSize, adfExtent,
0);
Expand Down Expand Up @@ -133,7 +134,7 @@ inline List gdal_warp_general(CharacterVector dsn,
papszArg = CSLAddString(papszArg, "-t_srs");
papszArg = CSLAddString(papszArg, target_crs[0]);

if( *st != '\0') {
if( *st == '\0') {
// we also should be checking if no geolocation arrays and no gcps
Rcpp::warning("no source crs, target crs is ignored\n");
}
Expand Down

0 comments on commit 1e27766

Please sign in to comment.