Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with readOGr #1

Closed
joscani opened this issue Jun 7, 2017 · 3 comments
Closed

Error with readOGr #1

joscani opened this issue Jun 7, 2017 · 3 comments

Comments

@joscani
Copy link

joscani commented Jun 7, 2017

Follow your example I get an error

shp <- get_siane_map(obj = obj, level = level, year = year, canarias = canarias)
Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv,  : 
  Cannot open file
@joscani
Copy link
Author

joscani commented Jun 7, 2017

I believe you should change path_to_map function to

path_to_map <- function (codes) 
{
paste("se89_3_admin", codes[1], "a", codes[2], 
                   sep = "_")

  
}

@joscani
Copy link
Author

joscani commented Jun 7, 2017

If you use absolute path in register_siane your code works!!

@Nuniemsis
Copy link
Collaborator

Great! Thank you for the feedback. I will point it out on the function's documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants