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

Rainer M. Krug rmk at krugs.de
Fri Jun 22 09:36:46 CEST 2007


What about using grass 6 and the command r.to.vect - you can do this 
from R with the package spgrass6

Rainer


Milton Cezar Ribeiro wrote:
> Dear Roger,
> 
> I am simulating some analyzes on R, and the output are a lot of AscGrid (raster) maps. After generate these maps (about 1,000 of them), I need convert these maps to vector (shapefiles) format, because I need join some attributes to each feature (polygon). I can do it on ArcGis, and use the spatial analyst extentention, and convert one by one, but unfortunately as I have 1,000 maps, it is so time consuming.
> 
> I thougth that there are some package/function on R that vectorize a raster (ascGrid) format.
> 
> Any ideas?
> 
> miltinho
> 
> 
> ----- Mensagem original ----
> De: Roger Bivand <Roger.Bivand at nhh.no>
> Para: Milton Cezar Ribeiro <milton_ruser at yahoo.com.br>; r-sig-geo at 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 SpatialGridDataFrame to a SpatialPointsDataFrame, but is this the kind of output you need? SpatialPixels can also be coerced to SpatialPolygons rectangles, but what you do will depend on your needs.
>  
> Roger
>  
> --- Roger Bivand, NHH, Helleveien 30, N-5045 Bergen, Roger.Bivand at nhh.no
> 
> 
> 
> 
> Od: r-sig-geo-bounces at stat.math.ethz.ch w imieniu Milton Cezar Ribeiro
> Wys©Èano: ªÜr 20.06.2007 16:28
> Do: r-sig-geo at stat.math.ethz.ch
> Temat: [R-sig-Geo] Generating vetor (shapefiles) in R
> 
> 
> 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 version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 
> 
>        
> ____________________________________________________________________________________
> 
> http://yahoo.com.br/oqueeuganhocomisso 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo




More information about the R-sig-Geo mailing list