First, Thanks for answer.

I found another way to do this that is not explain in the documentation.

We can set the labelangleitem with mapscript to : $layer->set("labelangleitem","(angle*-1)");
This works for me. So maybe it can be part of the documentation ?

Does the subquery method is still using the indexes of the table (I don't think so) ?

Thanks
Steff

thomas bonfort wrote:

you can use a custom query on your database

DATA "the_geom from
        (SELECT gid, nom, the_geom, (-angle) AS inv_angle FROM troncon_route)
        as foo using unique gid"

and then use
ANGLE [inv_angle] in your label block

tb

On 9/13/07, Stéphane RIFF <[EMAIL PROTECTED]> wrote:
Hello,

I want to invert the sign of the field I want to use in
layer->labelangleitem.
I don't want to it in the database because the information are sent by gps.

I want to know if it's possible do it on the fly with mapscript and how
(expression in the labelangleitem property ???) ?

Thanks
Steff


Reply via email to