angleitem for point symbols

Steve Lime steve.lime at DNR.STATE.MN.US
Tue Sep 20 12:20:39 PDT 2005


Yes, you are correct on rotating point symbols. Support for ANGLEITEM isn't what is
important, it's the support for ANGLEs. At this moment only circle symbols (for drawing
pies) and the special HATCH symbol. I hope this changes soon- like before 4.8 beta...

Steve

>>> Brock Anderson <banders at REFRACTIONS.NET> 09/19/05 12:12 PM >>>
I am also interested in rotating point symbols, especially vector 
symbols.  Is there currently an effort to add support for point symbol 
rotation?  I see this bug:

    http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=533 

hasn't been updated in over a year.  As I understand it, it's currently 
impossible to rotate point symbols via both STYLE -> ANGLE , and STYLE 
-> ANGLEITEM.  Is that correct?

Brock

Jeff McKenna wrote:

> Sorry Francesco, I just tested again and it doesn't work for me 
> either.  I remember adding it to the documentation, for this bug 
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=815.  I just now got 
> ANGLEITEM to work with a hatched symbol again, but for a regular point 
> symbol it does not work.  I should update the doc to say that it is 
> only for hatched symbols...maybe someone else has info on this?
>
>
> jeff
>
>
>
>
>
> Francesco Sozzi wrote:
>
>> Hi Jeff,
>>
>> I've also made a test with this definition:
>>
>> LAYER
>> NAME "Segnali"
>> TYPE POINT
>>
>> CONNECTIONTYPE oraclespatial
>> CONNECTION "ti_segnali/avs at franz"
>> DATA "GEOM FROM (SELECT a.fid, g.orientation, a.geom FROM ic_segnali 
>> a, ic_view_segnali_geo  g WHERE a.gid=g.gid) USING UNIQUE fid NONE"
>> STATUS DEFAULT
>>
>> CLASS
>>  NAME 'segnale'
>>  STYLE
>>   SYMBOL 'triangle'
>>   ANGLEITEM "orientation"
>>   SIZE 10
>>   COLOR 255 0 0
>>  END
>>  TEMPLATE "templates/default.html"
>> END
>> END
>>
>> In this case I have not a parse error, but all triangles are not 
>> rotated. It seems that this attribute is ignored.
>>
>> Regards
>>
>> Francesco
>>
>> ----- Original Message ----- From: "Jeff McKenna" 
>> <jmckenna at dmsolutions.ca>
>> To: "Francesco Sozzi" <fsozzi at INTERCAD.CH>
>> Cc: <MAPSERVER-USERS at LISTS.UMN.EDU>
>> Sent: Wednesday, September 14, 2005 3:09 PM
>> Subject: Re: [UMN_MAPSERVER-USERS] angleitem for point symbols
>>
>>
>>> yes, but ANGLEITEM should be specified in a STYLE object 
>>> (http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#style).
>>>
>>> jeff
>>>
>>>
>>>
>>>
>>> Francesco Sozzi wrote:
>>>
>>>> Hi All,
>>>>  I've found in http://dl.maptools.org/dl/mapserver_Changelog.txt a 
>>>> reference to ANGLEITEM for points (see 2005-08-05 14:45  sdlime). 
>>>> This is a good new because a rotation management for point symbols 
>>>> is strongly recommended in a map renderer.
>>>>  I've just compiled mapserver 4.6.1 and I tried to create a layer 
>>>> with this attribute, but I get a parse error.
>>>>  Anybody knows if this attribute i supported?
>>>>  This is my layer definition:
>>>>  LAYER
>>>>  NAME "Segnali"
>>>>  TYPE POINT
>>>>  CONNECTIONTYPE oraclespatial
>>>>  CONNECTION "ti_segnali/avs at franz <mailto:ti_segnali/avs at franz>"
>>>>  DATA "GEOM FROM (SELECT a.fid, g.orientation, a.geom FROM 
>>>> ic_segnali a, ic_segnali_geo g WHERE a.fid=g.fid) USING UNIQUE fid 
>>>> NONE"
>>>>  STATUS DEFAULT
>>>>  ANGLEITEM "orientation"
>>>>  CLASS
>>>>   NAME 'segnale'
>>>>   SYMBOL 'triangle'
>>>>   COLOR 0 255 0
>>>>   OUTLINECOLOR 183 183 183
>>>>   TEMPLATE "templates/default.html"
>>>>  END
>>>> END
>>>>  Best regards
>>>>  Francesco
>>>
>>>
>>>
>



More information about the MapServer-users mailing list