[GRASS-user] ps.map rotatecolumn argument

Hi list,
Has anyone experienced the ability of ps.map's vpoints instruction to
choose from a rotatecolumn to orient symbols on a map ?

Here's the concerned part of my ps.map instruction file :

        vpoints arrow
          layer 2
          color black
        
        eps /usr/local/grass-6.4.2svn/etc/paint/patterns/cross_normal.eps
          rotatecolumn angle
          where r=1
          size 1
        end

In my case, map arrow contains about 50 points but ps.map only displays
a few ones at correct angle. The database field is integer, angles are
specified ccw from east.
The display of these rotated symbols is correct in wxGUI window.

Digging in the postscript output one can see rotation is not aways
considered where it should, e.g.

BeginEPSF
640.00000 496.30000 translate
0.00000 rotate # here it should be sth like 25.00000 rotate
1.00000 1.00000 scale
%BeginDocument: SITEEPSF4
SITEEPSF4
%EndDocument
EndEPSF

Any idea of what I do wrong ?

Vincent.

Vincent wrote:

Has anyone experienced the ability of ps.map's
vpoints instruction to choose from a rotatecolumn
to orient symbols on a map ?

yes, I add that code.

In my case, map arrow contains about 50 points but
ps.map only displays a few ones at correct angle.
The database field is integer, angles are specified
ccw from east.

can you reproduce it using one of the standard demo
datasets?

what version of grass? what platform?

angle in degrees?

Hamish

Hello Hamish,
thank you for your reply, I knew you were the author of this
feature ;-), read this in a former post.

(I had to cope the whole day with ice in pipes, so sorry for the late
reaction...)

I run grass on a 64bit linux system (debian), freshly updated 6.4
version from svn. Angles are expressed in degrees counterclockwise from
East.

I tried to reproduce the problem on North Carolina dataset(1). But
unfortunately for me... It works !
Note : the default database settings in north carolina dataset link
vectors to dbf driver. In my case, vector maps are related to pg driver.
May it be the source of the problem ?

Another detail : the fieldname containing my rotation values is
'angle' ; could it cause a failure in your c script ?

Thank you in advance,
Vincent
________________
(1)
wrote a ps.map file with this argument:

        vpoints points_of_interest
          color black
        eps /usr/local/grass-6.4.2svn/etc/paint/patterns/cross_normal.eps
          rotatecolumn elev_m
          size 1
        end

symbols appear correctly rotated on the output.

Le samedi 04 février 2012 à 12:13 -0800, Hamish a écrit :

Vincent wrote:

> Has anyone experienced the ability of ps.map's
> vpoints instruction to choose from a rotatecolumn
> to orient symbols on a map ?

yes, I add that code.

> In my case, map arrow contains about 50 points but
> ps.map only displays a few ones at correct angle.
> The database field is integer, angles are specified
> ccw from east.

can you reproduce it using one of the standard demo
datasets?

what version of grass? what platform?

angle in degrees?

Hamish

No way to reproduce the problem.
I am wondering if there could be something wrong with cat values that
obviously can differ from one layer to another.
In my case, the point map used to draw rotated symbols was obtained via
v.to.points. I use layer 2 which contain a 'cat' key field that is
different from the 'cat' key field of layer 1.

Could ps.map confuse between these cat lists ?
(once again : symbols appear correctly rotated in my dataset when
displayed in wxGUI)

Sorry for bothering with it,

Vincent.

Le dimanche 05 février 2012 à 18:55 +0100, Vincent Bain a écrit :

Hello Hamish,
thank you for your reply, I knew you were the author of this
feature ;-), read this in a former post.

(I had to cope the whole day with ice in pipes, so sorry for the late
reaction...)

I run grass on a 64bit linux system (debian), freshly updated 6.4
version from svn. Angles are expressed in degrees counterclockwise from
East.

I tried to reproduce the problem on North Carolina dataset(1). But
unfortunately for me... It works !
Note : the default database settings in north carolina dataset link
vectors to dbf driver. In my case, vector maps are related to pg driver.
May it be the source of the problem ?

Another detail : the fieldname containing my rotation values is
'angle' ; could it cause a failure in your c script ?

Thank you in advance,
Vincent
________________
(1)
wrote a ps.map file with this argument:

        vpoints points_of_interest
          color black
        eps /usr/local/grass-6.4.2svn/etc/paint/patterns/cross_normal.eps
          rotatecolumn elev_m
          size 1
        end

symbols appear correctly rotated on the output.

Le samedi 04 février 2012 à 12:13 -0800, Hamish a écrit :
> Vincent wrote:
>
> > Has anyone experienced the ability of ps.map's
> > vpoints instruction to choose from a rotatecolumn
> > to orient symbols on a map ?
>
> yes, I add that code.
>
> > In my case, map arrow contains about 50 points but
> > ps.map only displays a few ones at correct angle.
> > The database field is integer, angles are specified
> > ccw from east.
>
> can you reproduce it using one of the standard demo
> datasets?
>
> what version of grass? what platform?
>
> angle in degrees?
>
>
> Hamish
>

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user