[GRASS-user] working on a mounted external disk
Moritz Lennert
mlennert at club.worldonline.be
Wed Apr 8 08:32:52 EDT 2009
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