[R-sig-Geo] Building a vector of random sf st_points

2016-12-21 Thread Pierre Racine
Hi, Very new to spatial R. I'm trying to find the best way to build a sf dataframe of random points inside an extent. I built a matrix of random coordinates and now I try to convert this matrix to a vector of st_point. I was expecting that something like: PTS <- matrix(seq(1,6), 3, 2) ptsdf <-

Re: [R-sig-Geo] How to see polygons vertex

2011-07-12 Thread Pierre Racine
iginal Message- > From: r-sig-geo-boun...@r-project.org [mailto:r-sig-geo-bounces@r- > project.org] On Behalf Of Pierre Racine > Sent: Tuesday, July 12, 2011 4:29 PM > To: r-sig-geo@r-project.org > Subject: [R-sig-Geo] How to see polygons vertex > > Hi, >

[R-sig-Geo] How to see polygons vertex

2011-07-12 Thread Pierre Racine
Hi, I want to see all the vertex of a SpatialPolygonsDataFrame in a plot. Should I convert or extract the coordinates of each polygons and then plot them? How? Thanks, Pierre ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mai

Re: [R-sig-Geo] Problem reading back a raster from GRASS

2011-01-28 Thread Pierre Racine
Ok I passed "SG=image1" to initGRASS() and now I get the full extent of the image back. Thanks Roger >-Original Message- >From: Roger Bivand [mailto:roger.biv...@nhh.no] >Sent: 28 janvier 2011 14:59 >To: Pierre Racine >Cc: r-sig-geo >Subject: Re: [R-sig

[R-sig-Geo] Problem reading back a raster from GRASS

2011-01-28 Thread Pierre Racine
Hi, It seems I'm having problem storing a raster into GRASS using the spgrass6 package. I writeRAST6() a 1376x1376 raster to GRASS, but when I readRAST6() it back to R the raster is only 1x1 pixels... Note that the raster is a bmp and hence is not projected to any coordinate system. I must be

Re: [R-sig-Geo] Vectorize and buffer

2011-01-25 Thread Pierre Racine
I see functions to rasterize in the raster package but nothing to vectorize... and certainly nothing to do buffer around polygons. Pierre From: romu...@gmail.com [mailto:romu...@gmail.com] On Behalf Of Roman LuĀ¹trik Sent: 25 janvier 2011 14:27 To: Pierre Racine Cc: r-sig-geo Subject: Re: [R-sig

[R-sig-Geo] Vectorize and buffer

2011-01-25 Thread Pierre Racine
Hi list, I trying to find how to do two operations in R: 1-Convert (vectorize) a raster to polygons 2-Make buffers around a set of polygons Thanks for your help, Pierre ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/