[GRASS-dev] gis.m crashes on zoom to map existing in more
than one mapset
Michael Barton
michael.barton at asu.edu
Fri Jan 5 18:28:55 EST 2007
I just committed Paul's fix that pipes g.region commands through grocat.
Maybe check to see if this fixes this crash on warning too.
Michael
On 1/5/07 6:49 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:
>
> Moritz Lennert wrote:
>
>> I don't know if this is just another manifestation of the changes in
>> g.region, but gis.m crashes when I try to zoom to a map which exists in
>> more than one mapset of the current location.
>>
>> To reproduce in spearfish, in mapset user1:
>>
>> 1) g.copy rast=bugsites at PERMANENT,bugsites (or any other raster or
>> vector map)
>>
>> 2) display bugsites
>>
>> 3) zoom to selected map
>>
>> The command used in mapcanvas.tcl is g.region -ugp rast=bugsites. This
>> gives:
>>
>> GRASS 6.3.cvs (spearfish60):~ > g.region -ugp rast=bugsites
>> WARNING: 'cell/bugsites' was found in more mapsets (also found in user1).
>
> This is a good example of why the solution to the recent
> g.region/gis.m issues is to make gis.m handle warnings correctly
> rather than trying to eliminate specific warnings.
>
> Even the simplest program can potentially result in warnings (or
> similar diagnostics) being generated by libgis (or other libraries) in
> some cases. And for third-party libraries (of which GDAL may use a
> significant number), there is nothing which can be done about it.
>
> Tcl's behaviour of treating anything written to stderr as an error is
> a nuisance, but one which has to be dealt with so long as we continue
> to use Tcl.
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-dev
mailing list