Paul,
I think the syntax for attribute binding is something like
ANGLE [orientation] (attribute value in brackets). Could you try
changing you map file and give it a try.
Best Regards,
Paul L wrote:
Dear List
I'm not the first one to ask this question, but I am unable to use the older
list-posts as in the meantime (mapserver 5.0) the ANGLEITEM seems to be
deprecated, if I understand this document
http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19
correctly.
I am reading points from a postgis-table and would like Mapserver to rotate
the symbols of each point according to the rotation-value stored as integer
in the same table. It works fine as long as I hardcode the angle like
"ANGLE=45". As soon as I try setting ANGLE="orientation" I get the
errormessage:
getSymbol(): Symbol definition error. Parsing error near
(orientierung):(line 126)
Can you help me find my errors?
Thank you very much
Paul
P.S. I can actually read the angle and display it as a label, so it
shouldn't be a problem of reading from the database.
LAYER
NAME points
TYPE POINT
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=test_postgis user=postgres password=postgres
host=localhost port=5432"
DATA "geometry from (select id, name, orientation, geometry from points)
as foo USING UNIQUE id USING SRID=-1"
STATUS DEFAULT
TRANSPARENCY 65
CLASS
STYLE
SYMBOL "U"
SIZE 15
COLOR 0 0 150
ANTIALIAS TRUE
ANGLE 45
#ANGLE "orientation" #throws error: getSymbol(): Symbol definition error
(..)
END
END
END
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users