Re: [R-sig-Geo] simplify a polygon window

2012-10-05 Thread Barry Rowlingson
On Fri, Oct 5, 2012 at 2:44 AM, Colin Rundel run...@gmail.com wrote: The gSimplify function in rgeos wraps geos' implemention of the Douglas-Peucker algorithm so it should be easy to try it out for this particular problem, the topologyPreserve argument may also help (the geos documentation

[R-sig-Geo] simplify a polygon window

2012-10-04 Thread sara martino
Hi, I am working with a point pattern whose window is a spatial polygon which describe the cost of Norway. I need to get a smoother version of such polygon which wraps the original one. I have tried to use the function simplify.owin(my.owin,8) but this does not work since some parts of

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread Mathieu Rajerison
Hi Sara, You can't avoid this when simplifying. But you could find the window that results from the intersection from your simplified one and the original with intersect.owin. This window will not overlap the original one. 2012/10/4 sara martino saramart...@yahoo.com Hi, I am working with

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread Barry Rowlingson
On Thu, Oct 4, 2012 at 1:26 PM, sara martino saramart...@yahoo.com wrote: Hi, I am working with a point pattern whose window is a spatial polygon which describe the cost of Norway. I need to get a smoother version of such polygon which wraps the original one. You mean 'coast' of Norway?

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread sara martino
Rajerison mathieu.rajeri...@gmail.com Cc: r-sig-geo@r-project.org r-sig-geo@r-project.org Inviato: Giovedì 4 Ottobre 2012 15:06 Oggetto: Re: [R-sig-Geo] simplify a polygon window Hi Sara, You can't avoid this when simplifying. But you could find the window that results from the intersection from

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread sara martino
bdist.points(). Maybe someone has a better suggestion on  another way to do this Da: Barry Rowlingson b.rowling...@lancaster.ac.uk A: r-sig-geo@r-project.org r-sig-geo@r-project.org Inviato: Giovedì 4 Ottobre 2012 15:16 Oggetto: Re: [R-sig-Geo] simplify a polygon

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread Marcelino de la Cruz
-sig-Geo] simplify a polygon window Hi Sara, You can't avoid this when simplifying. But you could find the window that results from the intersection from your simplified one and the original with intersect.owin. This window will not overlap the original one. Hi, I am working with a point

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread Rolf Turner
On 05/10/12 01:26, sara martino wrote: Hi, I am working with a point pattern whose window is a spatial polygon which describe the cost of Norway. I need to get a smoother version of such polygon which wraps the original one. I have tried to use the function simplify.owin(my.owin,8) but

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread Colin Rundel
The gSimplify function in rgeos wraps geos' implemention of the Douglas-Peucker algorithm so it should be easy to try it out for this particular problem, the topologyPreserve argument may also help (the geos documentation doesn't mention the specific implementation differences between the two