hi all problem with the mapserver pages misbehaviour seems to be, that it chooses autmatically the language settings of the browser. i.e. I have in fireforx german as default. I end up with a complete mess of mixed up languages (half english, half german). It makes absolutely no sense to have that behaviour if not all pages are properly and completely translated.
I see quite a fes such sites lately and it is only one thing: irritating at the max. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:[EMAIL PROTECTED] ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: karpi <[EMAIL PROTECTED]> To: [email protected] Date: Tue, 3 Oct 2006 11:12:51 +0200 Subject: [UMN_MAPSERVER-USERS] html legend classes; data encoding; (noted python mapsript + > django templating) > Reply-To: > > hello, Im spent some time with my first mapserver cgi web > application. > > here is its early version: > http://gismaster.liberix.cz/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalh > ost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=330491.333543+5529453.205715 > +456794.204419+5632791.918249&zoomsize=2&layer=vodn%C3%AD_plochy&laye > r=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=2 > 29.641583&vyhledat=&mode=browse&mapsize=550+450&img.x=80&img.y=362 > > My biggist question at this point are: > 1) can i hide legend items, of that classes, which are not rendered > (maxscale of class) as is done in common bitmap legend ?? > > my legend template is short: > [leg_layer_html order_metadata=legend_order opt_flag=15] > <input type=checkbox name=layer value=[leg_layer_name] [if > name=layer_status oper=eq value=1] CHECKED [/if] [if > name=layer_status oper=eq value=2] CHECKED DISABLED [/if] > > [leg_layer_name] <br> > [/leg_layer_html] > > [leg_class_html opt_flag=0] > <img src="[leg_icon width=30 > height=20]" width=30 height=20> [leg_class_name] <br> > [/leg_class_html] > > > 2) my data are saved in different encoding (iso-8859-2) then mapfile, > templates and all web is (utf8) This discrepancy caues errors as > this: > http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdoc > s%2Fnewmap%2Fczrep.map&imgext=441771.353638+5581229.641642+457559.212 > 498+5594146.980709&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%A > D_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=28.705198&vy > hledat=&mode=query&mapsize=550+450&img.x=282&img.y=231 > (Jmìno obce: Dobøí¹) > > Can i force mapserver to respect different encoding in the data > files? > > Thanks for any kind of your replys > > > > > ( Ive also try python mapscript + django templating solution, but > when > i approached creating legends through > layer.getClass(j).drawLegendIcon > rendering and serving of maps begun extremly cpu consuming and slow > :( > > > -- > karpi from > http://gismaster.liberix.cz
