Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Update comment following the discussion at #2439
  • Loading branch information
agila5 authored Sep 16, 2024
1 parent a07adc6 commit 0381f3a
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 0381f3a

Please sign in to comment.