[GRASS5] Inconsistencies among modules

Helena hmitaso at unity.ncsu.edu
Wed Aug 8 16:09:22 EDT 2001


Frank Warmerdam wrote:

> Rich Shepard wrote:
>
> >  Two inconsistencies I've picked up:
> >
> >  1)  Some modules (e.g., r.in.gdal, r.patch) allow the use of an existing
> >output file name with no warning that that file already exists, and asking
> >the user if it's OK to overwrite it. Other modules (e.g., r.poly, v.digit)
> >tell the user that the output file name exists, does not ask for directions,
> >and refuses to let the user overwrite it. Recommendation: always check,
> >always ask, follow the user's directions.
> >
>
> Folks,
>
> What would the normal mechanism be to ask the user if they want to overwrite
> an existing raster layer?

r.mapcalc does it the right way, most of other programs don't

mapcalc> diff=owhusle-owhusle.rst
diff - already exists. ok to overwrite? (y/n)


>
>
> Best regards,
>
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list