Re: [R-sig-Geo] adding maps to spplot

2013-05-16 Thread Raffaele Morelli
2013/5/16 Alemu Tadesse alemu.tade...@gmail.com I am plotting a krigged values of irrdiance with the following command. spplot(p1, zcol=insol.pred, col.regions=terrain.colors(30), cuts=30, sp.layout=list(pts1), contour=TRUE, labels=TRUE, pretty=TRUE, col='brown', main=title1) I want to

Re: [R-sig-Geo] reading PostGIS table into sp data frame

2012-12-19 Thread Raffaele Morelli
2012/12/19 Edward Vanden Berghe evber...@gmail.com I wanted to create a global map with squares in lat-lon. I have PostGIS tables to define these squares – but I haven’t been able to figure out an efficient way of reading those tables into R. The code I am using now is: crs -

Re: [R-sig-Geo] Raster memory problem

2012-12-12 Thread Raffaele Morelli
2012/12/12 Marie Auger-Methe marie.augerme...@gmail.com Dear list, I am using large raster bricks for my analyses and I am running out of memory. I get the following message: Error: cannot allocate vector of size 231.0 Mb and this whether I do all my brick manipulations by loading the

Re: [R-sig-Geo] installing rgdal on Debian

2012-12-07 Thread Raffaele Morelli
2012/12/7 Eduardo Bieñkowski eduko...@gmail.com Hi all. For those who had the same problem: The solution was: In Ubuntu / Debian sudo apt-get install-dev libgdal1 sudo apt-get install-dev libproj Eduardo install-dev it's not an apt-get option... He's on Debian and according to the

Re: [R-sig-Geo] installing rgdal on Debian

2012-12-06 Thread Raffaele Morelli
2012/12/6 Hodgess, Erin hodge...@uhd.edu Hello! I'm trying to install rgdal on Debian. I keep getting the checking for gdal.h...no error. I have updated libgdal1.dev. I also put the /usr/include and /usr/include/gdal in my PATH. Any ideas as to what is wrong, please? I have a

Re: [R-sig-Geo] [plain text] Error: cannot allocate vector of size 274.7 Mb

2012-11-14 Thread Raffaele Morelli
2012/11/13 Mauricio Zambrano-Bigiarini mauricio.zambr...@jrc.ec.europa.eu: On 13/11/12 11:20, Raffaele Morelli wrote: Hi, sorry for double posting but I saw my messages were scrubbed from html garbage and don't know if nobody replies for that, but just in case... apologize if not. I am

Re: [R-sig-Geo] [plain text] Error: cannot allocate vector of size 274.7 Mb

2012-11-14 Thread Raffaele Morelli
2012/11/13 Roman Luštrik roman.lust...@gmail.com: Would it be at all possible if you made your problem reproducible? Cheers, Roman Here follows a link to my script and RData, lines commented are not needed because objects are in the RData http://cen.isprambiente.it/~rmorelli/R/ Regards -r

[R-sig-Geo] [plain text] Error: cannot allocate vector of size 274.7 Mb

2012-11-13 Thread Raffaele Morelli
Hi, sorry for double posting but I saw my messages were scrubbed from html garbage and don't know if nobody replies for that, but just in case... apologize if not. I am having trouble with this error when calculating a density on a point pattern dataset with 34480 points. My script exit when

Re: [R-sig-Geo] [plain text] Error: cannot allocate vector of size 274.7 Mb

2012-11-13 Thread Raffaele Morelli
2012/11/13 Roman Luštrik roman.lust...@gmail.com: Would it be at all possible if you made your problem reproducible? Cheers, Roman I can upload my .RData (~45Mb) on a server and the script if you're willing to try. In the meanwhile I am doing some test with my owin taken from the maps

[R-sig-Geo] rgdal spatstat: gtiff

2012-11-06 Thread Raffaele Morelli
Hi, I am using this code snippet to produce Gtiff images from density.ppp z-density(mypattern, 6000,dimyx=200) zgrid - as.SpatialGridDataFrame.im(z) writeGDAL(zgrid, 01.tif, type=Byte, options=INTERLEAVE=PIXEL) Gtiff image is generated but gdalinfo among others reports that: Image

[R-sig-Geo] kernel2d - raster/grid

2012-10-15 Thread Raffaele Morelli
Hi, how can I convert kernel2d estimation to a raster in order to use it as a mapserver layer? I saw maptools can save kernel2d to contour to shape file with ContourLines2SLDF. Any hints? Regards -r -- *L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di

Re: [R-sig-Geo] Splancs and polymap

2012-03-30 Thread Raffaele Morelli
2012/3/29 Roger Bivand roger.biv...@nhh.no On Thu, 29 Mar 2012, Raffaele Morelli wrote: Hi, I am working on a simple kernel2d analisys and would like to create a polymap from a SpatialPolygonsDataFrame, let's stay US states. how can I accomplish this task? can you point me to the right

[R-sig-Geo] Splancs and polymap

2012-03-29 Thread Raffaele Morelli
Hi, I am working on a simple kernel2d analisys and would like to create a polymap from a SpatialPolygonsDataFrame, let's stay US states. how can I accomplish this task? can you point me to the right direction? regards -r -- *L'unica speranza di catarsi, ammesso che ne esista una, resta

[R-sig-Geo] bbox

2011-11-09 Thread Raffaele Morelli
Hi, once a Postgis layer X is retrieved, how can I juggle with subsets of X? eg. I am working with bubble plots on a EU dataset but I want to do test it only using a 30x30Km in the nearby of Rome and I have no attribute data but the value I use for the bubbles. Should I use subset? Can I set a

[R-sig-Geo] readShapePoints issue

2011-09-26 Thread Raffaele Morelli
Hi, I am working with R and using pgsql2shp to export shape files from pg. The shapes are created by pgsql2shp but when I try to import them in a R enviromnent I get this error Error in res[i, ] - Map$Shapes[[i]]$verts : replacement has length zero So, I can load the shape files in Qgis but not