[GRASS-user] working on a mounted external disk

Vincent Bain bain at toraval.fr
Wed Apr 8 09:37:43 EDT 2009


In raster/r.proj/main.c, line 208 I wrote :

        if (strcmp(inlocation->answer, G_location()) == 0 &&
           !indbase->answer || strcmp(indbase->answer, G_gisdbase())==
        0))
        	G_fatal_error(_("Input and output locations can not be the
        same"));
        
            G_get_window(&outcellhd);

Then compiled and installed again, but the error remains, and what's
more puzzling to me is that the message string is different from what I
have in the modified file ("You have to use a different location for
input than the current")...

What have I done wrong ?


VB

Le mercredi 08 avril 2009 à 14:32 +0200, Moritz Lennert a écrit :
> On 08/04/09 14:13, Vincent Bain wrote:
> 
> > It would be nice if the dbase argument was checked /before/ the location
> > argument, in order to admit same location names, not necessarily meaning
> > that we project data in an identical projection system.
> 
> Try this (untested):
> 
> Index: raster/r.proj/main.c
> ===================================================================
> --- raster/r.proj/main.c	(révision 36609)
> +++ raster/r.proj/main.c	(copie de travail)
> @@ -219,7 +219,7 @@
> 
>       setname = imapset->answer ? imapset->answer : G_store(G_mapset());
> 
> -    if (strcmp(inlocation->answer, G_location()) == 0)
> +    if (strcmp(inlocation->answer, G_location()) == 0 && 
> (!indbase->answer || strcmp(indbase->answer, G_gisdbase()) == 0))
>   	G_fatal_error(_("You have to use a different location for input than 
> the current"));
> 
>       G_get_window(&outcellhd);
> 
> Moritz
> 



More information about the grass-user mailing list