[GRASS-user] Display thematic vector map - WinGRASS 6.3 (Vista)

On Jan 3, 2009, at 6:47 AM, <grass-user-request@lists.osgeo.org> wrote:

Date: Sat, 3 Jan 2009 07:43:17 +0100
From: "Markus Neteler" <neteler@osgeo.org>
Subject: Re: [GRASS-user] Display thematic vector map - WinGRASS 6.3
  (Vista)
To: "Ken Brookes" <ken_brookes@hotmail.com>
Cc: Grass GIS Users List WinGRASS User <grass-user@lists.osgeo.org>
Message-ID:
  <86782b610901022243o54070b91q3a5802660186b5b0@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jan 2, 2009 at 10:03 PM, Ken Brookes <ken_brookes@hotmail.com> wrote:

Hello

I'm a GRASS GIS novice and have recently downloaded and successfully
installed GRASS 6.3.0 directly onto MS-Windows Vista. I have been playing
with the GIS manager GUI and have run into a problem trying to create
thematic Vector maps and display them in the map display. I am using the
North Carolina data set (example data set provided) and a variety of vector
maps to try and create graduated color, point and line maps to get a feel of
how it works. I have been adding the thematic layer and specifying all the
parameters correctly in the GUI. The actual binning of the numeric data is
occurring properly because a new window will pop-up with the correct
legend for the parameters specified, however nothing will display in the map
display window. I do get a message in the command line shell saying "No such
monitor exists 'PNG' ". I've tried to run d.vect.thematic through the
command line shell and get an error saying "must open display monitor". I'm
not sure what the problem is. Can anyone help?

The problem is that winGRASS does not support X or PNG monitors.
The solution is the new Python based user interface.
I am not sure if there is a d.vect.thematic equivalent already (we are
preparing 6.4.0 these days) which work on Windows since I am no
Windows user.
I hope you get the answer from another group member.

Markus

GRASS does support PNG monitors in winGRASS (or the TclTk canvas wouldn't work). There was a bug that caused problems with winGRASS and thematic mapping last Spring. I don't remember what it was, but thought it was fixed. What is the compile date of your version of GRASS 6.3?

Michael

I used the WinGRASS 6.3.0-4 Setup.exe to install GRASS on Vista from July 19,
2008.

K. Brookes

Michael Barton wrote:

On Jan 3, 2009, at 6:47 AM, <grass-user-request@lists.osgeo.org> wrote:

Date: Sat, 3 Jan 2009 07:43:17 +0100
From: "Markus Neteler" <neteler@osgeo.org>
Subject: Re: [GRASS-user] Display thematic vector map - WinGRASS 6.3
  (Vista)
To: "Ken Brookes" <ken_brookes@hotmail.com>
Cc: Grass GIS Users List WinGRASS User <grass-user@lists.osgeo.org>
Message-ID:
  <86782b610901022243o54070b91q3a5802660186b5b0@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jan 2, 2009 at 10:03 PM, Ken Brookes
<ken_brookes@hotmail.com> wrote:

Hello

I'm a GRASS GIS novice and have recently downloaded and successfully
installed GRASS 6.3.0 directly onto MS-Windows Vista. I have been
playing
with the GIS manager GUI and have run into a problem trying to create
thematic Vector maps and display them in the map display. I am
using the
North Carolina data set (example data set provided) and a variety
of vector
maps to try and create graduated color, point and line maps to get
a feel of
how it works. I have been adding the thematic layer and specifying
all the
parameters correctly in the GUI. The actual binning of the numeric
data is
occurring properly because a new window will pop-up with the correct
legend for the parameters specified, however nothing will display
in the map
display window. I do get a message in the command line shell saying
"No such
monitor exists 'PNG' ". I've tried to run d.vect.thematic through the
command line shell and get an error saying "must open display
monitor". I'm
not sure what the problem is. Can anyone help?

The problem is that winGRASS does not support X or PNG monitors.
The solution is the new Python based user interface.
I am not sure if there is a d.vect.thematic equivalent already (we are
preparing 6.4.0 these days) which work on Windows since I am no
Windows user.
I hope you get the answer from another group member.

Markus

GRASS does support PNG monitors in winGRASS (or the TclTk canvas
wouldn't work). There was a bug that caused problems with winGRASS and
thematic mapping last Spring. I don't remember what it was, but
thought it was fixed. What is the compile date of your version of
GRASS 6.3?

Michael
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
View this message in context: http://n2.nabble.com/Re%3A-Display-thematic-vector-map---WinGRASS-6.3- (Vista)-tp2106336p2106615.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Michael Barton wrote:

> The problem is that winGRASS does not support X or PNG monitors.

GRASS does support PNG monitors in winGRASS (or the TclTk canvas
wouldn't work).

WinGRASS supports direct rendering through the PNG and other drivers.
It doesn't support any form of monitor, including PNG. You can't use
d.mon, d.save, d.frame, or d.font.

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

Thanks for the correction. WinGRASS supports PNG output, not a monitor. d.vect.thematic was rewritten to use direct rendering through PNG, so it should work on Windows.

Michael
______________________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 6, 2009, at 6:05 AM, Glynn Clements wrote:

Michael Barton wrote:

The problem is that winGRASS does not support X or PNG monitors.

GRASS does support PNG monitors in winGRASS (or the TclTk canvas
wouldn't work).

WinGRASS supports direct rendering through the PNG and other drivers.
It doesn't support any form of monitor, including PNG. You can't use
d.mon, d.save, d.frame, or d.font.

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

On 06/01/09 17:51, Michael Barton wrote:

Thanks for the correction. WinGRASS supports PNG output, not a monitor. d.vect.thematic was rewritten to use direct rendering through PNG, so it should work on Windows.

This was done in 6.4, so it is not available in winGRASS, yet, which is based on 6.3. Just replacing the script doesn't work, either as it use the fs= parameter of v.db.connect which wasn't introduced until 6.4.

So, another strident call for the a 6.4 winGRASS.

Moritz

Ken,
You are not alone. I tried the thematic vector example on page 171 of
Neteler & Mitasova and also encountered the "You must open a display
monitor" message. I'm running 6.3.0-4 on Vista.
Matt

On Tue, Jan 6, 2009 at 12:51 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 06/01/09 17:51, Michael Barton wrote:

Thanks for the correction. WinGRASS supports PNG output, not a monitor.
d.vect.thematic was rewritten to use direct rendering through PNG, so it
should work on Windows.

This was done in 6.4, so it is not available in winGRASS, yet, which is
based on 6.3. Just replacing the script doesn't work, either as it use the
fs= parameter of v.db.connect which wasn't introduced until 6.4.

So, another strident call for the a 6.4 winGRASS.

Moritz
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

I'm pretty sure that this is a Vista issue, though one that has been solved in 6.4.

Michael

On Jan 14, 2009, at 7:33 PM, Matt wrote:

Ken,
You are not alone. I tried the thematic vector example on page 171 of
Neteler & Mitasova and also encountered the "You must open a display
monitor" message. I'm running 6.3.0-4 on Vista.
Matt

On Tue, Jan 6, 2009 at 12:51 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 06/01/09 17:51, Michael Barton wrote:

Thanks for the correction. WinGRASS supports PNG output, not a monitor.
d.vect.thematic was rewritten to use direct rendering through PNG, so it
should work on Windows.

This was done in 6.4, so it is not available in winGRASS, yet, which is
based on 6.3. Just replacing the script doesn't work, either as it use the
fs= parameter of v.db.connect which wasn't introduced until 6.4.

So, another strident call for the a 6.4 winGRASS.

Moritz
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On 15/01/09 05:22, Michael Barton wrote:

I'm pretty sure that this is a Vista issue, though one that has been solved in 6.4.

And as the OP is using 6.3, he doesn't have access to that solution, yet. So, we'll have to wait for the version of WinGRASS to decide whether there might be additional issues in Vista.

Moritz

Michael

On Jan 14, 2009, at 7:33 PM, Matt wrote:

Ken,
You are not alone. I tried the thematic vector example on page 171 of
Neteler & Mitasova and also encountered the "You must open a display
monitor" message. I'm running 6.3.0-4 on Vista.
Matt

On Tue, Jan 6, 2009 at 12:51 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 06/01/09 17:51, Michael Barton wrote:

Thanks for the correction. WinGRASS supports PNG output, not a monitor.
d.vect.thematic was rewritten to use direct rendering through PNG, so it
should work on Windows.

This was done in 6.4, so it is not available in winGRASS, yet, which is
based on 6.3. Just replacing the script doesn't work, either as it use the
fs= parameter of v.db.connect which wasn't introduced until 6.4.

So, another strident call for the a 6.4 winGRASS.

Moritz
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Probably the d.vector.thematic script can be copied from 6.4 and run in 6.3 with little or no modification.

Michael
______________________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 15, 2009, at 3:27 AM, Moritz Lennert wrote:

On 15/01/09 05:22, Michael Barton wrote:

I'm pretty sure that this is a Vista issue, though one that has been solved in 6.4.

And as the OP is using 6.3, he doesn't have access to that solution, yet. So, we'll have to wait for the version of WinGRASS to decide whether there might be additional issues in Vista.

Moritz

Michael
On Jan 14, 2009, at 7:33 PM, Matt wrote:

Ken,
You are not alone. I tried the thematic vector example on page 171 of
Neteler & Mitasova and also encountered the "You must open a display
monitor" message. I'm running 6.3.0-4 on Vista.
Matt

On Tue, Jan 6, 2009 at 12:51 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 06/01/09 17:51, Michael Barton wrote:

Thanks for the correction. WinGRASS supports PNG output, not a monitor.
d.vect.thematic was rewritten to use direct rendering through PNG, so it
should work on Windows.

This was done in 6.4, so it is not available in winGRASS, yet, which is
based on 6.3. Just replacing the script doesn't work, either as it use the
fs= parameter of v.db.connect which wasn't introduced until 6.4.

So, another strident call for the a 6.4 winGRASS.

Moritz
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On 15/01/09 17:46, Michael Barton wrote:

Probably the d.vector.thematic script can be copied from 6.4 and run in 6.3 with little or no modification.

As mentioned in the last mail below, you cannot copy it without modifications, as v.db.connect's fs= parameter was introduced in 6.4, and I'm not sure that's the only change.

I think the easiest would probably be to copy the lines setting the relevant environment variables from 6.4 to 6.3 to replace the d.mon call.

Moritz

Michael
______________________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 15, 2009, at 3:27 AM, Moritz Lennert wrote:

On 15/01/09 05:22, Michael Barton wrote:

I'm pretty sure that this is a Vista issue, though one that has been solved in 6.4.

And as the OP is using 6.3, he doesn't have access to that solution, yet. So, we'll have to wait for the version of WinGRASS to decide whether there might be additional issues in Vista.

Moritz

Michael
On Jan 14, 2009, at 7:33 PM, Matt wrote:

Ken,
You are not alone. I tried the thematic vector example on page 171 of
Neteler & Mitasova and also encountered the "You must open a display
monitor" message. I'm running 6.3.0-4 on Vista.
Matt

On Tue, Jan 6, 2009 at 12:51 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 06/01/09 17:51, Michael Barton wrote:

Thanks for the correction. WinGRASS supports PNG output, not a monitor.
d.vect.thematic was rewritten to use direct rendering through PNG, so it
should work on Windows.

This was done in 6.4, so it is not available in winGRASS, yet, which is
based on 6.3. Just replacing the script doesn't work, either as it use the
fs= parameter of v.db.connect which wasn't introduced until 6.4.

So, another strident call for the a 6.4 winGRASS.

Moritz
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user