[mapserver-users] rotation of vector symbol
Gerry Creager
gerry.creager at tamu.edu
Wed Sep 17 05:45:57 PDT 2008
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