[Mapserver-users] Using CGI mode without temp-images... theimages are still being created.
Eduardo Patto Kanegae
eduardo at linkgeo.com.br
Mon Jun 16 08:33:43 PDT 2003
Hi.
Thanks everybody.
You were right. After I set STATUS to OFF in all objects of the mapfile, the temp images stopped to appear.
Peri, there goes the Template-file and the MapFile:
=== TEMPLATE=====
<html>
<head>
<title>LinkGEO - ClickBrasil</title>
<link rel="stylesheet" type="text/css" href="[app_style1]">
<link rel="stylesheet" type="text/css" href="[app_style2]">
<link rel="stylesheet" type="text/css" href="[app_style3]">
<link rel="stylesheet" type="text/css" href="[app_style4]">
<link rel="stylesheet" type="text/css" href="[app_style5]">
<link rel="stylesheet" type="text/css" href="[app_style6]">
<link rel="stylesheet" type="text/css" href="[app_style7]">
<script language="javascript">
<!--
//WARNING - this function works on IE only
function maskNumber(pThis,pKeyCode,pAcceptDecimals,pAcceptNegatives)
/*use: onkeypress="return maskNumber(this,window.event.keyCode,false, false)"*/
{
if ((pKeyCode == 8 || pKeyCode == 13) || (pKeyCode>=48 && pKeyCode<=57) ){
/*TAB e ENTER ou n°s */
return true;
} else if (pKeyCode==43){
/* + */
if (pThis.value.indexOf("-")== 0 && pThis.value.length>1){
pThis.value = pThis.value.substr(1,pThis.value.length-1);
} else if (pThis.value.indexOf("-")== 0 && pThis.value.length==1){
pThis.value = "";
}
return false;
} else if ((pKeyCode==44 || pKeyCode==46) && (pAcceptDecimals==true)){
/* , ou . */
if (pThis.value.indexOf(".")<0){
pThis.value = pThis.value + ".";
}
return false;
} else if (pKeyCode==45 && pAcceptNegatives==true){
/* - */
if (pThis.value.indexOf("-")<0){
pThis.value = "-" + pThis.value;
}
return false;
} else {
return false;
}
}
-->
</script>
<script language="javascript">
<!--
function do_browse(){
document.frm_map.mode.value='browse';
}
function do_query(){
document.frm_map.mode.value='nquery';
window.status = 'Clique num ponto para informações';
}
function do_full(){
// resetar o retangulo envolvente
document.frm_map.mode.value='browse';
document.frm_map.zoomdir.value='0';
//document.frm_map.imgext.value="-73.991 -33.751 -32.378 5.272";
document.frm_map.imgext.selectedoption=1;
document.frm_map.submit();
}
function do_zoomin(){
document.frm_map.mode.value='browse';
document.frm_map.zoomdir.value='1';
window.status = 'Clique num ponto para aproximar';
}
function do_zoomout(){
document.frm_map.mode.value='browse';
document.frm_map.zoomdir.value='-1';
window.status = 'Clique num ponto para afastar';
}
function do_pan(){
document.frm_map.mode.value='browse';
document.frm_map.zoomdir.value='0';
window.status = 'Clique num ponto para trazê-lo ao centro';
}
function mapplet_apply(name, minx, miny, maxx, maxy, redraw) {
document.frm_map.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy;
document.frm_map.imgxy.value = minx + " " + miny;
if (redraw) {
if (document.frm_map.map_findmuni_class_expression.value=='') {
document.frm_map.layer[0].value='';
document.frm_map.procurar_por.value='';
}
document.frm_map.submit();
}
}
function mapplet_error(message) {
alert(message);
}
function on_submit(){
if(document.frm_map.select_imgext.value=='-73.991 -33.751 -32.378 5.272'){
document.frm_map.layer_br_muni.checked=false;
document.frm_map.layer_br_hidr.checked=false;
};
if (!document.frm_map.findmuni.checked){
document.frm_map.map_findmuni_class_expression.value='';
}
if (document.frm_map.findmuni.checked &&
document.frm_map.map_findmuni_class_expression.value==""){
alert("Digite o nome do município!");
document.frm_map.map_findmuni_class_expression.focus();
return false;
} else {
document.frm_map.procurar_por.value =
document.frm_map.map_findmuni_class_expression.value;
return true;
}
}
var leg_height = 0;
function flip_legend(){
if (document.frm_map.legend.style.visibility=='hidden'){
document.frm_map.bt_legenda.value='Ocultar';
document.frm_map.legend.style.visibility='visible';
document.frm_map.legend.height=leg_height;
} else {
document.frm_map.legend.style.visibility='hidden';
document.frm_map.bt_legenda.value='Exibir';
document.frm_map.legend.height="1px";
}
}
/*function mapplet_mouse_moved(a_string,x,y){
xval = Number([minx] + (x * (Math.abs([minx]) - Math.abs(([maxx]))) / [mapwidth]));
yval = Number([maxy] - (y * (Math.abs([maxy]) - Math.abs(([miny]))) / [mapheight]));
window.status = "X: " + xval + "/ Y: " + yval;
}*/
-->
</script>
</head>
<body leftmargin="1" topmargin="5" onload="javascript:leg_height=document.frm_map.legend.height;">
<form method="get" action="[program]" name="frm_map" onsubmit="javascript:return on_submit()">
<table border="1" cellpadding="0" cellspacing="0" align="center" class="sideboxtext">
<tr>
<td colspan="2" align="center" class="sideboxtitle">LinkGEO / ClickBrasil</td>
</tr>
<tr>
<input type="hidden" name="imgxy" value="299.5 187">
<input type="hidden" name="imgbox" value="-1 -1 -1 -1">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="map" value="[map]">
<!--<input type="hidden" name="savequery" value="true">-->
<input type="hidden" name="program" value="[program]">
<!--<input type="hidden" name="map_web_imagepath" value="{map_web_imagepath}">
<input type="hidden" name="map_web_imageurl" value="{map_web_imageurl}">-->
<input type="hidden" name="mainsite" value="[mainsite]">
<input type="hidden" name="app_url" value="[app_url]">
<input type="hidden" name="app_style1" value="[app_style1]">
<input type="hidden" name="app_style2" value="[app_style2]">
<input type="hidden" name="app_style3" value="[app_style3]">
<input type="hidden" name="app_style4" value="[app_style4]">
<input type="hidden" name="app_style5" value="[app_style5]">
<input type="hidden" name="app_style6" value="[app_style6]">
<input type="hidden" name="app_style7" value="[app_style7]">
<input type="hidden" name="mode" value="[mode]">
<input type="hidden" name="zoomdir" value="[zoomdir]">
<td colspan="2" >
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="row0" width="102px"><a href="[mainsite]">LinkGEO</a></td>
<td align="left" valign="top" class="newspostedby">
<table border="0" cellpadding="0" cellspacing="0" align="left">
<tr>
<td class="newspostedby"> </td>
<td class="newspostedby">
<a href="javascript:do_browse();"><img name="BTmode_browse"
src="[app_url]img/bt_browse.gif" alt="Navegar no mapa" border="0"></a>
</td>
<td class="newspostedby">
<a href="javascript:do_query();"><img name="BTmode_query"
src="[app_url]img/bt_table.gif" alt="Consultar item" border="0"></a>
</td>
<td class="newspostedby"> </td>
<td class="newspostedby"> </td>
<td class="newspostedby">
<input name="redraw" type="image" src="[app_url]img/bt_refresh.gif"
alt="Atualizar" border="0" onclick="javascript:document.frm_map.zoomdir.value='0';">
</td>
<td class="newspostedby"> </td>
<td class="newspostedby"> </td>
<!--<td class="newspostedby">
<a href="javascript:do_full()"><img name="BTzoomdir_full"
src="[app_url]img/bt_full.gif" alt="Reiniciar Mapa" border="0"></a>
</td>-->
<td class="newspostedby">
<a href="javascript:do_pan();"><img name="BTzoomdir_pan"
src="[app_url]img/bt_pan.gif" alt="Centralizar" border="0"></a>
</td>
<td class="newspostedby">
<a href="javascript:do_zoomin();"><img name="BTzoomdir_in"
src="[app_url]img/bt_zoomin.gif" alt="Aproximar(zoom+)" border="0"></a>
</td>
<td class="newspostedby">
<a href="javascript:do_zoomout();"><img name="BTzoomdir_out"
src="[app_url]img/bt_zoomout.gif" alt="Afastar(zoom-)" border="0"></a>
</td>
<td class="newspostedby">
<input name="zoomsize" type="text" title="Grau de Zoom" size="1"
value="[zoomsize]" onkeypress="return maskNumber(this,window.event.keyCode,false, false)"
class="field_textbox">
</td>
<td class="newspostedby">
<select name="imgext" id="select_imgext"
onchange="javascript:rs=on_submit();if (!rs)
return;document.frm_map.mode.value='browse';document.frm_map.zoomdir.value='0';document.frm_map.submit
();" class="field_selectbox">
<option value="[mapext]">(zoom para...)</option>
<option value="-73.991 -33.751 -32.378 5.272">B R A S I L</option>
<option value="-73.991 -13.693 -46.061 5.272">NORTE</option>
<option value="-73.991 -11.144 -66.619 -7.117">...AC-
Acre</option>
<option value="-73.801 -9.814 -56.097 2.247">...AM-
Amazonas</option>
<option value="-54.876 -1.236 -49.876 4.437">...AP-
Amapá</option>
<option value="-58.898 -9.841 -46.061 2.591">...PA-
Pará</option>
<option value="-66.806 -13.693 -59.774 -7.969">...RO-
Rondônia</option>
<option value="-64.646 -1.580 -58.886 5.272">...RR-
Roraima</option>
<option value="-48.755 -18.349 -32.378 -1.042">NORDESTE</option>
<option value="-38.237 -10.501 -35.152 -8.812">...AL-
Alagoas</option>
<option value="-46.629 -18.349 -37.340 -8.532">...BA-
Bahia</option>
<option value="-41.435 -7.856 -36.992 -2.784">...CE-
Ceará</option>
<option value="-48.755 -10.261 -41.795 -1.042">...MA-
Maranhão</option>
<option value="-38.765 -8.303 -34.793 -6.027">...PB-
Paraíba</option>
<option value="-41.358 -9.482 -32.378 -3.804">...PE-
Pernambuco</option>
<option value="-45.993 -10.941 -40.391 -2.746">...PI-
Piauí</option>
<option value="-38.582 -6.983 -34.969 -4.831">...RN-Rio
Grande do Norte</option>
<option value="-38.249 -11.568 -36.391 -9.515">...SE-
Sergipe</option>
<option value="-61.633 -24.068 -45.696 -5.168">CENTROESTE</option>
<option value="-48.287 -16.051 -47.307 -15.500">...DF-
Distrito Federal</option>
<option value="-53.251 -19.499 -45.907 -12.395">...GO-
Goiás</option>
<option value="-58.167 -24.068 -50.922 -17.166">...MS-Mato
Grosso do Sul</option>
<option value="-61.633 -18.042 -50.224 -7.349">...MT-Mato
Grosso</option>
<option value="-50.742 -13.467 -45.696 -5.168">...TO-
Tocantins</option>
<option value="-53.110 -25.312 -39.665 -14.233">SUDESTE</option>
<option value="-41.879 -21.301 -39.665 -17.891">...ES-
Espírito Santo</option>
<option value="-51.046 -22.922 -39.856 -14.233">...MG-
Minas Gerais</option>
<option value="-44.983 -23.427 -40.848 -20.663">...RJ-Rio
de Janeiro</option>
<option value="-53.110 -25.312 -44.161 -19.779">...SP-São
Paulo</option>
<option value="-57.644 -33.751 -48.023 -22.516">SUL</option>
<option value="-54.619 -26.716 -48.023 -22.516">...PR-
Paraná</option>
<option value="-57.644 -33.751 -49.691 -27.080">...RS-Rio
Grande do Sul</option>
<option value="-53.836 -29.351 -48.328 -25.955">...SC-Santa
Catarina</option>
</select>
</td>
<td class="newspostedby"> </td>
<td class="newspostedby"> </td>
<td class="newspostedby">
<b>Escala</b> = 1:[scale]
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr class="sideboxtext">
<td align="center" class="sideboxtext" valign="middle">
<img alt="Barra de Escala" src="[program]?map=[map]&mode=scalebar&mapext=[minx]+
[miny]+[maxx]+[maxy]">
</td>
<td align="center" class="sideboxtext" valign="middle">
<input type="checkbox" name="layer" value="findmuni" id="findmuni" [findmuni_check]
>Procurar município:<input type="text" name="map_findmuni_class_expression"
value="[map_findmuni_class_expression]" maxlength="30" size="20" class="field_textbox">
<input type="hidden" name="procurar_por" value="[procurar_por]">
</td>
</tr>
<!-- v - MAPA -->
<tr>
<td colspan="2" align="center" class="sideboxtext">
<table border="0" cellpadding="0" cellspacing="0" align="0" >
<tr>
<td align="center" class="sideboxtext" valign="top">
<table border="1" cellspacing="0" cellpadding="0" class="rightpanel"
align="center">
<tr>
<td>
<applet codebase="[app_url]java/mapplet" code="mapplet.class"
width="600" height="375" name="mapplet" mayscript>
<!--<param name="image" value="http://[host]{img}">-->
<param name="image" value="http://[host][program]?map=
[map][get_layers]&mode=map&zoomsize=[zoomsize]&zoomdir=[zoomdir]&mapext=[minx]+[miny]+[maxx]+
[maxy]&size=600+375&map_findmuni_class_expression=[map_findmuni_class_expression]">
<param name="verbose" value="off">
<param name="thickness" value="2">
</applet>
</td>
</tr>
</table>
</td>
<td valign="top" class="newspostedby" align="center">
<table border="1" cellspacing="0" cellpadding="0" class="rightpanel"
align="center" width="130px">
<tr><td colspan="2" class="sideboxtext" align="center">
<input name="ref" type="image" src="[program]?map=[map]
[get_layers]&mode=reference&mapext=[minx]+[miny]+[maxx]+[maxy]" border="1" alt="Clique para centralizar">
</td></tr>
<tr>
<td class="sideboxtext">
<input type="checkbox" name="layer" value="br_rvia"
[br_rvia_check] id="layer_br_rvia">Rodovias</td>
</tr>
<tr>
<td class="sideboxtext">
<input type="checkbox" name="layer" value="br_fvia"
[br_fvia_check] id="layer_br_fvia">Ferrovias</td>
</tr>
<tr>
<td class="sideboxtext">
<input type="checkbox" name="layer" value="br_sede"
[br_sede_check] id="layer_br_sede">Sedes municipais</td>
</tr>
<tr>
<td class="sideboxtext">
<input type="checkbox" name="layer" value="br_hidr"
[br_hidr_check] id="layer_br_hidr">Hidrografia</td>
</tr>
<tr>
<td class="sideboxtext">
<input type="checkbox" name="layer" value="br_muni"
[br_muni_check] id="layer_br_muni">Estados</td>
</tr>
<tr>
<td class="sideboxtext">
<input type="checkbox" name="layer" value="br_uf"
[br_uf_check] id="layer_br_uf" >Regiões</td>
</tr>
<tr>
<td class="sideboxtext"
align="center"><b>Legenda</b></td>
</tr>
<tr>
<td class="sideboxtext" align="center">
<input type="button" class="button"
name="bt_legenda" id="bt_legenda" value="Ocultar" onclick="javascript:flip_legend()"><br>
<img src="[program]?map=[map][get_layers]
&mode=legend&mapext=[minx]+[miny]+[maxx]+[maxy]" border="0" alt="Legenda" id="legend" name="legend">
</td>
</tr>
<tr>
<td align="center" colspan="2" class="sideboxtext">
<a href="http://mapserver.gis.umn.edu"
target="_show">
<img src="[app_url]img/by_mapserver.jpg"
border="0" alt="This site is Powered by MapServer [version]">
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- ^ - MAPA -->
</table>
</form>
</body>
</html>
=== TEMPLATE =====
=== MAPFILE ======
NAME clickbr_ptbr_
STATUS OFF
SIZE 600 375
EXTENT -73.991 -33.751 -32.378 5.272
UNITS DD
SHAPEPATH "data"
SYMBOLSET "etc/br_symbols.sym"
IMAGECOLOR 255 255 255
#@#IMAGETYPE GIF
#IMAGEQUALITY 100 #4JPG
WEB
EMPTY "/linkgeo/clickbrasil/qry_fail.ptbr.html"
ERROR "/linkgeo/clickbrasil/error.ptbr.html"
HEADER "br_header.html" # qry - 1
TEMPLATE "clickbrasil_app.ptbr.html"
FOOTER "br_footer.html"
MINSCALE 10000
MAXSCALE 35000000
#@#IMAGEPATH "set in clickbrasil.ptbr.php" #caminho físico das imagens geradas
#@#IMAGEURL "set in clickbrasil.ptbr.php"
IMAGEPATH ""
IMAGEURL ""
#@#LOG "clickbrasil.ptbr.log"
END
QUERYMAP
SIZE 300 187.5
STATUS OFF
STYLE HILITE
COLOR 0 0 255
END
REFERENCE
IMAGE "img/br_reference.gif"
EXTENT -73.991 -33.751 -32.378 5.272
SIZE 100 62
STATUS OFF
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MAXBOXSIZE 99
END
LEGEND
KEYSIZE 15 12
LABEL
TYPE BITMAP
SIZE SMALL
COLOR 0 0 0
END
STATUS OFF
END
SCALEBAR
OUTLINECOLOR 0 0 0
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
STYLE 0
SIZE 300 3
COLOR 0 0 0
UNITS KILOMETERS
INTERVALS 3
TRANSPARENT FALSE
STATUS OFF
END
LAYER
NAME "br_uf"
TYPE POLYGON
STATUS OFF #DEFAULT
DATA "br_uf"
CLASSITEM "REGIAO"
CLASS
NAME "Norte"
EXPRESSION "NORTE"
OUTLINECOLOR 46 92 92
COLOR 0 192 0
END
CLASS
NAME "Nordeste"
EXPRESSION "NORDESTE"
OUTLINECOLOR 46 92 92
COLOR 192 192 192
END
CLASS
NAME "Centroeste"
EXPRESSION "CENTROESTE"
OUTLINECOLOR 46 92 92
COLOR 255 128 128
END
CLASS
NAME "Sudeste"
EXPRESSION "SUDESTE"
OUTLINECOLOR 46 92 92
COLOR 255 255 128
END
CLASS
NAME "Sul"
EXPRESSION "SUL"
#TEMPLATE "qry_br_uf.html"
OUTLINECOLOR 46 92 92
COLOR 128 128 255
END
END
LAYER
NAME "br_uf_anno"
NAME "br_uf"
TYPE ANNOTATION
STATUS OFF#ON
DATA "br_uf"
LABELITEM "SIGLAUF"
CLASSITEM "SIGLAUF"
LABELMINSCALE 2500001
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
COLOR 0 0 0
TYPE BITMAP
SIZE MEDIUM
POSITION CC
PARTIALS FALSE
END
END
END
LAYER
NAME "br_muni"
TYPE POLYGON
STATUS OFF
DATA "br_muni"
MAXSCALE 16000000
CLASSITEM "NOMEUF"
HEADER "br_muni_header.html"
TEMPLATE "br_muni_tpl.html"
FOOTER "br_muni_footer.html"
CLASS
NAME "RS"
EXPRESSION "RIO GRANDE DO SUL"
OUTLINECOLOR 129 129 129
COLOR 208 208 255
END
CLASS
NAME "SC"
EXPRESSION "SANTA CATARINA"
OUTLINECOLOR 129 129 129
COLOR 187 187 255
END
CLASS
NAME "PR"
EXPRESSION "PARANA"
OUTLINECOLOR 129 129 129
COLOR 151 151 255
END
CLASS
NAME "SP"
EXPRESSION "SAO PAULO"
OUTLINECOLOR 129 129 129
COLOR 255 255 170
END
CLASS
NAME "RJ"
EXPRESSION "RIO DE JANEIRO"
OUTLINECOLOR 129 129 129
COLOR 255 255 128
END
CLASS
NAME "MG"
EXPRESSION "MINAS GERAIS"
OUTLINECOLOR 129 129 129
COLOR 255 255 34
END
CLASS
NAME "ES"
EXPRESSION "ESPIRITO SANTO"
OUTLINECOLOR 129 129 129
COLOR 217 217 0
END
CLASS
NAME "MS"
EXPRESSION "MATO GROSSO DO SUL"
OUTLINECOLOR 129 129 129
COLOR 255 179 179
END
CLASS
NAME "GO"
EXPRESSION "GOIAS"
OUTLINECOLOR 129 129 129
COLOR 255 151 151
END
CLASS
NAME "DF"
EXPRESSION "DISTRITO FEDERAL"
OUTLINECOLOR 129 129 129
COLOR 255 81 81
END
CLASS
NAME "TO"
EXPRESSION "TOCANTINS"
OUTLINECOLOR 129 129 129
COLOR 255 15 15
END
CLASS
NAME "MT"
EXPRESSION "MATO GROSSO"
OUTLINECOLOR 129 129 129
COLOR 215 0 0
END
CLASS
NAME "BA"
EXPRESSION "BAHIA"
OUTLINECOLOR 129 129 129
COLOR 234 235 238
END
CLASS
NAME "SE"
EXPRESSION "SERGIPE"
OUTLINECOLOR 129 129 129
COLOR 218 220 224
END
CLASS
NAME "AL"
EXPRESSION "ALAGOAS"
OUTLINECOLOR 129 129 129
COLOR 201 204 209
END
CLASS
NAME "PE"
EXPRESSION "PERNAMBUCO"
OUTLINECOLOR 129 129 129
COLOR 183 187 193
END
CLASS
NAME "PB"
EXPRESSION "PARAIBA"
OUTLINECOLOR 129 129 129
COLOR 167 172 180
END
CLASS
NAME "RN"
EXPRESSION "RIO GRANDE DO NORTE"
OUTLINECOLOR 129 129 129
COLOR 153 158 168
END
CLASS
NAME "CE"
EXPRESSION "CEARA"
OUTLINECOLOR 129 129 129
COLOR 145 150 162
END
CLASS
NAME "PI"
EXPRESSION "PIAUI"
OUTLINECOLOR 129 129 129
COLOR 128 134 149
END
CLASS
NAME "MA"
EXPRESSION "MARANHAO"
OUTLINECOLOR 129 129 129
COLOR 116 122 139
END
CLASS
NAME "RO"
EXPRESSION "RONDONIA"
OUTLINECOLOR 129 129 129
COLOR 149 255 149
END
CLASS
NAME "AC"
EXPRESSION "ACRE"
OUTLINECOLOR 129 129 129
COLOR 0 251 0
END
CLASS
NAME "AM"
EXPRESSION "AMAZONAS"
OUTLINECOLOR 129 129 129
COLOR 0 217 0
END
CLASS
NAME "AM"
EXPRESSION "AMAZONAS"
OUTLINECOLOR 129 129 129
COLOR 0 217 0
END
CLASS
NAME "PA"
EXPRESSION "PARA"
OUTLINECOLOR 129 129 129
COLOR 0 192 0
END
CLASS
NAME "AP"
EXPRESSION "AMAPA"
OUTLINECOLOR 129 129 129
COLOR 0 166 0
END
CLASS
NAME "RR"
EXPRESSION "RORAIMA"
OUTLINECOLOR 129 129 129
COLOR 0 136 0
END
END
LAYER
NAME "br_muni_anno"
NAME "br_muni"
TYPE ANNOTATION
STATUS OFF
DATA "br_muni"
LABELITEM "NOME"
CLASSITEM "NOME"
LABELMAXSCALE 2500000
LABELMINSCALE 1125000
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
COLOR 64 64 64
TYPE BITMAP
SIZE TINY
POSITION AUTO
PARTIALS FALSE
BUFFER 1
END
END
END
LAYER
NAME "br_muni_anno"
NAME "br_muni"
TYPE ANNOTATION
STATUS OFF
DATA "br_muni"
LABELITEM "NOME"
CLASSITEM "NOME"
LABELMAXSCALE 1124999
LABELMINSCALE 250000
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
COLOR 64 64 64
TYPE BITMAP
SIZE SMALL
POSITION AUTO
PARTIALS FALSE
BUFFER 1
END
END
END
LAYER
NAME "br_muni_anno"
NAME "br_muni"
TYPE ANNOTATION
STATUS OFF
DATA "br_muni"
LABELITEM "NOME"
CLASSITEM "NOME"
LABELMAXSCALE 249999
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
COLOR 64 64 64
TYPE BITMAP
SIZE MEDIUM
POSITION AUTO
PARTIALS FALSE
BUFFER 1
END
END
END
LAYER
NAME "br_hidr"
TYPE LINE
STATUS OFF
DATA "br_hidr"
MAXSCALE 10500000
CLASS
NAME "Hidrografia"
COLOR 0 0 187
END
END
LAYER
NAME "br_sede"
TYPE POINT
STATUS OFF
DATA "br_sede"
CLASS
NAME "Sedes municipais"
COLOR 32 32 32
SYMBOL 'SEDE'
SIZE 2
END
END
LAYER
NAME "br_fvia"
TYPE LINE
STATUS OFF
DATA "br_fvia"
CLASSITEM "DESCRICAO"
CLASS
NAME "Bitola 1,0m"
EXPRESSION "FERROVIA EM TRAFEGO BITOLA 1.00M"
COLOR 128 128 0
SYMBOL 'FVIA_BIT1'
END
CLASS
NAME "Bitola 1,6m"
EXPRESSION "FERROVIA EM TRAFEGO BITOLA 1.60M"
COLOR 128 0 128
SYMBOL 'FVIA_BIT16'
END
CLASS
NAME "Bitola Mista"
EXPRESSION "FERROVIA EM TRAFEGO BITOLA MISTA"
COLOR 221 0 0
SYMBOL 'FVIA_MISTA'
END
CLASS
NAME "Suspensa"
EXPRESSION "FERROVIA COM TRAFEGO SUSPENSO"
COLOR 137 90 68
SYMBOL 'FVIA_SUSP'
END
CLASS
NAME "F.Planejada"
EXPRESSION "FERROVIA PLANEJADA"
COLOR 122 142 245
SYMBOL 'FVIA_PLAN'
END
END
LAYER
NAME "br_rvia"
TYPE LINE
STATUS OFF
DATA "br_rvia"
CLASSITEM "CLASSIF_MT"
CLASS
NAME "Duplicada"
EXPRESSION "DUPLICADA"
COLOR 166 0 0
END
CLASS
NAME "Em duplicação"
EXPRESSION "EM DUPLICACAO"
COLOR 113 0 0
SYMBOL 'RVIA_EMDPL'
END
CLASS
NAME "Implantada"
EXPRESSION "IMPLANTADA"
COLOR 179 129 27
SYMBOL 'RVIA_IMPL'
END
CLASS
NAME "Em implantação"
EXPRESSION "EM IMPLANTACAO"
COLOR 223 112 0
SYMBOL 'RVIA_EMIMP'
END
CLASS
NAME "Pavimentada"
EXPRESSION "PAVIMENTADA"
COLOR 170 102 205
END
CLASS
NAME "Em pavimentação"
EXPRESSION "EM PAVIMENTACAO"
COLOR 255 15 135
SYMBOL 'RVIA_EMIMP' ##########
END
CLASS
NAME "Em pavimentação"
EXPRESSION "EM PAVIMENTACAO"
COLOR 255 15 135
SYMBOL 'RVIA_EMIMP'
END
CLASS
NAME "R.Planejada"
EXPRESSION "PLANEJADA"
COLOR 0 255 64
END
CLASS
NAME "Leito natural"
EXPRESSION "LEITO NATURAL"
COLOR 0 128 128
SYMBOL 'FVIA_SUSP' #######
END
CLASS
NAME "Balsa"
EXPRESSION "BALSA"
COLOR 128 255 255
END
END
LAYER
NAME "br_rvia_anno"
NAME "br_rvia"
TYPE ANNOTATION
STATUS OFF
DATA "br_rvia"
LABELITEM "SIGLA"
CLASSITEM "SIGLA"
LABELMAXSCALE 1000000
LABELMINSCALE 100000
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
ANGLE AUTO
COLOR 90 90 90
TYPE BITMAP
SIZE TINY
POSITION AUTO
PARTIALS FALSE
BUFFER 1
MINDISTANCE 200
END
END
END
LAYER
NAME "findmuni"
TYPE POLYGON
STATUS OFF
DATA "br_muni"
CLASSITEM "NOME"
CLASS
EXPRESSION /./
COLOR 255 0 0
END
END
END
=== MAPFILE ======
At 11:11 PM 6/13/2003 -0300, you wrote:
>following some tricks from the mapserver users meeting, I've ported a
>MapServer CGI application to one that does not use temporary image files.
>
>the parameters map_web_imagepath and map_web_imageurl were set as an empty
>value ("") inside the mapfile,
>
>and the template file of the application has no mention of these
>parameters too.
>
>I've ported the objects [img], [scalebar], [ref] and [legend] to CGI URLs
>to avoid the use of temp-images.
>
>
>However, each time I do an interation to the application, 4 image files
>are created at the same path of the application/mapfile.
You need to set STATUS OFF for the whole map file.
Rich
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com
----- Original Message -----
From: "Pericles S. Nacionales" <nacional at cbs.umn.edu>
To: "Eduardo Patto Kanegae" <eduardo at linkgeo.com.br>
Cc: "mapserver-users" <mapserver-users at lists.gis.umn.edu>
Sent: Saturday, June 14, 2003 2:15 AM
Subject: Re: [Mapserver-users] Using CGI mode without temp-images... theimages are still being created.
> Hi Eduardo,
>
> Steve and others probably know more about this than me but I'm wondering
> if you can send your template file. Chances are we'll be able to point
> out inconsistencies in it.
>
> Cheers!
> Perry
>
> On Fri, 2003-06-13 at 21:11, Eduardo Patto Kanegae wrote:
> > following some tricks from the mapserver users meeting, I've ported a
> > MapServer CGI application to one that does not use temporary image
> > files.
> >
> > the parameters map_web_imagepath and map_web_imageurl were set as an
> > empty value ("") inside the mapfile,
> >
> > and the template file of the application has no mention of these
> > parameters too.
> >
> > I've ported the objects [img], [scalebar], [ref] and [legend] to CGI
> > URLs to avoid the use of temp-images.
> >
> >
> > However, each time I do an interation to the application, 4 image
> > files are created at the same path of the application/mapfile.
> >
> > So, why are these files being created?
> >
> >
> > thanks
> >
> > Eduardo Patto Kanegae
> > eduardo at linkgeo.com.br
> > http://www.linkgeo.com.br
> >
> >
> --
> Pericles S. Nacionales <nacional at biosci.cbs.umn.edu>
> University of Minnesota
>
>
Eduardo Patto Kanegae
eduardo at linkgeo.com.br
http://www.linkgeo.com.br
***************************************
***Fim da Mensagem / End of Message ***
***************************************
More information about the MapServer-users
mailing list