[GRASS-user] creating two new maps from one existing raster

Maris Nartiss maris.gis at gmail.com
Wed Aug 22 23:04:44 PDT 2012


Hello Alexander,
if You are not willing to make it into GRASS addon, then, please,
submit it to issue tracking system so it doesn't get lost in ML.


Thanks!
Maris.

2012/8/22 Alexander Muriy <amuriy at gmail.com>:
> Hi, Janet and all.
>
>>
>> can anyone tell me how to make 2 rasters out of my 1 along a user
>> specified
>> line, or how to successfully digitize this?
>> thank you,
>>
>
> I wrote a small shell script <r.split.line> for splitting the raster map
> into parts with the line(s). Hope it will be useful.
>
> --------------------------------------------------
> ./r.split.line -help
>
> Description:
>  Split raster into parts with vector line(s). Lines MUST intersect the whole
> raster map.
>
> Keywords:
>  raster,vector
>
> Usage:
>  r.split.line raster=name line=name [--verbose] [--quiet]
>
> Flags:
>  --v   Verbose module output
>  --q   Quiet module output
>
> Parameters:
>   raster   Name of input raster map
>     line   Name of vector map with line(s)
> ---------------------------------------------------
>
> The script is attached.
>
> Spearfish example (raster <elevation.10m>) with animation in GIF:
> http://img708.imageshack.us/img708/7835/rsplitline.gif
>
> ---------------------------------------------------
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list