rgdal

“Non Finite Transformation Detected” in spTransform in rgdal R Package

我只是一个虾纸丫 提交于 2019-11-29 12:40:50
I am trying to convert geographic coordinates (degrees) into UTM coordinates (meters) and keep getting an error message that a "Non finite transformation detected." Do you know how I can fix this? Here is the code I used: > GPS.Points <- Gomer.Data[, c('Longitude', 'Latitude')] > head(GPS.Points) Longitude Latitude 1 23.85474 -19.52211 2 23.85531 -19.52243 3 23.85534 -19.52257 4 23.85580 -19.52346 5 23.85551 -19.52380 6 23.85513 -19.52360 > GPS.Points.Spatial.Data <- SpatialPoints(GPS.Points, proj4string=CRS("+proj=longlat +ellps=WGS84")) > GPS.Points.Spatial.Data[1] SpatialPoints: Longitude

trouble in installing rgdal on ubuntu 16.04

老子叫甜甜 提交于 2019-11-28 10:43:06
问题 I have been trying to install rgdal on R 3.4.2 (RStudio 1.1.383) and ubuntu 16.04 but it always end with a problem. I have followed many recommendations like manually installing the dependencies like libproj-dev or my last try by using homebrew. I was able to install gdal 1.11.3 but it's not sufficient. Here is the output when I write install.packages('rgdal', type = "source", configure.args=c('--with-proj-include=/usr/local/include','--with-proj-lib=/usr/local/lib')) Installing package into

“Non Finite Transformation Detected” in spTransform in rgdal R Package

巧了我就是萌 提交于 2019-11-28 06:29:43
问题 I am trying to convert geographic coordinates (degrees) into UTM coordinates (meters) and keep getting an error message that a "Non finite transformation detected." Do you know how I can fix this? Here is the code I used: > GPS.Points <- Gomer.Data[, c('Longitude', 'Latitude')] > head(GPS.Points) Longitude Latitude 1 23.85474 -19.52211 2 23.85531 -19.52243 3 23.85534 -19.52257 4 23.85580 -19.52346 5 23.85551 -19.52380 6 23.85513 -19.52360 > GPS.Points.Spatial.Data <- SpatialPoints(GPS.Points,

Trouble installing rgdal

对着背影说爱祢 提交于 2019-11-28 05:22:35
I want to install rgdal for "R version 3.2.3 (2015-12-10)" . I downloaded and installed GDAL 1.11 Complete PROJ framework v4.9.2-2 GEOS framework v3.5.0-1 from KyngChaos Then in RStudio I typed install.packages("rgdal") which gave me this: > .... > > configure: CC: clang configure: CXX: clang++ configure: rgdal: > 1.1-1 checking for /usr/bin/svnversion... yes configure: svn revision: > 572 checking for gdal-config... > no no configure: error: gdal-config > not found or not executable. ERROR: configuration failed for package > ‘rgdal’ > * removing ‘/Library/Frameworks/R.framework/Versions/3.2

SpatialPolygons - Creating a set of polygons in R from coordinates

最后都变了- 提交于 2019-11-27 12:53:05
I am trying to take create a set of polygons from vertex locations, saved in X,Y format. Here is an example of my data - each row represents the vertices for one polygon. the polygons are squares square <- rbind(c(255842.4, 4111578, 255862.4, 4111578, 255862.4, 4111558, 255842.4, 4111558, 255842.4, 4111578, 255842.4, 4111578), c(257397.0, 4111309, 257417.0, 4111309, 257417.0, 4111289, 257397.0, 4111289, 257397.0, 4111309, 257397.0, 4111309)) ID <- c("SJER1", "SJER2")' I am using SpatialPolygons , thus my data need to be in a list. so i created a loop to attempt to get my data into a list

Trouble installing rgdal

余生颓废 提交于 2019-11-27 00:59:27
问题 I want to install rgdal for "R version 3.2.3 (2015-12-10)" . I downloaded and installed GDAL 1.11 Complete PROJ framework v4.9.2-2 GEOS framework v3.5.0-1 from KyngChaos Then in RStudio I typed install.packages("rgdal") which gave me this: > .... > > configure: CC: clang configure: CXX: clang++ configure: rgdal: > 1.1-1 checking for /usr/bin/svnversion... yes configure: svn revision: > 572 checking for gdal-config... > no no configure: error: gdal-config > not found or not executable. ERROR: