[R-sig-Geo] Writing PNG files with rgdal

2009-08-14 Thread Barry Rowlingson
I'm wondering if there's an easy way to write PNG files from a matrix? I've got an NxM matrix of values, z, and I want to produce an NxM pixel PNG file. I have a function pfunc(.) that converts values to colours. So currently I do this: library(rtiff) library(rgdal) z = matrix(runif(100),1

Re: [R-sig-Geo] GDAL problem writing Idrisi format

2009-08-14 Thread Roger Bivand
On Fri, 14 Aug 2009, Alberto Ruiz Moreno wrote: I get the error GDAL Error 4: `C:\DOCUME~1\Temp\Rtmplib5Gm\file5f906952' not recognised as a supported file format. When a try to write a SpatialGridDataframe as Idrisi A.1 raster format x <- readGDAL(system.file("external/test.ag", package="s

[R-sig-Geo] [Report #12 - end SoC] Kriging with GRASS and R: v.autokrige port to wxPython and more

2009-08-14 Thread Anne Ghisla
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all and sorry for cross-posting, this is last SoC report - bringing variogram plotting into v.krige! After a long time searching for the lightest and cleanest implementation, R plotting raised as the best solution. On user demand, a R graphics w

[R-sig-Geo] GDAL problem writing Idrisi format

2009-08-14 Thread Alberto Ruiz Moreno
I get the error GDAL Error 4: `C:\DOCUME~1\Temp\Rtmplib5Gm\file5f906952' not recognised as a supported file format. When a try to write a SpatialGridDataframe as Idrisi A.1 raster format > x <- readGDAL(system.file("external/test.ag", package="sp")[1]) C:/ARCHIV~1/R/R-29~1.1/library/sp/externa

Re: [R-sig-Geo] writeOGR unknown data type

2009-08-14 Thread Roger Bivand
On Fri, 14 Aug 2009, Wesley Roberts wrote: Dear r-sig-geo, I am having trouble exporting an sp object created in R using writeOGR. Below is the code I am using, basically it creates a regular grid to cover a point data set opened using readShapePoints. I then convert the spatialpoints to pol

[R-sig-Geo] writeOGR unknown data type

2009-08-14 Thread Wesley Roberts
Dear r-sig-geo, I am having trouble exporting an sp object created in R using writeOGR. Below is the code I am using, basically it creates a regular grid to cover a point data set opened using readShapePoints. I then convert the spatialpoints to polygons and then finally to a SpatialPolygonsDat