[leg_class_html opt_flag=14] - example ?
karpi
karpi.lists at EMAIL.CZ
Thu Oct 5 13:21:26 PDT 2006
04/10/06 11:17, listario at GMAIL.COM napsal(a):
Hello Jorge,
Verry thanks for your reply; Ive experimented a little with "opt_flag",
but obtained no expected results :(
That is terrible thing that "opt_flag"
Description:
Control the layer display process. Add the values below to acquire the desired options (default is 15):
1: If set, show layer even if out of scale (default: hide layers out of scale).
2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF).
4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY)
8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION)
my conclusions:
settings: 0 1 2 4 8 14 15
1 outofscale + + + + + + +
2 off - - + - - + +
4 query ? ? ? ? ? ? ?
8 annotation ? ? ? ? ? ? ?
Ive found this mail:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0210/msg00037.html
here is told (as i understood my english is considerably retarded) that this behavior depends on:
group names
layer names and scales
class names and scales
the option code in legend templates...
-- which is horrible :(
mail is written in 2002. my compilation is:
alnagon ~ % /var/www/localhost/cgi-bin/mapserv -v
MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=TIFF
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Is there some example on the internet where is hiding of invisible
classes in html legend sucessfully used ?
> Hello Karpi
>
> Quoting the documentation about HTML Legends (
> http://mapserver.gis.umn.edu/docs/howto/html_legend/#class-block):
>
> "opt_flag=14 means do not show classes in the legend that are out of
> scale."
>
> Hope this helps
>
> Best regards,
> Jorge
>
>
> 2006/10/3, karpi <karpi.lists at email.cz>:
> >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%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=330491.333543+5529453.205715+456794.204419+5632791.918249&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=229.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%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=441771.353638+5581229.641642+457559.212498+5594146.980709&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=28.705198&vyhledat=&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
> >
--
karpi from
http://gismaster.liberix.cz
More information about the MapServer-users
mailing list