Re: [R-sig-Geo] Divide a polygon by a line?

2007-11-02 Thread Agustin Lobo
Thanks Hisaji, The problem is that my line is not an straight line, but a very complex polyline (a boundary between types of forest manually digitized over aerial photography) imported from a shp file into a SpatialLinesDataFrame object. Regards, Agus Hisaji ONO escribio': > Hi. > > I've crea

Re: [R-sig-Geo] Divide a polygon by a line?

2007-11-02 Thread Hisaji ONO
Hi. I've create very simple example "cutting polygon by line c(0,5,10,5)" using by gpclib. library(maptools) library(gpclib) x1<-t(structure(c(0,0,10,0,10,10,0,10,0,0),dim=c(2,5))) # simple square ### method using buffer min_buffer_dist <- 1e-10 # set minimum value x2<-t(structure(c(-1,5

Re: [R-sig-Geo] Divide a polygon by a line?

2007-10-30 Thread Agustin Lobo
I've finally done this operation with a GIS. I was trying to perform all this part of the project within R, trying not to use any other tool, as a test. It's clear that the boundary between GIS and spatial analysis is more and more fuzzy. In my opinion, just importing and exporting between R and a

Re: [R-sig-Geo] Divide a polygon by a line?

2007-10-30 Thread Roger Bivand
On Tue, 30 Oct 2007, Agustin Lobo wrote: > Is it possible to divide a polygon by a line > into 2 polygons? No, in general. All computational geometry ends up in having to deal with the type of polygon. A convex polygon is one thing, and can be divided into two parts, but a general polygon may b

[R-sig-Geo] Divide a polygon by a line?

2007-10-30 Thread Agustin Lobo
Is it possible to divide a polygon by a line into 2 polygons? Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole Sabaris s/n 08028 Barcelona Spain Tel. 34 934095410 Fax. 34 934110012 email: [EMAIL PROTECTED] http://www.ija.csic.es/gt/obster ___