Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread JOSEPH BECHARA
Dear Frede, Thanks for your reply. This is the function that is not working bb-readOGR(dsn=C:/sophie/Allpoints/All_poly.gdb,layer=All_lays1) All lays is a feature class in a file gdb(new) . The file is not corrupted I’m able to open it on ARCIS and I’m doing the zonal statisctics

Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread Frede Aakmann Tøgersen
Hi Joseph If you email me or otherwise make it available to me and/or the list then I'll have a look at it. Br. Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: JOSEPH BECHARA Dato:09/07/2014 08.58 (GMT+01:00) Til: Frede Aakmann Tøgersen ,r-sig-geo@r-project.org

Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread Michael Sumner
Try ogrListLayers( dsn=C:/sophie/Allpoints/All_poly.gdb) that should give you the right layer name/s for use with readOGR On 9 Jul 2014 16:59, JOSEPH BECHARA jbech...@lri-lb.org wrote: Dear Frede, Thanks for your reply. This is the function that is not working

Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread JOSEPH BECHARA
Hi Michael, It worked partially. I still have an error message dd-ogrListLayers(dsn=C:/sophie/Allpoints/All_poly.gdb) bb-readOGR(dsn=dd,layer=All_lays1) Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv) : Cannot open file In addition:

Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread Michael Sumner
dd is the layer name/s, so literally I meant to use it to find what All_lays1 really should be. (I have no experience with this format thankfully). So see for yourself what ogrListLayers reports, then the dsn for readOGR is the same, but it also wants a layer name as the second arg. (I probably

[R-sig-Geo] a KMZ question, please

2014-07-09 Thread Hodgess, Erin
Hello Geo-Phytes! How are you today? I have a quick question, please: I would like to make a KMZ file as an output from the plotKML function (from an STFDF object). What zip programs can do this, please? WinZip doesn't seem to work. This is on Windows 7. Thanks for any help,

Re: [R-sig-Geo] a KMZ question, please

2014-07-09 Thread Forrest Stevens
I've had no problems just using 7Zip to package the kml and images together. I'm surprised WinZip doesn't work? Forrest -- Forrest R. Stevens Ph.D. Candidate, QSE3 IGERT Fellow Department of Geography Land Use and Environmental Change Institute University of Florida

Re: [R-sig-Geo] a KMZ question, please

2014-07-09 Thread Michael Treglia
Hi Erin, I also use 7zip for most of my .zip-ing needs and such. I don't typically deal with .kmz files, but found this batch script using 7zip that might be useful [DISCLAIMER: I have not tried it... just a suggestion that might help]:

[R-sig-Geo] RasterBrick: Change resolution, keep the values

2014-07-09 Thread Michael Peichl
Dear all, I would like to change the resolution of the following RasterBrick to 100, 100. class : RasterBrick dimensions : 225, 175, 39375, 720 (nrow, ncol, ncell, nlayers) resolution : 4000, 4000 (x, y) extent : 4038000, 4738000, 522, 612 (xmin, xmax, ymin, ymax)

Re: [R-sig-Geo] RasterBrick: Change resolution, keep the values

2014-07-09 Thread Michael Treglia
Hi Michael, Looks like you're using the Raster package. In that package, check out the resample() function ( http://www.inside-r.org/packages/cran/raster/docs/resample) - looks like that does what you want. Make sure both layers are in the same projection - otherwise you can use projectRaster()

Re: [R-sig-Geo] RasterBrick: Change resolution, keep the values

2014-07-09 Thread Rafael Wüest
Hi Micheal, I think you can use the raster::disaggregate function in this case, with method = '' Check out ?disaggregate for more details. HTH, Rafael On 09.07.14 18:48, Michael Treglia wrote: Hi Michael, Looks like you're using the Raster package. In that package, check out the

Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread Roger Bivand
The reason is that Joseph Bechara's post included a jpeg image at 16KB, and an HTML component breaking the list requirement to post in plain text only. Multiple copies of his logo then clog up the system. The real answer to is problem is that ogrDrivers() will show that he does not have the

Re: [R-sig-Geo] reading a feature class

2014-07-09 Thread Michael Sumner
On 10 Jul 2014 03:24, Roger Bivand roger.biv...@nhh.no wrote: The reason is that Joseph Bechara's post included a jpeg image at 16KB, and an HTML component breaking the list requirement to post in plain text only. Multiple copies of his logo then clog up the system. The real answer to is