On Tue, Jan 3, 2012 at 3:15 PM, Marcello Gorini <[email protected]> wrote:
> Dear all,
>
> I need to extract the center of raster areas as another raster.
>
> Since my script is totaly raster-based (and I am not used to using vectors),
> I tried to find some kind of r.thin that would generate the centroids,
> instead of trying to "force" the area into lines.

find a script attached which calculated centroids from raster areas.
You may expand it with a final r.in.xyz step to write out the calculated
centroid(s) as raster map.

Hope this helps,
Markus

Attachment: r.centroid
Description: Binary data

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to