Re: [R-sig-Geo] [FORGED] Calculate each polygon percentage inside a circles

2016-05-25 Thread Rolf Turner
On 26/05/16 00:23, ASANTOS wrote: Dear Rolf Turner, It's much better a clean code with a minimum packages, thank you very much for your answer. But "pct" object give me a total polygon percentage around each point and I need too an identification (in columns) of individual

Re: [R-sig-Geo] Bearing angle of UTM projected SpatialLines

2016-05-25 Thread Eduardo Diez
I forgot to add the complete coordinates for the line: > l1@lines[[1]]@Lines[[1]]@coords [,1][,2] [1,] 642236.2 6197243 [2,] 643005.6 6197948 > l1.geo@lines[[1]]@Lines[[1]]@coords [,1] [,2] [1,] -61.45336 -34.35639 [2,] -61.44511 -34.34994 Thanks 2016-05-25 16:09

Re: [R-sig-Geo] Bearing angle of UTM projected SpatialLines

2016-05-25 Thread Eduardo Diez
Here are some details and example: > sessionInfo() R version 3.2.5 (2016-04-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United

[R-sig-Geo] Overlay between polygons and their intersecting lines

2016-05-25 Thread Gwennaƫl Bataille
Dear all, I can't find a solution for the following problem: When I first intersect a line with 2 polygons (splitting it into 2 segments) and then use an overlay to get for each segment the attribute of the overlapping polygon, I sometimes get too answers (i.e. a small point overlapping one

Re: [R-sig-Geo] [FORGED] Calculate each polygon percentage inside a circles

2016-05-25 Thread ASANTOS via R-sig-Geo
Dear Rolf Turner, It's much better a clean code with a minimum packages, thank you very much for your answer. But "pct" object give me a total polygon percentage around each point and I need too an identification (in columns) of individual contribution of each polygon. In my

Re: [R-sig-Geo] Raster: Can't read raster-created NCDF back in

2016-05-25 Thread Michael Sumner
On Wed, 25 May 2016 at 19:59 Mark R Payne wrote: > Hi, > > I have a rasterBrick object that I have created through a series of > manipulations and written to disk using writeRaster(x,format="CDF"). In > another, independent script, I then need to read that netcdf file

[R-sig-Geo] Raster: Can't read raster-created NCDF back in

2016-05-25 Thread Mark R Payne
Hi, I have a rasterBrick object that I have created through a series of manipulations and written to disk using writeRaster(x,format="CDF"). In another, independent script, I then need to read that netcdf file back in. The following commands work: > b <- brick("Bluefin_OISST_clim.nc") > plot(b)

Re: [R-sig-Geo] MODIS package's runGdal() returns error: dataFormat='GTiff', format not supported

2016-05-25 Thread Hakim Abdi
Thanks for all your help Chris, the original error has been corrected, and now there is another error when trying to run runGdal(). I removed the previous version of MODIS and installed version 0.10-34 (develop branch) as per Florian's suggestion. Everything runs fine until it gets to accessing

Re: [R-sig-Geo] Bearing angle of UTM projected SpatialLines

2016-05-25 Thread Roger Bivand
On Wed, 25 May 2016, Eduardo Diez wrote: Dear everyone, I'm used to calculating the compass angles (clockwise from due North) of line features projected in UTM using the tool Linear Directional Mean