[R-sig-Geo] How to do square buffers around spatial points

Alexandre Villers villers.alexandre at gmail.com
Thu Aug 25 15:17:06 CEST 2016


You can try the rgeos::gBuffer() with capStyle='SQUARE'
p<-SpatialPoints(matrix(c(1,1), ncol=2))
plot(p)
plot(gBuffer(p, capStyle="SQUARE",width=0.1), add=T)

Would that fit you ?

regards

Alex

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list