Skip to content
Prev 24807 / 29559 Next

How to do square buffers around spatial points

2016-08-25 13:01 GMT+01:00 Manuel Sp?nola <mspinola10 at gmail.com>:
Break it down:

1. For each point compute the coordinates of the four corners of the
square by adding half the width of your square.
2. Construct a Polygon from those four points for each of your source points.
3. Build a SpatialPolygons object from all your Polygons.

How far can you get with it now?

Barry