[R-sig-Geo] Function to cover polygons by rectangles

Roger Bivand Roger.Bivand at nhh.no
Thu Dec 7 10:23:22 CET 2006


On Thu, 7 Dec 2006, Christoph Hofer wrote:

> Dear all,
> 
> Is there a function or package  to cover arbitrary polygons by  
> rectangles?
> I want to approximate a polygon area with as few rectangles as possible.
> 

If regular rectangles, then maybe overlaying SpatialPolygons and 
SpatialPixels may help. But if you are asking for quadtrees, that is I 
think not provided anywhere that I'm aware of (SPANS did that until they 
disappeared). Does starspan help:

http://starspan.casil.ucdavis.edu/?StarSpan

Roger

> 
> Thanks in advance.
> 
> Best regards
> 
> Christoph
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list