[mapserver-users] symbol rotation follow map rotation ?

Oliver Christen oliver.christen at camptocamp.com
Fri Jun 27 00:27:50 PDT 2014


dear list

Observed using mapserver 6.0.1, I have noticed that symbol rotation 
doesn't seem to follow map rotation, ie. the symbols keep the same 
absolute angle whatever the map angle is.
I have the feeling this is a current limitation of Mapserver, as it 
doesn't know if the symbol angle is an absolute value (independent of 
the map angle) or relative (map angle should be added to symbol angle).

example here:

no map rotation (signs symbols with angle aligning them with the streets):
http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781

with map rotation (signs symbols have kept their initial angle and are 
not aligned anymore):
http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&map_angle=59.99999999999999&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&angle=59.99999999999999&SRS=EPSG%3A21781 


could someone confirm or infirm?

In my opinion I would prefer a relative angle calculation by default, 
but that's just me :)

thanks for reading
kind regards
Oliver

-- 
Camptocamp SA
Oliver Christen
PSE A, EPFL
CH-1015 Lausanne

www.camptocamp.com

+41 21 619 10 23 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)




More information about the MapServer-users mailing list