[GRASS5] Why does v.label require an x display?
Michael Barton
michael.barton at asu.edu
Sun Apr 16 00:55:34 EDT 2006
Thanks mucho.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
> From: Hamish <hamish_nospam at yahoo.com>
> Date: Sun, 16 Apr 2006 13:00:41 +1200
> To: Michael Barton <michael.barton at asu.edu>
> Cc: <grass5 at grass.itc.it>
> Subject: Re: [GRASS5] Why does v.label require an x display?
>
>> I¹m working with creating a TclTk version of d.label to make postscript text
>> labels (rather than raster text labels) available in the GIS Manager.
>>
>> I just tried v.label to make a new set of labels and found that it won't run
>> unless an x display is open. No need to have anything showing in the x
>> display, it just has to be open.
>>
>> Is this really necessary? If not, can it be changed?
>
>
> my fault, I'll see if I can change it.
>
>
> if(FontSize->answer) {
> fontsize = atoi(FontSize->answer);
>
> /* figure out space param dynamically from current dispay */
> if(Along_flag->answer) {
> if (R_open_driver() != 0) /* connect to the driver */
> G_fatal_error(_("No graphics device selected"));
>
> /* Read in the map region associated with graphics window */
> D_setup(0);
> space = fontsize / D_get_u_to_d_xconv(); /* in earth units */
>
> R_close_driver();
> }
> }
> else
> fontsize = 0;
>
>
>
> Hamish
More information about the grass-dev
mailing list