Re: [R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread Edzer Pebesma
On 03/18/2015 11:31 AM, PONS Frederic - CEREMA/DTerMed/DREC/SRILH wrote: Hi I try to change some coordinate in a vector read by readOGR Vecteur = readOGR(dsnlayer,layer=nomlayer) After some calculation, I try this without success:

Re: [R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread Roger Bivand
On Wed, 18 Mar 2015, Edzer Pebesma wrote: On 03/18/2015 11:31 AM, PONS Frederic - CEREMA/DTerMed/DREC/SRILH wrote: Hi I try to change some coordinate in a vector read by readOGR Vecteur = readOGR(dsnlayer,layer=nomlayer) After some calculation, I try this without success:

Re: [R-sig-Geo] Polygons VS MultiLineString

2015-03-18 Thread Mathieu Rajerison
Hello, My advice is : why don't you reclass your raster in categories according to raster values intervals, then you polygonize your reclassified raster ? It would be simpler and you would have a topologically correct layer. That's the way I do it with GRASS but you all the functions also are

[R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread PONS Frederic - CEREMA/DTerMed/DREC/SRILH
Hi I try to change some coordinate in a vector read by readOGR Vecteur = readOGR(dsnlayer,layer=nomlayer) After some calculation, I try this without success: Vecteur[nbi,]@coords=cbind(ProfilProj[,1],ProfilProj[,2]) The error is: Erreur dans as.vector(data) : pas de méthode pour convertir

Re: [R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread PONS Frederic - CEREMA/DTerMed/DREC/SRILH
Thanks Vecteur@coords[nbi,]=cbind(ProfilProj[,1],ProfilProj[,2]) is what I want Fr�d�ric Le 18/03/2015 12:14, Roger Bivand (par Internet, d�p�t r-sig-geo-boun...@r-project.org) a �crit : On Wed, 18 Mar 2015, Edzer Pebesma wrote: On 03/18/2015 11:31 AM, PONS Frederic -

Re: [R-sig-Geo] customized focal mean

2015-03-18 Thread Mathieu Rajerison
Hi, Maybe you could look at raster::focal function and w (matrix of weights arguments) http://www.inside-r.org/packages/cran/raster/docs/focal w matrix of weights (the moving window), e.g. a 3 by 3 matrix with values 1; see Details. The matrix does not need to be square, but the sides must be

[R-sig-Geo] Calculating road (i.e. linear feature) density using spatstat::density.psp()

2015-03-18 Thread Adrian Baddeley
Matt Strimas-Mackey stri...@zoology.ubc.ca writes: Note: I previously posted this question to Stack Exchange, but haven't receive a response. Questions about the spatstat package can best be addressed directly to the authors. I have a large (~70MB) shapefile of roads and want to convert