On Aug 8, 2008, at 8:33 AM, <[EMAIL PROTECTED]> wrote:
Date: Fri, 8 Aug 2008 17:13:28 +0200
From: "Martin Landa" <[EMAIL PROTECTED]>
Subject: Re: [GRASS-user] vector layer labelling doesn't work....
To: "G. Allegri" <[EMAIL PROTECTED]>
Cc: grassuser <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
2008/8/8 G. Allegri <[EMAIL PROTECTED]>:
Anyway I will change in my build :-)
gui/tcltk/gis.m/vector.tcl - Line 143:
set opt($count,1,type_centroid) 0 -> set opt($count,
1,type_centroid) 1
in wxGUI it takes default d.vect type options, so
"point,line,boundary,centroid,area,face". Not sure why TCL/TK differs
here.
The wxPython GUI uses the default, autogenerated GUI as a properties
dialog. There are definite maintenance advantages to doing this, which
is why we've done it. But it means that it comes up with whatever are
the defaults for the module command.
The TclTk GUI has a custom coded properties window for each d.*
command, meaning it does not have to use the command line defaults. In
TclTk, I turned displaying the centroids off by default because they
are really annoying and ugly in areas unless you have specific need to
see them (just like direction is turned off in lines an boundaries).
If it is needed, I can add code to turn on centroids when area
labeling is turned on in TclTk. But a better solution IMHO is to fix
d.vect so that it is not *necessary* to have centroids showing in
order to display labels for areas.
Michael
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user