rgdal

Unable to install rgdal and rgeos R libraries on Red hat linux

試著忘記壹切 提交于 2019-12-10 02:19:18
问题 I have error while compiling rgdal adn rgoes package on our redhat linux machine. I tried to do some research but couldn't find a possible solution. Could you please help me with this as this is very important for me to solve. **ERROR WHILE COMPILING RGDAL in R 3.0** **strong text** * installing *source* package ârgdalâ ... ** package ârgdalâ successfully unpacked and MD5 sums checked configure: CC: gcc -std=gnu99 configure: CXX: g++ configure: rgdal: 0.8-10 checking for /usr/bin/svnversion..

Leaflet R derivePolygons missing lat missing long

自古美人都是妖i 提交于 2019-12-09 03:16:40
问题 I am trying to plot the site of some disease-events data on a map. I use this to import the data: ByTown<-readOGR(dsn="C:/temp/lyme/Towns", layer="Towns", encoding = "UTF-8", verbose= FALSE) check the class: class(ByTown) #getting this result [1] "SpatialPolygonsDataFrame" attr(,"package") [1] "sp" Then I convert all of the factors to character data and check to see that I still have a SpatialPolygonsDataFrame using class again, which I do: Then I format the data I wish to merge into the same

Convert latitude/longitude to state plane coordinates

核能气质少年 提交于 2019-12-09 03:12:27
问题 I've got a dataset with latitude and longitude which I'd like to convert to the state plane coordinates for Illinois East, using EPSG 2790 (http://spatialreference.org/ref/epsg/2790/) or maybe ESRI 102672 (http://spatialreference.org/ref/esri/102672/). This has definitely been asked before; my code is based on the answers here ("Non Finite Transformation Detected" in spTransform in rgdal R Package and http://r-sig-geo.2731867.n2.nabble.com/Converting-State-Plane-Coordinates-td5457204.html).

Merging Polygons in Shape Files with Common Tag IDs: unionSpatialPolygons

我怕爱的太早我们不能终老 提交于 2019-12-08 15:58:19
问题 I am trying to read from a shape file and merge the polygons with a common tag ID. library(rgdal) library(maptools) if (!require(gpclib)) install.packages("gpclib", type="source") gpclibPermit() usa <- readOGR(dsn = "./path_to_data/", layer="the_name_of_shape_file") usaIDs <- usa$segment_ID isTRUE(gpclibPermitStatus()) usaUnion <- unionSpatialPolygons(usa, usaIDs) When I try to plot the merged polygons: for(i in c(1:length(names(usaUnion)))){ print(i) myPol <- usaUnion@polygons[[i]]@Polygons[

Latitude and Longitude to UTM coordinates

爱⌒轻易说出口 提交于 2019-12-08 13:41:44
问题 I have a big latitude longitude information from the UTM-zone 33 north. I tried the following commands to convert this geographical information to UTM coordinates (my data set object is initially called S3km): library(rgdal) UTM33N<-"+proj=utm+zone=33+north" UTM33N<-paste(UTM33N,"+ellps=WGS84",sep="") UTM33N<-paste(UTM33N,"+datum=WGS84",sep="") UTM33N<-paste(UTM33N,"+units=m+no_defs",sep="") coord.UTM33N<-project(as.matrix(S3km[,c("Longitude","Latitude")]),UTM33N) I got the following error

rgdal doesn't recognize GDAL version

帅比萌擦擦* 提交于 2019-12-08 12:13:17
问题 I'm trying to installed rgdal on RHEL 6. I've install GDAL version 1.7.3 and PROJ version 4.7.0-1. When I run install.packages("rgdal") I get the following error: checking gdal-config usability... yes configure: GDAL: 1.7.3 checking GDAL version >= 1.11.4... no configure: error: upgrade GDAL to 1.11.4 or later ERROR: configuration failed for package ârgdalâ * removing â/usr/lib64/R/library/rgdalâ The rgdal CRAN page says you need GDAL 1.1 or above. Is GDAL 1.7 not supported? Can anyone show

Cannot install rgdal package in R on RHEL6, unable to load shared object rgdal.so

ぐ巨炮叔叔 提交于 2019-12-08 02:15:11
问题 I have AWS RHEL6 server where I've installed (compiled) rgdal 1.9.2 and proj packages. Now in R I want to install rgdal package but it gives this error: ** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/home/Roel/R/x86_64-redhat-linux-gnu-library/3.3/rgdal/libs/rgdal.so': libgdal.so.1: cannot open shared object file: No such file or directory Error: loading failed Execution halted ERROR: loading failed * removing ‘

r gis: find borders between polygons

六月ゝ 毕业季﹏ 提交于 2019-12-07 19:39:51
问题 Having a polygon shapefile, I need to produce a polyline shapefile containing only the common borders between polygons (see the picture). My question is similar to 1 and 2, only I need to do this in R . The latter similar question refers to a solution with the use of Shapely package for python . The analogue of Shapely for R is rgeos . Though, I couldn't find the solution with rgeos on my own. Note: the shapefile with borders used for illustration was produced in ArcGIS using the solution

readOGR (rgdal) fails to fetch polygon names from XML

限于喜欢 提交于 2019-12-06 13:21:04
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 they are present in the KML file. This is what I am doing: library(sp) library(rgdal) library(maps)

Error when re-projecting spatial points using spTransform in rgdal R

你。 提交于 2019-12-06 07:03:07
问题 G'day, I have a large number of lon/lat coordinates that are in the CRS Australian Geodetic Datum 66/84 (AGD66 for brevity). I want to change these coordinates from AGD66 to WGS84 because there is about a 200m difference between them and I have other coordinates and layers in WGS84. I have tried to do this by: lon lat 147.1428 -43.49083 library(rgdal) pts<-read.table(file.choose(),header=TRUE,sep=',') # I first project the pts in their original CRS pts66<-project(cbind(pts$lon,pts$lat), "