[Mapserver-users] Strange behavior on query mode (CGI)
Eduardo Patto Kanegae
eduardo at consultoria.eti.br
Thu Jan 22 08:41:44 PST 2004
I'm sorry...
it's MapServer 4.0.1 for Linux ( on a Suse 9 box) configured with:
$ ./configure --prefix=/usr/local --host --with-jpeg=/usr/local/bin --with-freetype=/usr/include/freetype2 --with-zlib=/usr --with-png=/usr --with-gd=/usr --with-xpm=/usr/X11R6/lib --with-pdf=/usr/local/mapserver-linux-distro/deps/PDFlib-5.0.2-Linux/bind/c --with-tiff=/usr/local --with-eppl --with-proj=/usr/local --with-threads --with-ogr --with-gdal --without-ming --with-wfs --with-wfsclient --with-wms --with-wmsclient --with-curl-config=/usr/local/bin --with-curl=/usr/local/lib --enable-ignore-missing-data --disable-debug --with-php=/usr/local/mapserver-linux-distro/deps/php-4.3.4
when run $ mapserv -v , I got:
MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
----- the mapfile --------
MAP
NAME "loteamento_002" # VARIAVEL
EXTENT 2382.569 366.011 2958.370 917.756 # VARIAVEL
FONTSET "/servidor/raiz_apache/ferramentas/loteamentos/fontset.txt"
SYMBOLSET "/servidor/raiz_apache/ferramentas/loteamentos/symbolset.sym"
IMAGECOLOR 255 255 255
IMAGETYPE PNG # tipo das imagens a serem geradas
INTERLACE ON
SHAPEPATH "/servidor/raiz_apache/ferramentas/loteamentos/loteamento_002"# VARIAVEL
SIZE 600 400
STATUS ON
UNITS METERS
QUERYMAP
COLOR 255 255 0 #color of the hilited itens in querymap
SIZE 300 200 #size of the querymap
STATUS ON
STYLE HILITE #style of the selected itens on the query
END
WEB
#EMPTY "/ferramentas/loteamentos/web_empty.html"
#ERROR "/ferramentas/loteamentos/web_error.html"
#HEADER "/servidor/raiz_apache/ferramentas/loteamentos/web_header.html"
#FOOTER "/servidor/raiz_apache/ferramentas/loteamentos/web_footer.html"
IMAGEPATH "/servidor/raiz_apache/tmp/"
IMAGEURL "/tmp/"
LOG "/servidor/raiz_apache/tmp/loteamento_002.log" # VARIAVEL
MINSCALE 100
MAXSCALE 10000
TEMPLATE "/servidor/raiz_apache/ferramentas/loteamentos/web_template.html"
END
SCALEBAR # inicia a definição do objeto ScaleBar ( Barra de Escala)
COLOR 0 0 0 # cor da barra de escala
IMAGECOLOR 255 255 255 #cor de fundo da imagem da barra de escala
INTERVALS 3 #número de segmentos que a barra de escala terá
LABEL # inicia a definição de objeto Label . AVISO: o objeto ScaleBar aceita apenas labels do tipo BITMAP
COLOR 0 0 0 # cor do texto
SIZE SMALL # tamanho do texto
END # finaliza MAP_SCALEBAR_LABEL
OUTLINECOLOR 0 0 0 # cor de cortorno da barra de escala
SIZE 300 3 # larguraXaltura da barra de escala
STATUS ON # define se a imagem temporária da Barra de escala deverá ser criada
STYLE 0 # estilo da barra de escala : 0 = bar style | 1 = line style
UNITS METERS #unidade dos valores da barra de escala
END # finaliza MAP_SCALEBAR
LEGEND # inicia a definição do objeto LEGEND
IMAGECOLOR 255 255 255 #cor de fundo da imagem da legenda
LABEL # inicia a definição de objeto LABEL
ANTIALIAS TRUE # usar antialias? fica melhor, e consequentemente um pouco maior(o tamanho em bytes da imagem) q textos sem antialias
COLOR 0 0 0 #cor do texto
# FONT "arial" # nome da fonte( previamente definida no fontset)
SIZE SMALL #8 # tamanho do texto
TYPE BITMAP #TRUETYPE # tipo do texto
END
KEYSIZE 15 12 # tamanho dos simbolos da legenda ( larguraXaltura )
STATUS ON # define se a imagem temporaria da legenda deve ser criada
END # finaliza MAP_LEGEND
LAYER
NAME "layLoteamento"
TYPE POLYGON
DATA "loteamento"
STATUS DEFAULT
CLASS
NAME "Divisa loteamento"
OUTLINECOLOR 128 128 128
COLOR -1 -1 -1
END
END
LAYER
NAME "layQuadra"
TYPE POLYGON
DATA "quadra"
STATUS OFF
CLASS
NAME "Quadras"
OUTLINECOLOR 32 32 32
COLOR 255 247 145
END
END
LAYER
NAME "layLote"
TYPE POLYGON
DATA "lotes"
STATUS OFF
CLASSITEM "STATUS"
HEADER "/servidor/raiz_apache/ferramentas/loteamentos/lote_header.htm"
TEMPLATE "/servidor/raiz_apache/ferramentas/loteamentos/lote_template.htm"
FOOTER "/servidor/raiz_apache/ferramentas/loteamentos/lote_footer.htm"
CLASS
EXPRESSION "V"
NAME "Vendido"
OUTLINECOLOR 64 64 64
COLOR 255 170 170
END
CLASS
EXPRESSION "R"
NAME "Reservado"
OUTLINECOLOR 64 64 64
COLOR 255 168 125
END
CLASS
EXPRESSION "L"
NAME "Livre"
OUTLINECOLOR 64 64 64
COLOR 170 255 170
END
END
LAYER
NAME "layLote"
TYPE ANNOTATION
DATA "lotes"
STATUS OFF
CLASSITEM "STATUS"
LABELMAXSCALE 2000
SYMBOLSCALE 500
CLASS
EXPRESSION "V"
OUTLINECOLOR -1 -1 -1
COLOR -1 -1 -1
TEXT "Vendido"
LABEL
ANGLE 60
ANTIALIAS TRUE
TYPE TRUETYPE
SIZE 20
FONT "arial"
COLOR 0 0 0
OUTLINECOLOR 255 32 32
FORCE TRUE
POSITION CC
PARTIALS TRUE
MAXSIZE 32
MINSIZE 8
END
END
CLASS
EXPRESSION "R"
OUTLINECOLOR -1 -1 -1
COLOR -1 -1 -1
TEXT "Reservado"
LABEL
BACKGROUNDCOLOR 255 255 0
BACKGROUNDSHADOWCOLOR 192 192 192
BACKGROUNDSHADOWSIZE 2 3
ANGLE -20
ANTIALIAS TRUE
TYPE TRUETYPE
SIZE 12
FONT "arial"
COLOR 0 0 0
FORCE TRUE
POSITION CC
PARTIALS TRUE
MAXSIZE 28
MINSIZE 8
END
END
CLASS
EXPRESSION "L"
OUTLINECOLOR -1 -1 -1
COLOR -1 -1 -1
TEXT "Livre"
LABEL
ANGLE 0
ANTIALIAS TRUE
TYPE TRUETYPE
SIZE 10
FONT "arial"
COLOR 0 0 0
FORCE TRUE
SHADOWCOLOR 64 128 255
SHADOWSIZE 1 1
POSITION CC
PARTIALS TRUE
MAXSIZE 24
MINSIZE 8
END
END
END
LAYER
NAME "layRede"
TYPE LINE
DATA "rede"
STATUS OFF
CLASSITEM "TIPO"
CLASS
EXPRESSION "Esgoto"
NAME "Esgoto"
COLOR 137 112 68
SYMBOL "BOLA"
SIZE 4
END
CLASS
EXPRESSION "Galeria"
NAME "Galeria"
COLOR 10 255 50
SYMBOL "BOLA"
SIZE 3
END
CLASS
EXPRESSION "Agua"
NAME "Agua"
COLOR 0 0 255
SYMBOL "BOLA"
SIZE 2
END
END
LAYER
NAME "layCober"
TYPE POLYGON
DATA "cobertura"
STATUS OFF
CLASSITEM "TIPO"
CLASS
EXPRESSION "Institucional"
NAME "Institucional"
COLOR 110 110 110
END
CLASS
EXPRESSION "Área verde"
NAME "Área verde"
COLOR 38 115 0
SYMBOL "ARVORE"
SIZE 5
END
END
LAYER
NAME "layLagos"
TYPE POLYGON
DATA "lagos"
STATUS OFF
CLASS
NAME "Lagos"
COLOR 151 219 242
END
END
END
-----------------
Eduardo Patto Kanegae
+Homepage:http://www.consultoria.eti.br ( BRASIL )
+Perfil:http://www.consultoria.eti.br/ptbr/epk.php
*Fórum ptMapServer - http://www.consultoria.eti.br/mapserverptforum/ - "Discussões relacionadas ao MapServer"
*ClickBrasil - http://www.consultoria.eti.br/clickbrasil/ - "Mapas do Brasil com dados censitários"
***************************************
***Fim da Mensagem / End of Message ***
***************************************
On Thu, 22 Jan 2004 10:15:32 -0600, "Steve Lime" <steve.lime at dnr.state.mn.us> escreveu:
> De: "Steve Lime" <steve.lime at dnr.state.mn.us>
> Data: Thu, 22 Jan 2004 10:15:32 -0600
> Para: <eduardo at consultoria.eti.br>
> Assunto: Re: [Mapserver-users] Strange behavior on query mode (CGI)
>
> What version? Got a sample mapfile?
>
> >>> "Eduardo Patto Kanegae" <eduardo at consultoria.eti.br> 1/22/2004 9:49:51 AM >>>
> today I built a very simple Mapserver CGI application
> and when I select the query mode and click an object, I only got "Internal Server Error"
> and the apache log only says "Premature end of script headers".
>
> so I removed the HEADER and FOOTER parameters of the WEB object in the mapfile, transfered the content
> of the header file to the layer_header file and the content of the footer file to the layer_footer file,
>
> and then tried again.... so, it finally works!
>
> what is the problem here?
>
>
> Eduardo Patto Kanegae
> +Homepage:http://www.consultoria.eti.br ( BRASIL )
> +Perfil:http://www.consultoria.eti.br/ptbr/epk.php
> *Fórum ptMapServer - http://www.consultoria.eti.br/mapserverptforum/ - "Discussões relacionadas ao MapServer"
> *ClickBrasil - http://www.consultoria.eti.br/clickbrasil/ - "Mapas do Brasil com dados censitários"
> ***************************************
> ***Fim da Mensagem / End of Message ***
> ***************************************
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>
>
More information about the MapServer-users
mailing list