USEPA / elevatr

An R package for accessing elevation data
Other
203 stars 26 forks source link

Struggling to get `get_elev_point` to work #5

Closed barnettjacob closed 8 years ago

barnettjacob commented 8 years ago

Hi Jeff, struggling to get it working! Any ideas based on the below? Cheers Jacob

My data:

image

The code

#set the prj thing
ll_prj <- "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"

#get_elevations
elevations <- get_elev_point(data, ll_prj)

From the debugger

image

jhollist commented 8 years ago

Thanks, @barnettjacob!

Oops. Looks like I left a browser() in there! Will get to that later this AM.

barnettjacob commented 8 years ago

Ah - shown up by my lack of knowledge on how R debugging works! Cheers.

jhollist commented 8 years ago

@barnettjacob No problem. It was a good catch!

Should be good now. Go ahead and reinstall and give it a shot.

Also, if you have lots of points, it will probably error as mapzen limits number of requests. I'm going to work on making that work a bit smoother, but it isn't there yet!

Thanks again for finding this and for using the package!

barnettjacob commented 8 years ago

Thanks! Now working!!