Or, if you want to use this approach for your problem (transforming a
line into a polygon and then rasterize), a solution would be to use the
function "buffer" from the package adehabitatMA (on RForge), which
calculates a buffer from a SpatialLines.
Best regards,
Cl?ment.
On 10/03/2010 05:59 PM, Mathieu Basille wrote:
Dear Arnaud,
This is actually on my todo list, a test with the polygon approach,
although I'm not sure how to start to "polygonize" the segments... But
in the end, that would allow a performance comparison with different
approaches (and that would also allow the calculation of the
characteristics of buffers around the segments, which might be
interesting for us, too).
Thanks for the suggestion,
Mathieu.
Le 03/10/2010 10:04, Arnaud Mosnier a ?crit :
Hi Mathieu,
An easy workaround could be to convert each segment to a polygon doing a
very small buffer around each segment then use the overlay method to
obtain info in each of these polygon.
Arnaud