Re: [R-sig-Geo] Plot Great Circle path on e.g. wrld_simpl?

2015-06-25 Thread Nick Matzke
Wow, super-cool, thanks! Nick On Fri, Jun 26, 2015 at 1:24 AM, John Baumgartner wrote: > Take a look at > http://flowingdata.com/2011/05/11/how-to-map-connections-with-great-circles/ > > At its simplest, I think you want to add: > > library(geosphere) > path <- gcIntermediate(c(-120, 45), c(0, 5

Re: [R-sig-Geo] Plot Great Circle path on e.g. wrld_simpl?

2015-06-25 Thread John Baumgartner
Take a look at http://flowingdata.com/2011/05/11/how-to-map-connections-with-great-circles/ At its simplest, I think you want to add: library(geosphere) path <- gcIntermediate(c(-120, 45), c(0, 55), n=50, addStartEnd=TRUE) lines(path) Cheers, John On Fri, Jun 26, 2015 at 2:16 PM, Nick Matzke

[R-sig-Geo] Plot Great Circle path on e.g. wrld_simpl?

2015-06-25 Thread Nick Matzke
Hi, Is there an easy way to plot a Great Circle path between two points on a world map, e.g. wrld_simpl? E.g., something like this, but Great Circle instead of the flat-map straight path: === library(maptools) # for e.g. wrld_simpl data(wrld_simpl) plot(wrld_simp

Re: [R-sig-Geo] imprecise location extraction

2015-06-25 Thread Robert J. Hijmans
Dominik, The last part of your example does not run. If I understand you well, this is what you are after (but it all looks good to me): library(raster) # raster data with long and lat values r <- raster(xmn=-112.25, xmx=-104.125, ymn=33, ymx=43.75, res=1/240) lat <- init(r, v='y') lon <- init(r,

[R-sig-Geo] imprecise location extraction

2015-06-25 Thread Dominik Schneider
Hi, I'm working on interpolating spatial point data to a grid and as I was troubleshooting I found that the gridded locations I am predicting to are not what I expected. In particularly, when I extracted the locations from the raster grid to get the cell coordinates in which the locations lay, the

Re: [R-sig-Geo] Coordinates of the closest point

2015-06-25 Thread Juta Kawalerowicz
Many thanks for your kind suggestions, they provided a sufficient solution to the problem. Juta On Wed, Jun 24, 2015 at 5:07 AM, Robert J. Hijmans wrote: > And for longitude/latitude data you can use geosphere::dist2Line > Robert > > On Tue, Jun 23, 2015 at 8:13 PM, GeoTux Tuxman > wrote: > >

[R-sig-Geo] Intersection of grid and polygon

2015-06-25 Thread Angelika Gummert
Hi, I am trying to intersect a grid with a polygon, since I want to calculate the polygon area in each grid cell. Before I did the intersection, I transformed my grid into a SpatialPolygon. In total it has 2242 features (cells). My other polygon has 39746 features, since it consists of many tiny p

Re: [R-sig-Geo] library fails to load in linux

2015-06-25 Thread Esa Ă–string
Hi, Seems to me that this is a safety mechanism during compilation (FORTIFY_SOURCE) built into recent Fedora and Ubuntu distributions, to detect SW run time memory corruption. See: https://wiki.ubuntu.com/Security/Features and https://idea.popcount.org/2013-08-15-fortify_source/ I suspect th

[R-sig-Geo] GDAL 2.0 on OSX

2015-06-25 Thread Erich Subscriptions
Does anybody have an idea when GDAL 2.0 will be available for OSX from http://www.kyngchaos.com/software/frameworks? [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-pro

Re: [R-sig-Geo] library fails to load in linux

2015-06-25 Thread chris english
http://r.789695.n4.nabble.com/Re-RGtk2-on-linux-quot-stack-smashing-detected-quot-td920903.html googling the error message suggests pointers to external resources and since these instances are VM's, it is likely either the VM or underlying hardware if these are linux guest on windows/iOS host. HT

Re: [R-sig-Geo] library fails to load in linux

2015-06-25 Thread Rolf Turner
On 25/06/15 18:49, Harold-Jeffrey Ship wrote: Hi Rolf. Thank you for your quick response! I had tried using install.packages, and just now tried the method you suggested (R CMD INSTALL spatstat_1.42-1.tar.gz) with the same results. By the way, we have the same problem when we try on RHEL 6.4

Re: [R-sig-Geo] library fails to load in linux

2015-06-25 Thread Adrian Baddeley
We will continue this conversation offline and report the results to R-Sig-Geo when done. Adrian Prof Adrian Baddeley FAA Curtin University > On 25/06/15 01:39, Harold-Jeffrey Ship wrote: > > I have Ubuntu 12.04 Precise. I just installed R and want to install > > spatstat. This is the R informa

Re: [R-sig-Geo] variogram problem

2015-06-25 Thread rubenfcasal
Hi Adeela, This is the the data set and want to make variogram for Cd15. Start with an exploratory analysis of the data. For example, using the geoR package: lyallpur <- read.csv('lyallpur.csv') library(geoR) datgeo <- as.geodata(lyallpur, coords.col = 2:3, data.col = lyallpur$Cd15) # as.geod

[R-sig-Geo] Polygon area in a grid cell/ Progress bar

2015-06-25 Thread Angelika Gummert
Hi, I want to calculate the area of my polygons in each grid cell. I tried to follow this example https://stat.ethz.ch/pipermail/r-sig-geo/2014-December/022096.html (I don't know if this is the right method),but I am unable to intersect my polygons because it is always running for hours and when