Skip to content

Commit

Permalink
proj_clone(): avoid emitting errors on tranformations where some are …
Browse files Browse the repository at this point in the history
…not instanciable
  • Loading branch information
rouault committed Jan 10, 2023
1 parent 0154e4c commit d6775b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iso19111/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,13 @@ PJ *proj_clone(PJ_CONTEXT *ctx, const PJ *obj) {
if (newPj) {
newPj->descr = "Set of coordinate operations";
newPj->ctx = ctx;
const int old_debug_level = ctx->debug_level;
ctx->debug_level = PJ_LOG_NONE;
for (const auto &altOp : obj->alternativeCoordinateOperations) {
newPj->alternativeCoordinateOperations.emplace_back(
PJCoordOperation(ctx, altOp));
}
ctx->debug_level = old_debug_level;
}
return newPj;
}
Expand Down

0 comments on commit d6775b5

Please sign in to comment.