You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following this, axis orientation was first introduced into proj4 in 2010 and became part of standard in 2012 (listed now among common parameters
However, when I try to "turn my world upside down" I get the error. Does it follow that the proj4 version used by CRS() does not (yet?) support +axis param?
> data("wrld_simpl", package = "maptools")
> spTransform(wrld_simpl, "+proj=latlong +axis=wsd")
Error in CRS(CRSobj) :
northings must follow eastings: +proj=latlong +axis=wsd
The proj4 definition below is for the standard Hobo Dyer (from tmap definitions)
crs <- "+proj=cea +lat_ts=37.5 +ellps=WGS84 +datum=WGS84 +units=m +no_defs +towgs84=0,0,0"
P.S. it seems some comment on this has appeared. #42
Though as Edzer notes, it doesn’t seem to do much...
I suspect what I want is to replace the default +axis=enu with +axis=wsu
With upside down, do you imply only y is affected? In any case, they are both; +axis=esu only affects y. In the bounding box example above, xmin equals -xmax, so you cannot see the swap.
Activity
edzer commentedon Oct 29, 2017
No, this is a case that is not allowed by
sp, and caught before passing stuff on to proj.4. Pkgsfallows it:but doesn't seem to do much.
rsbivand commentedon Jan 6, 2018
Re: email from Nick Tate 5/1-18
Using that example, I see:
which is upside-down - is that what you wanted? This doesn't work for sf:
which is not upside-down, and reverses the signs on the bounding box y-axis
I tried using the with_geos argument FALSE in st_transform, but I think the outcome was the same - unsure because I had an older lwgeom attached.
I'm copying this into the GitHub issue.
Email:
The proj4 definition below is for the standard Hobo Dyer (from tmap definitions)
crs <- "+proj=cea +lat_ts=37.5 +ellps=WGS84 +datum=WGS84 +units=m +no_defs +towgs84=0,0,0"
P.S. it seems some comment on this has appeared.
#42
Though as Edzer notes, it doesn’t seem to do much...
I suspect what I want is to replace the default +axis=enu with +axis=wsu
edzer commentedon Jan 6, 2018
does plot the world upside down;
sf::st_transformtakes the GDAL path to transformations, and it seems that that silently ignores the+axis=wsu.rsbivand commentedon Jan 6, 2018
Good, that is what I suspected.
edzer commentedon Jan 6, 2018
With upside down, do you imply only y is affected? In any case, they are both;
+axis=esuonly affects y. In the bounding box example above, xmin equals -xmax, so you cannot see the swap.edzer commentedon Jan 6, 2018
Interestingly, following this suggestion,
does work as intended.
add documentation to st_transform; edzer/sp#42