[GRASS-user] Fixing Collared DRGs

Craig Leat Craig at pid.co.za
Wed Apr 2 15:51:35 EDT 2008



Tom Russo wrote:
> 
> ...
>   v.to.rast input=o48112d2_bounds output=o48112d2_bounds use=val value=1
>      (this one generates a raster that's 1 inside the neatline, null
> outside)
>   echo
> "o48112d2_withoutcollar=if(!isnull(o48112d2_bounds),o48112d2_withcollar,null())"
> | r.mapcalc
>     (this populates the _withoutcollar map only where the mask is
> non-null)
>     (you could also do it with 
>         r.mask input=o48112d2_bounds
>         echo "o48112d2_withoutcollar=o48112d2_withcollar"| r.mapcalc
>         r.mask -r
>     )
> ...
> 

Hi

Another way is to use gdal_rasterize. See point e) under the Mosaicing
section of this tutorial by Frank Warmerdam:

http://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial

Craig

-- 
View this message in context: http://www.nabble.com/Fixing-Collared-DRGs-tp16410116p16450018.html
Sent from the Grass - Users mailing list archive at Nabble.com.



More information about the grass-user mailing list