[GRASS-dev] gis.m: not drawing centroids by default

Moritz Lennert mlennert at club.worldonline.be
Thu Feb 8 11:25:07 EST 2007


On 08/02/07 11:06, Hamish wrote:
> Moritz Lennert wrote:
>>> - is there a way in gis.m to paint the centroids differently than
>>> points? (keep them as "X"s)
>> just chose whatever symbol you like
>>
>>> failing that,
>>> - is there a way in gis.m to disable centroid drawing by default?
>> What is wrong with just disabling the 'centroid' button ?
> 
> 
> .. it should plot nicely by default ..

--- vector.tcl  2007-01-29 12:17:21.000000000 +0100
+++ vectornew.tcl       2007-02-08 17:21:17.000000000 +0100
@@ -138,7 +138,7 @@
      set opt($count,1,type_point) 1
      set opt($count,1,type_line) 1
      set opt($count,1,type_boundary) 1
-    set opt($count,1,type_centroid) 1
+    set opt($count,1,type_centroid) 0
      set opt($count,1,type_area) 1
      set opt($count,1,type_face) 0

in gui/tcltk/gis.m/vector.tcl is all it needs. Is more a question of 
finding out what people prefer.

Personally, I actually agree with Hamish that this might be the better 
default.

Moritz




More information about the grass-dev mailing list