[GRASS-user] Having trouble getting integer labels

Dave Kent dkent at sasktel.net
Mon Jun 5 18:51:12 EDT 2006


Hi Paul

I have not been able to figure out how not to generate a label file  
with 6 significant figures.

You can however edit the Location/paint/labels/Label_File   text file  
with search and replace all  ".000000" to "" which removes the  
trailing zeros from the 'text:  540.0000000 entires'



dave

On Jun 5, 2006, at 4:13 PM, Paul Pick wrote:

> Hi all,
>
>  I have a bunch of (integer) point data I'm trying
> to contour. I've done v.in.ascii, v.surf.idw, and
> r.contour. The output vector (the contour shapes)
> has a 'level' attribute which is a double.
>
> $ v.info v500contour -c
> Displaying column type for database connection of layer 1:
> INTEGER|cat
> DOUBLE PRECISION|level
>
>  When I create labels for those contours (with v.label),
> I'm getting six zeroes after the decimal. I really need
> to display only integer labels, so how should I go
> about that?
>
>  I'm running GRASS 6.0.0 on debian sarge.
>
>  Many thanks,
>  - Paul
>
> -- 
> Paul Pick <paul.pick at ec.gc.ca>
> Informatics Services Unit Gagetown
> Chief Information Officer Branch, Environment Canada
> [CSN] 432 2082 [CIV] 506 422 2000 x 2082 [FAX] 506 422 1443
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser




More information about the grass-user mailing list