Skip to content
Prev 28574 / 29559 Next

Simple doubt - CRS

On Wed, 24 Mar 2021, Pietro Andre Telatin Paschoalino wrote:

            
No, str(crs(rasbrick)) only shows the revealed contents of the CRS object. 
The WKT2-2019 representation has to be hidden in comment(crs(rasbrick)), 
which is *not* shown by str(). It had to be hidden in this way because CRS 
is a formal class, so its definition is fixed. If the formal definition of 
the CRS class was changed, many packages and workflows would break, so the 
WKT2-2019 representation was added, but can most easily be seen using the 
wkt() method.
This means that shape and rasbrick had the same CRS, so the coordinate 
operation was a noop, no operation. If they had differed, it would show 
the steps taken. rgdal::list_coordOps() can show what spTransform can 
choose, equivalently in sf 0.9-8 it is called sf::sf_proj_pipelines(). 
https://github.com/r-spatial/sf/issues/1634 is an example of its use. In a 
different case in Canada, not using the PROJ CDN for on-demand 
transformation grid downloading led to 20m errors, so keepin one's eye on 
the instantiable pipelines is potentially important.

Roger