[GRASS-user] GIS Manager, d.vect, and missing labels

I've installed the MS-Windows version 6.3.0 on a Vista machine along
with the NC datafiles. Page 170 of Neteler and Mitasova gives the
example
d.vect -c census_wake2000 disp=shape,attr attrcol=FIPSSTCO siz=5 lcol=black.

It seems to me there are at least 3 ways to do this, and I can only
get one of them to work. Any suggestions on why approaches 2 and 3
below don't work (at least for me)?

1) If I click the "Add command layer" icon of GIS Manager and type the
example, it seems to execute properly.
2) If instead I click the "Add vector layer" icon of GIS Manager and
try to fill in/select the proper commands, I can't get the labels to
appear. Major settings are:
   Vector map: census_wake2000@PERMANENT
   Display: Shapes Points Lines Boundaries Areas
   Point symbols: baskic/circle Size: 5
   Draw lines: color=black width=1pixel
   Fill areas= Random colors
   Lable vectors checked, text color=black, text size=5
   Label part to align with vector point: left, Justification: center
   Layer for labels: 1 Attribute col for labels: FIPSSTCO
Clicking either the "Display active layers" icon or "Redraw all
layers" icon draws the colored map, BUT does not draw the labels.
Output in GIS.m is:
   d.vect map=census_wake2000@PERMANENT -c color=0:0:0 lcolor=0:0:0
fcolor=170:170:170 display=shape,attr type=point,line,boundary,area
icon=basic/circle size=5 layer=1 {att=FIPSSTCO} lsize=5 xref=left
yref=center llayer=1

Why do the labels not appear on the map?

Lastly
3) Typing the example into the bottom window of GIS.m and press ing
the run button, the color map appears in the Map Display 1 window, but
there are no labels,

What am I doing wrong?

Thanks,
Matt

On 14/01/09 02:51, Matt wrote:

I've installed the MS-Windows version 6.3.0 on a Vista machine along
with the NC datafiles. Page 170 of Neteler and Mitasova gives the
example
d.vect -c census_wake2000 disp=shape,attr attrcol=FIPSSTCO siz=5 lcol=black.

It seems to me there are at least 3 ways to do this, and I can only
get one of them to work. Any suggestions on why approaches 2 and 3
below don't work (at least for me)?

1) If I click the "Add command layer" icon of GIS Manager and type the
example, it seems to execute properly.
2) If instead I click the "Add vector layer" icon of GIS Manager and
try to fill in/select the proper commands, I can't get the labels to
appear. Major settings are:
   Vector map: census_wake2000@PERMANENT
   Display: Shapes Points Lines Boundaries Areas

[...]

Why do the labels not appear on the map?

You also have to display centroids as attributes (and thus labels) are linked to centroids.

Lastly
3) Typing the example into the bottom window of GIS.m and press ing
the run button, the color map appears in the Map Display 1 window, but
there are no labels,

I find it surprising that you can actually display the map that way. I don't think that should be possible.

Moritz

I've installed the MS-Windows version 6.3.0 on a Vista machine along
with the NC datafiles. Page 170 of Neteler and Mitasova gives the
example
d.vect -c census_wake2000 disp=shape,attr attrcol=FIPSSTCO siz=5 lcol=black.

It seems to me there are at least 3 ways to do this, and I can only
get one of them to work. Any suggestions on why approaches 2 and 3
below don't work (at least for me)?

1) If I click the "Add command layer" icon of GIS Manager and type the
example, it seems to execute properly.
2) If instead I click the "Add vector layer" icon of GIS Manager and
try to fill in/select the proper commands, I can't get the labels to
appear. Major settings are:
   Vector map: census_wake2000@PERMANENT
   Display: Shapes Points Lines Boundaries Areas
   Point symbols: baskic/circle Size: 5
   Draw lines: color=black width=1pixel
   Fill areas= Random colors
   Lable vectors checked, text color=black, text size=5
   Label part to align with vector point: left, Justification: center
   Layer for labels: 1 Attribute col for labels: FIPSSTCO
Clicking either the "Display active layers" icon or "Redraw all
layers" icon draws the colored map, BUT does not draw the labels.
Output in GIS.m is:
   d.vect map=census_wake2000@PERMANENT -c color=0:0:0 lcolor=0:0:0
fcolor=170:170:170 display=shape,attr type=point,line,boundary,area
icon=basic/circle size=5 layer=1 {att=FIPSSTCO} lsize=5 xref=left
yref=center llayer=1

Why do the labels not appear on the map?

Lastly
3) Typing the example into the bottom window of GIS.m and press ing
the run button, the color map appears in the Map Display 1 window, but
there are no labels,

What am I doing wrong?

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

Matt

I had the same problem but stumbled upon the centroid solution. Have you had
any problems creating thematic (graduated point, line or colour) layers and
having them draw in the map display? I am also using WinGRASS 6.3 on Vista
and have not been able to make this work properly. The layer simply does not
draw when applying the thematic map layer. Let me know if you have had any
problem with this issue.

Regards,

Kenneth

--
View this message in context: http://n2.nabble.com/GIS-Manager%2C-d.vect%2C-and-missing-labels-tp2154712p2160286.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Thanks - centroids did the trick.

I don't know what else I did to make me think approach 3 worked. You
of course are correct, it doesn't work. How do you know which
commands will work from the lower window of GIS.m, and which commands
will not work from that window?

On Wed, Jan 14, 2009 at 3:49 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 14/01/09 02:51, Matt wrote:

I've installed the MS-Windows version 6.3.0 on a Vista machine along
with the NC datafiles. Page 170 of Neteler and Mitasova gives the
example
d.vect -c census_wake2000 disp=shape,attr attrcol=FIPSSTCO siz=5
lcol=black.

It seems to me there are at least 3 ways to do this, and I can only
get one of them to work. Any suggestions on why approaches 2 and 3
below don't work (at least for me)?

1) If I click the "Add command layer" icon of GIS Manager and type the
example, it seems to execute properly.
2) If instead I click the "Add vector layer" icon of GIS Manager and
try to fill in/select the proper commands, I can't get the labels to
appear. Major settings are:
  Vector map: census_wake2000@PERMANENT
  Display: Shapes Points Lines Boundaries Areas

[...]

Why do the labels not appear on the map?

You also have to display centroids as attributes (and thus labels) are
linked to centroids.

Lastly
3) Typing the example into the bottom window of GIS.m and press ing
the run button, the color map appears in the Map Display 1 window, but
there are no labels,

I find it surprising that you can actually display the map that way. I don't
think that should be possible.

Moritz

Matt wrote:

>> 3) Typing the example into the bottom window of GIS.m and press ing
>> the run button, the color map appears in the Map Display 1 window, but
>> there are no labels,
>
> I find it surprising that you can actually display the map that way. I don't
> think that should be possible.

I don't know what else I did to make me think approach 3 worked. You
of course are correct, it doesn't work. How do you know which
commands will work from the lower window of GIS.m, and which commands
will not work from that window?

Display (d.*) commands will work insofar as they will generate an
image file, but they won't cause the resulting image to be displayed
in the GUI.

However, as you can't set environment variables from the command
window, you won't be able to control where the image file is created,
its format, size, etc.

If you want to view the output from a specific display command in the
GUI, create a command layer (the gear icon).

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