[Mapserver-users] Symbols in mapserver

Till Adams adams at terrestris.de
Tue Jan 13 12:20:56 EST 2004


Dear Ballini,

it is not possible to rotate symbols in mapserver, but it is possible to 
do this with labels. So you need a labelitem, which is the letter from 
your Ttf to display the symbol and a "labelangleitem" field with the 
angle of the rotation as value.

Looks like this:
LAYER
   NAME '...'
   ...
   CLASSITEM 'anitem'
   LABELITEM 'label'
   LABELANGLEITEM 'angle'
    CLASS
     NAME '...'
     EXPRESSION /./
     LABEL
      TYPE TRUETYPE
      FONT "aFont"
      SIZE 18
      COLOR 255 0 0
     END
    END  # CLASS
END # END LAYERFILE

Cheers,

Till

Ballini Yvain schrieb:
> Hi List,
> 
> I would like to know if someone has already used some tab file or
> shapefile in a mapserver application containing some oriented symbol
> (like a directional arrow, for example). The problem isnt' dealing with
> the case of label orientating because the tab file (or the shapefile,
> without OGR support) which is used has a "Point" geometry and not a
> "Line String" geometry.
> Under there is an extract of my tab file whose I get the features info
> with ogrinfo ("ogrinfo small_arrow.tab small_arrow"):
>  
> Layer name: small_arrow
> Geometry: Point
> Feature Count: 267349
> Extent: (6.682870, 36.681040) - (18.495850, 46.895265) Layer SRS WKT:
> GEOGCS["unnamed",
>     DATUM["WGS_1984",
>         SPHEROID["WGS 84",6378137,298.257223563],
>         TOWGS84[0,0,0,0,0,0,0]],
>     PRIMEM["Greenwich",0],
>     UNIT["degree",0.0174532925199433]]
> LABEL: String (70.0)
> OGRFeature(small_arrow):1
>   LABEL (String) =
>   Style = SYMBOL(a:110,c:#4144ae,s:13pt,id:"mapinfo-sym-111.ogr-sym-1")
>   POINT (8.85458500 45.96532000)
> 
> OGRFeature(small_arrow):2
>   LABEL (String) =
>   Style = SYMBOL(a:322,c:#4144ae,s:13pt,id:"mapinfo-sym-111.ogr-sym-1")
>   POINT (8.85363000 45.96459000)
> ...
> 
> In fact, I would like to know if there is a way to use correctly this
> tab file in mapserver or if I must use other data with my present
> version of mapserver 4.0.
> Any suggestion?
> Thanks ! :)
> Yvain.
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 


-- 

NEU +++ NEU +++ NEU +++ NEU

    AveiN! ist Open Source
Lizensiert unter der GNU GPL

-----

Dipl. Geogr. Till Adams
terrestris, Paulsen&Adams GbR
Siemensstr. 8 * 53121 Bonn
Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
info at terrestris.de * www.terrestris.de





More information about the mapserver-users mailing list