neilcharles / geoviz

Functions to make it easy to process DEM data and add GPS traces to rstats Rayshader scenes, and to overlay mapbox and elevation shading imagery
http://www.hilltop-analytics.com
103 stars 12 forks source link

remove capital EPSG #27 #28

Closed mdsumner closed 5 years ago

mdsumner commented 5 years ago

Make "epsg" lower case in initialization string.

(Alternatively could use "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0" and avoid EPSG lookup).

Current behaviour

https://github.com/neilcharles/geoviz/issues/27

On Linux:

 sp::CRS('+init=EPSG:4326')
Error in sp::CRS("+init=EPSG:4326") : no arguments in initialization list

On windows:

sp::CRS('+init=EPSG:4326')
CRS arguments:
 +init=EPSG:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0