Hi, so I'm following the chapters from Geocomputation with R by Robin Lovelace, Jakub Nowosad, Jannes Muenchow
I working on the animated map from chapter 8
urb_anim = tm_shape(world) + tm_polygons() +
tm_shape(urban_agglomerations) + tm_dots(size = "population_millions") +
tm_facets(along = "year", free.coords = FALSE)
tmap_animation(urb_anim, filename = "urb_anim.gif", delay = 25)
Error message as follow
Error in CPL_transform(x, crs, aoi, pipeline, reverse) :
OGRCreateCoordinateTransformation() returned NULL: PROJ available?
In addition: Warning message:
In CPL_transform(x, crs, aoi, pipeline, reverse) :
GDAL Error 1: No PROJ.4 translation for source SRS, coordinate transformation initialization has failed.
I already install PROJ7 through the terminal, so does this error meant that my R still identify with older version PROJ? and how do I solve this?
Thanks.
I finally solve this issue by installing R through home brew in terminal.
I think the issue was because when I first install R I use CRAN install package and then home brew install gdal which R end up not picking up the right path of the updated GDAL.
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
Thanks for the tips man, I didn't know you could mark a solution!
system
Closed
May 28, 2020, 1:36am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.