Closed x4d3 closed 2 years ago
@keithdoggett I've moved crs_to_crs
to its own file, but of course feel free to reorganise as you see fit :)
@keithdoggett @BuonOmo I've applied your comment and rebased the PR. Please have another review.
Thanks for the work @x4d3! I'll get a release out with this soon.
This has been released as part of 3.1.0
In newer versions of proj, you need to create a crs_to_crs projection and then transform coordinates with that, whereas in older versions you would pass 2 separate CRS's into the transform function.
This PR:
RGeo::CoordSys::CRSToCRS
that is instantiated from 2RGeo::CoordSys::Proj4
objects and stores the crs_to_crs.RGeo::CoordSys::CRSStore
that maps some combination of Proj4 objects to aCRSToCRS
object. When running transform_coords, check theCRSStore
to see if the mapping exists, if not create it and store it, else get it.crs_to_crs
instead of 2 projections and just transform the coordinatesFix #19