<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Messaggio</TITLE>
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
STRONG {
FONT-FAMILY: "Times New Roman"
}
P.Tableauxetgraphiques {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
LI.Tableauxetgraphiques {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
DIV.Tableauxetgraphiques {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
SPAN.StyleCourrierlectronique18 {
COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=053433010-07122004><FONT face=Arial color=#0000ff size=2>Here
is it:</FONT></SPAN></DIV>
<DIV><SPAN class=053433010-07122004><FONT face=Arial color=#0000ff
size=2>----------------------------------------------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=053433010-07122004></SPAN><SPAN class=053433010-07122004><FONT
face=Arial color=#0000ff size=2> LAYER #Elementi
stradali<BR> NAME "Elementi_stradali"<BR> GROUP "A
- Catasto delle strade"<BR> DATA
"./cat_strade/road_elements.shp"<BR> TYPE line<BR> STATUS
on<BR> CLASSITEM "ID_LINE"<BR> MAXSCALE
50000<BR> MINSCALE 0<BR> TRANSPARENCY
100<BR> TRANSFORM true<BR> SYMBOLSCALE
2000<BR> HEADER
"./templates/nocsup_re_header.html"<BR> FOOTER
"./templates/nocsup_re_footer.html"<BR>
METADATA<BR> "Oggetto" "Elementi
stradali"<BR> "Data creazione"
"03/03/2004"<BR>
gix_layername
"Elementi_stradali"<BR> gix_layerfieldnames
"LAYER|ID_DATASET|ID_LINE|SPLIT|CLASS|ID_EDGE|FROMP|TOP|SOURCE|UFFICIALE|CONVENZION|PROPRIETAR|GESTORE|AMMINISTRA|TECNICO|LUNGHEZZA|DIVISIONE|DIREZIONE|DENOMIN|PERCORSO|"<BR>
gix_layerfieldalias
"Layer|Id_dataset|Id_line|Split|Class|Id_edge|Fromp|Top|Source|Ufficiale|Convenzion|Proprietar|Gestore|Amministra|Tecnico|Lunghezza|Divisione|Direzione|Denomin|Percorso|"<BR>
wms_abstract
"fiorea Elementi stradali ** Gix Generated
MapFile"<BR>
wms_title
"Elementi stradali"<BR>
wms_srs
"NONE"<BR> END<BR>
CLASS<BR> NAME 'Road
elements'<BR> TEMPLATE
"./templates/nocsup_re_query.html"<BR> STYLE<BR> COLOR
0 0 0<BR> SYMBOL "punto"<BR> SIZE
4<BR> ANTIALIAS
TRUE<BR> END<BR> STYLE<BR> COLOR
0 0 255<BR> SYMBOL
"punto"<BR> SIZE 2<BR> ANTIALIAS
TRUE<BR> END<BR> END #CLASS<BR>
END #
LAYER<BR>----------------------------------------------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=053433010-07122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=053433010-07122004><FONT face=Arial color=#0000ff size=2>As I
told in another message, I can browse the map (and this layer) until I remain
out of certain extents that give me error.</FONT></SPAN></DIV>
<DIV><SPAN class=053433010-07122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=053433010-07122004> <FONT face=Arial
color=#0000ff size=2>Daniele</FONT></SPAN></DIV>
<DIV><SPAN class=053433010-07122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=it dir=ltr align=left><FONT face=Tahoma
size=2>-----Messaggio originale-----<BR><B>Da:</B> Skweda O'Bomsawin
[mailto:sobomsawin@kassini.com] <BR><B>Inviato:</B> lunedì 6 dicembre 2004
15.30<BR><B>A:</B> 'Daniele Margotti';
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Oggetto:</B> RE : [UMN_MAPSERVER-USERS]
Internal Server Error<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Most of the time,
internal server error is caused by a syntax error in the mapfile. Can
you post the Elementi_stradali layer section of your
mapfile?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Skweda
O'Bomsawin</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Tahoma size=2><SPAN
lang=FR style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Message
d'origine-----<BR><B><SPAN style="FONT-WEIGHT: bold">De :</SPAN></B> UMN
MapServer Users List [mailto:</SPAN></FONT><FONT face=Tahoma size=2><SPAN
lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">MAPSERVER-USERS@LISTS.UMN.EDU</SPAN></FONT><FONT
face=Tahoma size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">] <B><SPAN
style="FONT-WEIGHT: bold">De la part de</SPAN></B> Daniele
Margotti<BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé :</SPAN></B> 6
décembre 2004 07:35<BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B>
</SPAN></FONT><FONT face=Tahoma size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">MAPSERVER-USERS@LISTS.UMN.EDU</SPAN></FONT><FONT
face=Tahoma size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><BR><B><SPAN
style="FONT-WEIGHT: bold">Objet :</SPAN></B> [UMN_MAPSERVER-USERS]
Internal Server Error</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN lang=FR-CA style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi list,</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I use CGI MapServer 4.2.3 on a RH9
with Apache 2.0.50:</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><!-- MapServer version 4.2.3
OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=FREETYPE
INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
--></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">All works, but I have a map that
returns an "Internal Server Error" when I try to zoom and show a certain
extent with a specific layer.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I think the problem is due to the
shapefile (or a part of it), but... how can I be sure of
it?</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The browser only show the
"Internal Server Error" page.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The Apache error log says: "[Mon
Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script
headers: mapserv"</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I compiled MapServer with
--enable-debug, set "DEBUG TRUE" in the map section of the mapfile,
and tried to use shp2img with these results:</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----------------------------------------------------------------------------</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[root@redhat cs]#
/dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665
2492415 4511455<BR>[Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0
(Confini_comunali), 0.040s<BR>[Mon Dec 6 07:24:41 2004].893212
msDrawMap(): Layer 1 (Base_cartografica), 4.145s<BR>[Mon Dec 6 07:24:41
2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s<BR>[Mon Dec 6
07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico),
0.010s<BR>Segmentation fault</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----------------------------------------------------------------------------</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[root@redhat cs]#
/dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665
2492415 4511455 -l Elementi_stradali<BR>Segmentation
fault</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----------------------------------------------------------------------------</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When shp2img processes the "bad"
layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without
a more explicit error message.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I launched the following
command (where "road_elements.shp" is the probably bad
shapefile):</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[root@redhat cat_strade]# ogrinfo
-al road_elements.shp -spat 2491361 4510665 2492415
451145</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It returns a 85 Kb output with
apparently no detected errors.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">How can I understand where the
error lies?</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is there a more powerful debug
tool?</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thank you,</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
Daniele</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P></DIV></DIV><BR>
<P><FONT size=2>---<BR>Incoming mail is certified Virus Free.<BR>Checked by
AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.804 / Virus
Database: 546 - Release Date: 2004-11-30<BR></FONT></P><BR>
<P><FONT size=2>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by
AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.804 / Virus
Database: 546 - Release Date:
2004-11-30<BR></FONT></P></BLOCKQUOTE></BODY></HTML>