Error in R package Raster

569 views Asked by At

I am working with R package raster for sometime now. Recently I updated my system to Windows 10 where I used the a backup R package file to install-back all my packages.

Now while using raster packages especially when I use:

getData('SRTM', lon= Longitiude, lat =Latitude)

I get the follwoing error:

trying URL 'ftp://xftp.jrc.it/pub/srtmV4/tiff/srtm_50_08.zip'
downloaded 263 bytes
Error in .SRTM(..., download = download, path = path) : file not found
In addition: Warning message:
In utils::unzip(zipfilename, exdir = dirname(zipfilename)) :
  error 1 in extracting from zip file

I read through a few post that says that the url is no longer accessible, this true and can be checked just by visiting the link.

However getData function should move-on to the next link which is accessable automatically but it is not doing that. Is there a way I can tell it to look for the other links.

0

There are 0 answers