[GRASS-windows] Problems with Mapcanvas

Doug_Newcomb at fws.gov Doug_Newcomb at fws.gov
Mon Nov 19 15:57:34 EST 2007


Output from g.region -up for problem region:

projection: 99 (Lambert Conformal Conic
)
zone:       0
datum:      nad83
ellipsoid:  grs80
north:      318126.96875
south:      9865.25585938
west:       124020.9375
east:       930348.81249962
nsres:      2.43839355
ewres:      2.43840061
rows:       126420
cols:       330679
cells:      -1145233780


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Output for g.region for working region ( same projection/datum) :
projection: 99 (Lambert Conformal Conic)
zone:       0
datum:      nad83
ellipsoid:  grs80
north:      55764.37045808
south:      41633.84245808
west:       655584.20613187
east:       667386.06213187
nsres:      2.4384
ewres:      2.4384
rows:       5795
cols:       4840
cells:      28047800

Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb at fws.gov
---------------------------------------------------------------------------------------------------------

The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of Interior.
Life is too short for undocumented, proprietary data formats.


                                                                           
             Glynn Clements                                                
             <glynn at gclements.                                             
             plus.com>                                                  To 
                                       Doug_Newcomb at fws.gov                
             11/19/2007 03:37                                           cc 
             PM                        grass-dev at lists.osgeo.org,          
                                       grass-windows at lists.osgeo.org       
                                                                   Subject 
                                       Re: [GRASS-windows] Problems with   
                                       Mapcanvas                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Doug_Newcomb at fws.gov wrote:

> > > I'm having trouble viewing any datasets on the map canvas.  When I
"Enter
> > > GRASS"  I get the following message popping up :
> > >
> > > can't read "end": no such variable
> > > can't read "end": no such variable
> > >     while executing
> > > "string trim $parts(projection) $end"
> > >     (procedure "MapCanvas::runprograms" line 47)
> >
> > The code (mapcanvas.tcl:593) is:
> >
> >                          # Finally put this into wind file format to
use with GRASS_REGION
> >                          regexp -nocase {^.* (\(.*\))}
$parts(projection) trash end
> >                          set parts(projection) [string trim
$parts(projection) $end]
> >
> > It should be checking the return value from regexp before trying to
> > use the match variables.
>
>       The regions that I entered were created using the startup tool with
> the EPSG code and Georefernced file options.  Based on your feedback
below,
> I created a new mapset using qgis 0.9.  I was then able to open the new
> mapset  in GRASS without the error message.
>
>        Could there be a problem with the way that the startup menu
creates
> new regions/mapsets from EPSG codes and Georeferenced files?

Possibly. It would be useful to see the output from "g.region -up"
for a non-working location.

--
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-windows mailing list