On 14/10/11 18:24, Mathieu Rajerison wrote:
> Hi,
>
> And will contiguous raster cells have the same value, as Arnaud expected?

Having thought about it a bit more, I *may* have understood what the problem
is, and how to proceed.  At least in part.

If I am understanding things correctly, what needs to be done is to convert
each collection of raster cells corresponding to a single give value to an
object of class "owin".  (I have no idea how to do this; presumably the 
tools
for manipulating rasters will allow the user to select out those cells 
corresponding
to a single given value and save that as a new raster object.  Then the 
problem
reduces to the old one of converting a raster object to an object of 
class owin.)

Then proceed as I previously suggested.

     cheers,

         Rolf Turner

	[[alternative HTML version deleted]]

