[UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error
Daniele Margotti
margottid at COMUNE.LUGO.RA.IT
Tue Dec 7 07:08:52 PST 2004
I'm sure of the two styles definition, because I want a blue line with a
black border (see
http://www.mapmedia.de/dokumente/umn_signaturen_howto/).
I also removed MAXSCALE, and I can see the entire map (but this appened
also before removing MAXSCALE).
When I zoom to certain portions of the map, I have the internal server
error.
So, I think that the problem is the shapefile, but what tools can I use
for being sure of it?
(BTW, the shapefile is managed by a colleague, who uses ArcView and, for
him, all seems good).
Daniele
-----Messaggio originale-----
Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com]
Inviato: martedì 7 dicembre 2004 15.32
A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU
Oggetto: RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal
Server Error
Are you sure of the two styles definition in your layer? Try to remove
your MAXSCALE and load the entire map. If this layer is actually the
problem, you should have an internal server error.
Skweda O'Bomsawin
-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De
la part de Daniele Margotti
Envoyé : 7 décembre 2004 05:33
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server
Error
Here is it:
------------------------------------------------------------------------
----
LAYER #Elementi stradali
NAME "Elementi_stradali"
GROUP "A - Catasto delle strade"
DATA "./cat_strade/road_elements.shp"
TYPE line
STATUS on
CLASSITEM "ID_LINE"
MAXSCALE 50000
MINSCALE 0
TRANSPARENCY 100
TRANSFORM true
SYMBOLSCALE 2000
HEADER "./templates/nocsup_re_header.html"
FOOTER "./templates/nocsup_re_footer.html"
METADATA
"Oggetto" "Elementi stradali"
"Data creazione" "03/03/2004"
gix_layername "Elementi_stradali"
gix_layerfieldnames
"LAYER|ID_DATASET|ID_LINE|SPLIT|CLASS|ID_EDGE|FROMP|TOP|SOURCE|UFFICIALE
|CONVENZION|PROPRIETAR|GESTORE|AMMINISTRA|TECNICO|LUNGHEZZA|DIVISIONE|DI
REZIONE|DENOMIN|PERCORSO|"
gix_layerfieldalias
"Layer|Id_dataset|Id_line|Split|Class|Id_edge|Fromp|Top|Source|Ufficiale
|Convenzion|Proprietar|Gestore|Amministra|Tecnico|Lunghezza|Divisione|Di
rezione|Denomin|Percorso|"
wms_abstract "fiorea Elementi stradali ** Gix
Generated MapFile"
wms_title "Elementi stradali"
wms_srs "NONE"
END
CLASS
NAME 'Road elements'
TEMPLATE "./templates/nocsup_re_query.html"
STYLE
COLOR 0 0 0
SYMBOL "punto"
SIZE 4
ANTIALIAS TRUE
END
STYLE
COLOR 0 0 255
SYMBOL "punto"
SIZE 2
ANTIALIAS TRUE
END
END #CLASS
END # LAYER
------------------------------------------------------------------------
----
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.
Daniele
-----Messaggio originale-----
Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com]
Inviato: lunedì 6 dicembre 2004 15.30
A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU
Oggetto: RE : [UMN_MAPSERVER-USERS] Internal Server Error
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?
Skweda O'Bomsawin
-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De
la part de Daniele Margotti
Envoyé : 6 décembre 2004 07:35
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] Internal Server Error
Hi list,
I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50:
<!-- 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 -->
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.
I think the problem is due to the shapefile (or a part of it), but...
how can I be sure of it?
The browser only show the "Internal Server Error" page.
The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client
172.16.20.4] Premature end of script headers: mapserv"
I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map
section of the mapfile, and tried to use shp2img with these results:
------------------------------------------------------------------------
----
[root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o
/dati/daniele.png -e 2491361 4510665 2492415 4511455
[Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0
(Confini_comunali), 0.040s
[Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1
(Base_cartografica), 4.145s
[Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s
[Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico),
0.010s
Segmentation fault
------------------------------------------------------------------------
----
[root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o
/dati/daniele.png -e 2491361 4510665 2492415 4511455 -l
Elementi_stradali
Segmentation fault
------------------------------------------------------------------------
----
When shp2img processes the "bad" layer ('Elementi_stradali'), it exits
with a 'Segmentation fault' and without a more explicit error message.
I launched the following command (where "road_elements.shp" is the
probably bad shapefile):
[root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361
4510665 2492415 451145
It returns a 85 Kb output with apparently no detected errors.
How can I understand where the error lies?
Is there a more powerful debug tool?
Thank you,
Daniele
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041207/253270fa/attachment.htm>
More information about the MapServer-users
mailing list