Message: 9
Date: Thu, 4 Oct 2007 02:45:05 -0700 (PDT)
From: Hamish <hamish_nospam@yahoo.com>
Subject: Re: [GRASS-user] PS Labels display in wrong place
To: Richard Chirgwin <rchirgwin@ozemail.com.au>
Cc: grassuser@grass.itc.it
Message-ID: <854518.16030.qm@web52709.mail.re2.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Richard Chirgwin wrote:
> I have created a PS labels file using v.label
> > The outputs look like this:
> east: 150.934600
> north: -33.659600
> xoffset: 0
> yoffset: 0
> ref: center
> font: helvetica
> color: black
> size: 100
> width: 1
> hcolor: none
> hwidth: 0
> background: none
> border: none
> opaque: yes
> text: ANNANGROVE
> > The problem is that all of the labels display in the same place; any > suggestions?
what version of GRASS? If 6.3-cvs, how old?
Are you displaying it with the gis.m GIS manager?
Does it display properly with d.labels in an xmon?
Are all the labels within the same degree x degree? (the bits after the decimal
point might be getting lost)
Hamish
Hamish,
1) Version: both 6.2 and 6.3-cvs (using the version currently offered at William K's site) show the same symptoms.
2) Yes, I am displaying it in gis.m.
3) No, in d.labels the file does not display at all.
4) Yes - the labels cover Sydney city. The region is about 1.5 degrees in both X and Y.
Let's assume that I'm losing the decimal points: is there a fix?
> Richard Chirgwin wrote:
>> > I have created a PS labels file using v.label
..
>> > The problem is that all of the labels display in the same place; any
>> > suggestions?
..
2) Yes, I am displaying it in gis.m.
3) No, in d.labels the file does not display at all.
you need to do something like:
d.mon x0
g.region vect=yourmap
d.vect yourmap
d.labels labelfile
the xmons won't automatically zoom to your data like the GIS.m display manager
will.
4) Yes - the labels cover Sydney city. The region is about 1.5 degrees
in both X and Y.
and it's a lat/lon region, with the map in the same coordinate system, right?
g.region -p or g.proj -p
Let's assume that I'm losing the decimal points: is there a fix?
sure, if it is that it is probably pretty simple to fix. but it takes someone
who knows (or is willing to learn) Tcl/Tk to find it.
Hamish
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC
I tracked this down and fixed it I think. It's now in the CVS.
I switched the label parsing algorithm from regexp to use a list structure.
So now it deals better with coordinate values that have numbers to the right
of the decimal place.
The new parsing also revealed some hidden bugs in background and outline
color settings that I also fixed.
Michael
On 10/5/07 6:25 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:
Richard Chirgwin wrote:
I have created a PS labels file using v.label
..
The problem is that all of the labels display in the same place; any
suggestions?
..
2) Yes, I am displaying it in gis.m.
3) No, in d.labels the file does not display at all.
you need to do something like:
d.mon x0
g.region vect=yourmap
d.vect yourmap
d.labels labelfile
the xmons won't automatically zoom to your data like the GIS.m display manager
will.
4) Yes - the labels cover Sydney city. The region is about 1.5 degrees
in both X and Y.
and it's a lat/lon region, with the map in the same coordinate system, right?
g.region -p or g.proj -p
Let's assume that I'm losing the decimal points: is there a fix?
sure, if it is that it is probably pretty simple to fix. but it takes someone
who knows (or is willing to learn) Tcl/Tk to find it.
Hamish
______________________________________________________________________________
______
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University