Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jan 3, 2020
1 parent 7b59815 commit ab5ac2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gdal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ Rcpp::List CPL_transform(Rcpp::List sfc, Rcpp::CharacterVector proj4) {
OGRCoordinateTransformation *ct =
OGRCreateCoordinateTransformation(g[0]->getSpatialReference(), dest);
if (ct == NULL) {
dest->Release(); // #nocov
sfc_from_ogr(g, true); // destroy g;
Rcpp::stop("OGRCreateCoordinateTransformation() returned NULL: PROJ available?"); // #nocov
dest->Release(); // #nocov begin
sfc_from_ogr(g, true); // to destroy g
Rcpp::stop("OGRCreateCoordinateTransformation() returned NULL: PROJ available?"); // #nocov end
}
for (size_t i = 0; i < g.size(); i++) {
CPLPushErrorHandler(CPLQuietErrorHandler);
Expand Down

0 comments on commit ab5ac2a

Please sign in to comment.