Hello everyone, I am a graduate student in the Masters in GIS program at
Penn State World Campus. For my thesis, I will be using GRASS and
R-spatial to look at whether a correlation exists between persons with
asthma and industrial emissions in New Mexico, USA. I will also be
using MapServer and OpenLayers to make the data (and methods used)
available on the Web. During the project, I will only be using Open
Source. Additionally, as part of graduation requirements, I will be
presenting my work at a conference in 2009 (undecided on which
conference).
I am in the process of learning GRASS and ran into an error message as I
was working through the text in Neteler's book "Open Source GIS:A Grass
Approach" (3rd edition), page 37, Section 3.2: Starting GRASS with a new
project.
Side note: installed Grass 6.2.2 using apt-get in Ubuntu 7.10.
After starting a new project using the "start new location with a
georeferenced file" option, I get an error when I click "Define
Location". I am using the North Carolina sample data and using the
gdc.prj for the georeferenced file. The error is as follows:
/usr/bin/x-terminal-emulator: to set an icon, please use -name <profile>
and set a profile icon
/usr/bin/x-terminal-emulator: to set an icon, please use -name <profile>
and set a profile icon
while executing
"exec -- $env(GISBASE)/etc/grass-xterm-wrapper -T g.proj -n g.proj -e
$env(GISBASE)/etc/grass-run.sh g.proj -c georef=$filepath location=
$fileLocation"
invoked from within
".fileloc.def invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .fileloc.def"
(command bound to event)
I am new to Linux as well, so any insight on this error is much
appreciated.
Thanks for the help and look forward to being a part of the GRASS
community.
After starting a new project using the "start new location with a
georeferenced file" option, I get an error when I click "Define
Location". I am using the North Carolina sample data and using the
gdc.prj for the georeferenced file.
Maybe it works, I'm not sure - it might just concentrate on the layer
name not the extension - but I thought it wanted the .shp file for that,
not the .prj file that comes with it? (from within GRASS, you can feed
it that definition with 'g.proj wkt=gdc.prj')
The error is as follows:
/usr/bin/x-terminal-emulator: to set an icon, please use -name
<profile>
and set a profile icon
....
I am new to Linux as well, so any insight on this error is much
appreciated.
We saw this before with Ubuntu; a quick mailing list search finds:
I believe the problem is that the version of x-terminal-emulator ->
/usr/bin/gnome-terminal.wrapper on your system is broken. Probably fixed
with Hardy Heron?
Anyway there is a quick fix: before starting GRASS set the default
terminal to something other than gnome-terminal:
export GRASS_TERMINAL=xterm
grass62
or another like rxvt. ("aptitude install xterm" if you need it; put the
setting in ~/.bashrc if you want to make it permanent)
Thanks for the help and look forward to being a part of the GRASS
community.
Welcome, you project sounds both interesting and worthwhile.
On Sun, Apr 27, 2008 at 3:20 AM, Hamish <hamish_b@yahoo.com> wrote:
> After starting a new project using the "start new location with a
> georeferenced file" option, I get an error when I click "Define
> Location". I am using the North Carolina sample data and using the
> gdc.prj for the georeferenced file.
Indeed, I also get that error.
Maybe it works, I'm not sure - it might just concentrate on the layer
name not the extension - but I thought it wanted the .shp file for that,
not the .prj file that comes with it? (from within GRASS, you can feed
it that definition with 'g.proj wkt=gdc.prj')
There is a .shp file too, please use that file.
@developers: I think that we need a test in the location definition part of
the code if the user provided a .prj file or something else to make use
of the right g.proj parameters.
It is function proc epsgOpt::runproj in lib/init/epsg_option.tcl
> The error is as follows:
>
> /usr/bin/x-terminal-emulator: to set an icon, please use -name
> <profile>
> and set a profile icon
....
This is an Ubuntu bug. In GRASS 6.3 this part was modified to
also work with Ubuntu. Please consider to update (hopefully
an Ubuntu package comes out soon).
Hamish: that's not fair! Is searched the mailing list for the error
before posting but didn't get any results.
I also considered installing 6.3 from source. Decided to post first. I
will upgrade to Ubuntu Hardy and try GRASS from the repo to see if it
works (out of curiosity) then report back. Then I will install 6.3 from
source.
I tried the *.shp file before posting. Same error.
Just tried exporting the terminal xterm (GRASS_TERMINAL=xterm). Same
error.
Well, time to backup and install Hardy.
Thanks for the help.
-
Andrew Parker
On Sun, 2008-04-27 at 10:43 +0200, Markus Neteler wrote:
On Sun, Apr 27, 2008 at 3:20 AM, Hamish <hamish_b@yahoo.com> wrote:
> > After starting a new project using the "start new location with a
> > georeferenced file" option, I get an error when I click "Define
> > Location". I am using the North Carolina sample data and using the
> > gdc.prj for the georeferenced file.
Indeed, I also get that error.
> Maybe it works, I'm not sure - it might just concentrate on the layer
> name not the extension - but I thought it wanted the .shp file for that,
> not the .prj file that comes with it? (from within GRASS, you can feed
> it that definition with 'g.proj wkt=gdc.prj')
There is a .shp file too, please use that file.
@developers: I think that we need a test in the location definition part of
the code if the user provided a .prj file or something else to make use
of the right g.proj parameters.
It is function proc epsgOpt::runproj in lib/init/epsg_option.tcl
> > The error is as follows:
> >
> > /usr/bin/x-terminal-emulator: to set an icon, please use -name
> > <profile>
> > and set a profile icon
> ....
This is an Ubuntu bug. In GRASS 6.3 this part was modified to
also work with Ubuntu. Please consider to update (hopefully
an Ubuntu package comes out soon).
Hamish: that's not fair! Is searched the mailing list for the error
before posting but didn't get any results.
Occasionally the htDig search tool gives no hits for any search term,
even something like "GIS". Me, I prefer to search using the Gmane
archive; others like the Nabble archive. shrug.
Just tried exporting the terminal xterm (GRASS_TERMINAL=xterm). Same
error.
(sorry about giving you the wrong variable name for that, my bad)
On Mon, Apr 28, 2008 at 3:19 PM, Hamish <hamish_b@yahoo.com> wrote:
Andrew Parker wrote:
> Hamish: that's not fair! Is searched the mailing list for the error
> before posting but didn't get any results.
Occasionally the htDig search tool gives no hits for any search term,
even something like "GIS". Me, I prefer to search using the Gmane
archive; others like the Nabble archive. shrug.
That's easy to answer: htdig isn't installed right now.
I really (!) need help here:
- set up awstats on grass.osgeo.org
- set up htdig on grass.osgeo.org
- bother to set up htdig on lists.osgeo.org (see osgeo trac ticket,
Wolf should have acces)