[R-sig-Geo] attribing x-coordinates to map cells

2008-02-08 Thread Milton Cezar Ribeiro
Dear all, I have some ascii/grid files and I would like to save the x-coordinates into a new ascii/grid cells with the same dimentions that my input map. Below follow a temptative code. (file1 <- paste(system.file(package = "adehabitat"), "ascfiles/elevation.asc", sep = "/")) el

[R-sig-Geo] Res: converting shapefile/polygon to psp

2008-02-04 Thread Milton Cezar Ribeiro
ip betteen lines and polygons. I understand that it is a topological question, but I don´t know how to deal it on sp/maptools. Case you have other ideas, please, let me know. Regards a lot, miltinho - Mensagem original De: Roger Bivand <[EMAIL PROTECTED]> Para: Milton Cezar

[R-sig-Geo] converting shapefile/polygon to psp

2008-02-04 Thread Milton Cezar Ribeiro
Dear all, I have some shapefiles which contents are polygons and I would like to convert it to psp (spatstat) format, and after run crossdist.psp. I tryed several times without success. Any idea? Miltinho para armazenamento! [[alternative HTML version deleted]] ___

[R-sig-Geo] Res: Subsetting shapefile type PolyLine

2008-02-04 Thread Milton Cezar Ribeiro
Hi Rafael i think that it could help you teste2.elev100<-teste2[teste2$ELEVATION=100] plot(teste2,axes=T) plot(teste2.elev100,col=2,add=T) Boa sorte. Miltinho Brazil - Mensagem original De: Rafael Duarte <[EMAIL PROTECTED]> Para: r-sig-geo@stat.math.ethz.ch Enviadas: Segunda-feira, 4

[R-sig-Geo] Res: merging data with SpatialPolygonsDataFrame

2008-01-25 Thread Milton Cezar Ribeiro
This thread are so long, but I confess that it is need and many useful/interesting. - Mensagem original De: Dylan Beaudette <[EMAIL PROTECTED]> Para: [EMAIL PROTECTED] Cc: r-sig-geo@stat.math.ethz.ch; Richard Plant <[EMAIL PROTECTED]> Enviadas: Sexta-feira, 25 de Janeiro de 2008 18:05

[R-sig-Geo] plotting only polygons with points inside.

2008-01-22 Thread Milton Cezar Ribeiro
Dear all, Following a code suggested by Roger Bivand (thanks Roger!), I made a little modification to my own case. My questions are: (1) how can I plot only those polygons where I have "cnt">0; (2) how can I define classes of "cnt" (like 1-5; >5 to 20; >20-100) and choose a color for each lev

[R-sig-Geo] changing a polygon feature of position.

2008-01-17 Thread Milton Cezar Ribeiro
Hi there, I have a shapefile with several non-contiguos polygons, and I identifyed the centroid of each one. I modified some midpoints of polygons and now I need to place those polygon which had its midpoints changed in a way that the new centroid position come to be aproximately the new midpoi

[R-sig-Geo] clipping a large image on R

2008-01-11 Thread Milton Cezar Ribeiro
Dear all, I have a so large image (43,000 x 18,000 pixels) and I need clip this image with a smallest one (1000x1000 pixels). I can read the second image using rgdal package. But the first image can´t be read on my system because if memory limitation (I have about 2GB availabe). So I would li

[R-sig-Geo] Markov Chain Monte Carlo (MCMR) in R for spatial simulation.

2007-12-11 Thread Milton Cezar Ribeiro
Dear all, I would like to know if is there some MCMR capability (functions) develped to improve spatial explicit landscape simulations in R. Kind regards, miltinho Brazil. para armazenamento! [[alternative HTML version deleted]] ___ R-s

[R-sig-Geo] spatstat questions

2007-12-09 Thread Milton Cezar Ribeiro
Hi all, Is there a mailing list for spatstat R package? Another question: Can I find some ebooks on Spatial Pattern Analysis to be downloaded? Finally, how can I use a shapefile as "mask" on spatstat? I read the polygon using maptools::read.shape function and now I would like to use this shape

[R-sig-Geo] Crossing native ArcGis GRID with a XY coordinate table

2007-07-10 Thread Milton Cezar Ribeiro
Dear All, I have about 50 native ArcGis GRID maps and I need read them on R. After that I need to cross these maps with a set of XY coordinates which are stored on a table. When XY coordinates of my table match with the pixels of my maps, I would like to store the values of the pixels as a collu

[R-sig-Geo] Res: ODP: Generating vetor (shapefiles) in R

2007-06-21 Thread Milton Cezar Ribeiro
<[EMAIL PROTECTED]> Para: Milton Cezar Ribeiro <[EMAIL PROTECTED]>; r-sig-geo@stat.math.ethz.ch Enviadas: Quarta-feira, 20 de Junho de 2007 17:29:16 Assunto: ODP: [R-sig-Geo] Generating vetor (shapefiles) in R Grids are not vector format - you could coerce the SpatialGridDa

[R-sig-Geo] Generating vetor (shapefiles) in R

2007-06-20 Thread Milton Cezar Ribeiro
Hi there, I need to convert a raster (ascGrid) format to Shape files. Is there a way of to do that on R? Kind regards miltinho http://yahoo.com.br/oqueeuganhocomisso [[alternative HTML versio

[R-sig-Geo] Shape to AscGrid

2007-03-17 Thread Milton Cezar Ribeiro
Dear helpers I need convert a shape file to AscGrid format. How can I select a field, convert to AscGrid and save as ascii file? Kind regards, miltinho __ [[alternative HTML version deleted]] ___

Re: [R-sig-Geo] GRASS with R and distances between polygon edges

2006-10-30 Thread Milton Cezar Ribeiro
How about FRAGSTAT?! IF help is need, fell free to write me directly. kind regards, Miltinho - [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch http

Re: [R-sig-Geo] GRASS with R and distances between polygon edges

2006-10-30 Thread Milton Cezar Ribeiro
How about FRAGSTAT?! IF help is need, fell free to write me directly. kind regards, Miltinho Colin Robertson <[EMAIL PROTECTED]> escreveu: Hi Duncan, For calculating the distance between polygons, there are descriptions of the calculations for average distance and minimum distance i

[R-sig-Geo] clampy in binary image

2006-10-21 Thread Milton Cezar Ribeiro
Hi there, I have a binary image and I need to identify each clump of non-zero values and attrib a diferent "patch" id-number. Is there a R package that do that? By the way, what are the R packages for image manipulation? Kind regards, Miltinho BRAZIL