[mapserver-users] rotation of vector symbol
Alberto Poggi
albpoggi at gmail.com
Wed Sep 17 06:08:37 PDT 2008
My problem is that my files are derived from dwg files Autodesk map.
the export shape files showing the rotation following the rules of
autocad, namely east, north, west and south.
This type of rotation is used by all the owner cad and gis software.
So it is a "standard" set many years ago that still is valid and not
changeable and, in my opinion, the proper functioning of MapServer in
the rotation of the symbols can not be separated from this rule.
However you do notice that I wrote in my other messages that the
problem in MapServer is exclusively in the representation of the
symbols while the label following the rotation instead of autocad.
This makes me think that is a mistake in the programming of MapServer.
However, I agree with you, everything would be much easier if the
rotation follow clockwise from the north.
2008/9/17 Gerry Creager <gerry.creager at tamu.edu>:
> Alberto,
>
> I'm not sure if this comment is a "bug" report or documentation of
> performance.
>
> A clockwise rotation isn't wrong, if it's understood and documented. From my
> perspective (wind/weather) an anti-clock rotation, which you're presenting
> as "right" is counterintuitive. Although I would prefer to see the rotation
> origin start at 'north' it does not pose a serious problem, as I know what
> the rule is, and it is invariant.
>
> gerry
>
> Alberto Poggi wrote:
>>
>> Hi.
>> Let me tell you about an issue of rotation of the vector symbols. I
>> found that in mapserver the rotation of these symbols does not follow
>> the classic rules that provide for the starting rotation in sequence
>> from east to the north, west and south. I published my work with
>> PMAPPER and MAPSERVER and I noticed that the rotation is done on the
>> other hand (east, south, west and north), and only on symbols of a
>> vector. This problem on the labelling does not exist and the rotation
>> is correct.
>> The layer referenced for symbol is a postgis table that contains a
>> field "rotazione" used by MapServer for the rotation of symbols. The
>> display of symbols is right but the rotation is done wrong.
>> This is the definition of my symbol:
>> SYMBOL
>> NAME "valvola"
>> TYPE vector
>> POINTS
>> 0 0
>> 1.5 1
>> 1.5 0
>> 0 1
>> 0 0
>> END
>> FILLED TRUE
>> END
>> and this is the notation in the mapfile:
>> LAYER
>> NAME "Valvole"
>> TYPE POINT
>> CONNECTIONTYPE postgis
>> CONNECTION "user=****** password=***** dbname=ACQUA host=localhost"
>> DATA "the_geom FROM valvole"
>> STATUS DEFAULT
>> MAXSCALE 5001
>> TOLERANCE 10
>> TOLERANCEUNITS pixels
>> PROJECTION
>> "init=epsg:32632"
>> END
>>
>> METADATA
>> "DESCRIPTION" "Valvole"
>> "RESULT_FIELDS" "comune,localita"
>> "RESULT_HEADERS" "Comune,Località"
>> "LAYER_ENCODING" "UTF-8"
>> "ows_title" "Dati valvole"
>> END # Metadata
>>
>> CLASS
>> NAME "Valvole"
>>
>> STYLE
>> SYMBOL 'valvola'
>> COLOR 0 255 255
>> OUTLINECOLOR 0 0 0
>> ANGLE [rotazione]
>> SIZE 8
>> END
>> END
>> TEMPLATE void
>> END
>>
>> It's me that something wrong or is a known problem? Thank you.
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
> Gerry Creager -- gerry.creager at tamu.edu
> Texas Mesonet -- AATLT, Texas A&M University
> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
> Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
>
More information about the MapServer-users
mailing list