Skip to content

Commit

Permalink
Merge pull request #2440 from agila5/patch-1
Browse files Browse the repository at this point in the history
Update comment
  • Loading branch information
edzer authored Sep 17, 2024
2 parents a07adc6 + 0381f3a commit 35f5f8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gdal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,10 @@ Rcpp::List CPL_transform(Rcpp::List sfc, Rcpp::List crs,
Rcpp::List ret = sfc_from_ogr(g, true); // destroys g;
// how to return the target CRS when only a transformation pipeline is provided? Not by:
// ret.attr("crs") = create_crs(ct->GetTargetCS(), true);
//
// According to the discussion at https://github.com/r-spatial/sf/issues/2439, this is
// not a solvable issue in general. See the same link for a possible workaround and
// a more general solution that uses PROJ.
ct->DestroyCT(ct);
if (dest)
dest->Release();
Expand Down

0 comments on commit 35f5f8b

Please sign in to comment.