rgdal

What does the following error mean: TopologyException: found non-nonded intersection between LINESTRING

匆匆过客 提交于 2019-12-12 11:31:00
问题 I'm trying to fortify a shape file that I loaded into R with rgdal, but I get the following error: "Error: TopologyException: found non-noded intersection between LINESTRING (34.7279 1.59723, 34.7278 1.59729) and LINESTRING (34.7278 1.59723, 34.7278 1.59729) at 34.727793021883102 1.5972887049072426" I am using a shape file for the continent of Africa from maplibrary.org. It is available from my dropbox here: https://www.dropbox.com/s/etqdw3nky52czv4/Africa%20map.zip I am using the following

Unable to install ‘sf’ R package on Ubuntu 16.04 LTS

喜夏-厌秋 提交于 2019-12-11 15:28:53
问题 I'm not able to install sf R package on Ubuntu 16.04 LTS . I tried install.packages("sf") as well as devtools::install_github("r-spatial/sf") after running sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev Getting the following error message: configure: error: gdal-config not found or not executable. ERROR: configuration failed for package ‘sf’ Wonder what is the way to install sf ? 回答1: This

rgdal installation failed on ubuntu 14.04 [closed]

喜你入骨 提交于 2019-12-11 13:01:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am trying to install rgdal in my computer that runs ubuntu linux 14.04. The R version that I am using is: 3.3.1. I installed gdal and related packages from the regular ubuntu repository and also using the ubuntu-gis ppa (https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa). In both cases, I've got the same

Can No Longer Load rgdal

*爱你&永不变心* 提交于 2019-12-11 04:57:58
问题 I updated my GDAL to 2.2.2 on Ubuntu and now rgdal fails in R. I get this message when I try to load rgdal (I also tried to update rgdal , but didn't work). Error in get(method, envir = home) : lazy-load database '/home/R/x86_64-pc-linux-gnu-library/3.3/rgdal/R/rgdal.rdb' is corrupt In addition: Warning messages: 1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], : restarting interrupted promise evaluation 2: In get(method, envir = home) : restarting interrupted promise

rDGAL, Tiff Files, and WorldFile

元气小坏坏 提交于 2019-12-11 04:45:16
问题 I have a set of tiff files that display convective weather across the continental US (NAD83 projection) in pixel locations from Iowa State University. My goal is the transformation of the pixel locations to lat/lon data. I read in the tiff file data as a SpatialGridDataFrame with... imageData = readGDAL( fileNameDir, silent = TRUE ) I read somewhere that readGDAL will seek a World File if no projection data exist in the tiff file, so I created such a file (nad83WorldFile.wld) with the

Convert Lambert conformal conic projection to wgs84 in r

人走茶凉 提交于 2019-12-11 03:25:51
问题 I have Lambert conformal conic projection x,y information. I need the WGS84 coordinate. But I don't know what is lcc exactly. I have provided the lcc information below. Is there a way to convert lcc to WGS84 in r? example lcc x,y : xy <- cbind(c(509535.7, 514535.7),c(201098.6, 201098.6)) lcc information : Latitude of first standard parallel : 30.0 Latitude of second standard parallel : 60.0 Origin latitude : 38.0 Origin longitude : 126.0 Easting of computation point : 43 Northing of

R - nested loop for list of SpatialLinesDataFrame intersected with SpatialPolygonsDataFrame objects

馋奶兔 提交于 2019-12-10 22:39:53
问题 I have a series of steps I need to complete on a list of SpatialLinesDataFrame ('lines' herein) objects based on their relationships with individual features within a multi-feature SpatialPolygonsDataFrame ('polygons') object. In short, each line list element originates inside a single polygon feature, and may or may not pass through one or more other polygon features. I want to update each line element to connect origin polygons to the first point of contact for each individual polygon

readOGR (rgdal) fails to fetch polygon names from XML

戏子无情 提交于 2019-12-10 10:44:52
问题 I am trying to import an KML map of CCG boundaries in England (Available here, 200Kb) into R using readOGR function from package rgdal . My end-goal is to create a heat-map by colouring CCGs according to some associated value. I have a list with those values next to CCG names in one data frame. I need to match CCG names in that data frame with CCG names in the imported map object, and assign colours based on the value. However, I cannot see any CCG names imported in the map object, although

rgdal won't install on AWS RStudio AMI

試著忘記壹切 提交于 2019-12-10 10:15:50
问题 I have managed to successfully launch the most recent RStudio AWS EC2 instance (louisaslett.com, RStudio-1.1383_R-3.4.2…ubuntu-16.04-LTS-64). R operates mostly as expected in this instance, and I can install and open a number of packages. However I get an error if I try to install either of the rgdal of gdalUtils packages. Below is the console output when I attempt to install rgdal. The output for the gdalUtils install is too long to include here, but both include the text "error: upgrade

Select only one state in a map in a Shiny application

╄→尐↘猪︶ㄣ 提交于 2019-12-10 10:04:06
问题 I have the following dataset: library(rgdal) library(leaflet) tmp <- tempdir() url <- "http://personal.tcu.edu/kylewalker/data/mexico.zip" file <- basename(url) download.file(url, file) unzip(file, exdir = tmp) mexico <- readOGR(dsn = tmp, layer = "mexico", encoding = "UTF-8") pal <- colorQuantile("YlGn", NULL, n = 5) state_popup <- paste0("<strong>Estado: </strong>", mexico$name, "<br><strong>PIB per c?pita, miles de pesos, 2008: </strong>", mexico$gdp08) On top of this data I build the