Hi all,
in the last weeks we detected a strange behaviour of Mapfiles called via WMS GetMap which contains several WMS Client Layers. The WMS Client Layers contains a WMS_connectiontimeout and exception type is defined as inimage. The wms Client layers are combined with several other local or further WMS Client layers. The problem is, that the processing of the complete mapfile breaks if one of the wms clients try to get its data from a remote server which is out of order or to busy or crashed while processing the request. All further requested layers are not processed afterwards. I guess that if the wms client request failed the processing should go on with the other layers. But sometimes it stops. Any idea how to find the reason for this problem. I will try to debug the corresponding calls in mapows.c but maybe somebody had similar problems and found a solution. Find below an example. (Mapserver Verison 4.6.x, Debian Sarge, with Apache2)
Thanks for any help,
Peter


# Verion 051024 14:14 pf

# MapMedia/pf 051024

NAME "webFIS_DNMplot"
STATUS ON
SIZE 600 600
MAXSIZE 6000
#EXTENT 3240000 5680000 3490000 5950000
EXTENT 3226000 5679000 3506000 5946000
UNITS METERS
#SHAPEPATH "../data"
FONTSET "../htdocs/etc/fonts/fonts.txt"
SYMBOLSET "../htdocs/etc/symbols/symbols.sym"
IMAGETYPE "png"
OUTPUTFORMAT
   NAME "png"
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB #(oder RGBA oder RGB) if GDAL is available
   EXTENSION "png"
   FORMATOPTION "INTERLACE=ON"
END
IMAGECOLOR 255 255 245
TRANSPARENT ON
PROJECTION
"init=epsg:25833" #PROJECTION "ETRF89 / UTM Zone 33" with modified x_0 of 3500000
END

# ----------------------------------------------------------------
# die Web-Schnittstelle
# ----------------------------------------------------------------

WEB
   IMAGEPATH "/var/www/ms_tmp/"
   IMAGEURL "/ms_tmp/"
   LOG "webfis.log"
   METADATA
       "wms_title"           "Plotdienst_webFIS_LGB"
   "wms_abstract"        "Druckservice"
   "wms_onlineresource"  "http://piggy/cgi-bin/fis_dnmplot.cgi?";
   "wms_srs"             "EPSG:25833"
   "wms_fees"            "keine"
   "wms_feature_info_mime_type" "text/plain"
   END
END

# ----------------------------------------------------------------
# die Maßstabsleiste
# ----------------------------------------------------------------

# Die Maszstabsleiste wird in die Karte eingebettet, weil es keinen
# WMS-Aufruf gibt, der eine separate Maszstabsleiste zurckliefert.
# Kann bei Bedarf UMN-proprietaer als gesonderte Grafik aufgerufen
# und in die Oberflaeche eingebunden werden (nicht im Piloten)

SCALEBAR
   TRANSPARENT ON
   IMAGECOLOR 255 0 255
   INTERLACE ON
   STYLE 0
   SIZE 200 3
   COLOR 255 255 255
   BACKGROUNDCOLOR 0 0 0
   OUTLINECOLOR 0 0 0
   UNITS kilometers
   INTERVALS 5
   LABEL
    COLOR 0    0 0
    SIZE SMALL
   END
   STATUS OFF #ON, OFF or EMBED
   #POSTLABELCACHE TRUE #for embedded legend
TRANSPARENT ON #might be set to off in case of embedded legend
   #POSITION ll #in    case of    embedded legend
END

#so the get LegendGraphic Calls will return some images
LEGEND
   IMAGECOLOR 255 255 255
   OUTLINECOLOR 0 0 0
   KEYSIZE  30 25
   KEYSPACING 5 5
   INTERLACE ON
   LABEL
       TYPE TRUETYPE
       FONT "Arial"
       POSITION CC
       SIZE 10
       ANTIALIAS TRUE
       COLOR 0 0 0
   END
   STATUS ON #ON, OFF or EMBED
   #POSTLABELCACHE TRUE    #for embedded legend
TRANSPARENT ON #might be set to off in case of embedded legend
   #POSITION LR    #in    case of    embedded legend
END
# ----------------------------------------------------------------
# die Layer
# ----------------------------------------------------------------

#
#"http://umnwmsserver/ows/dnm25sw.php?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&BBOX=3375000,5785000,3385000,5795000&WIDTH=580&HEIGHT=580&FORMAT=image/png&LAYERS=land,ort,wald,gruen,lwas,fwas,ebahn,str,nort&STYLES=default";);
LAYER
 NAME "LGB25plot"
 #GROUP "DNMplot"
 TYPE RASTER
 STATUS ON
 CONNECTIONTYPE WMS
 CONNECTION "http://umnwmsserver/ows/plot_dnm25.php?";
 METADATA
   "wms_title"             "LGB25plot"
   #"wms_group_title"       "DNMplot"
   "wms_server_version"    "1.1.1"
   "wms_srs"               "EPSG:25833"
"wms_name" "land,ort,wald,gruen,lwas,fwas,ebahn,str,haus,nfwas,nort"
   "wms_format"            "image/png"
   "wms_connectiontimeout" "60"
 END
 CLASS
     NAME "DNM25plot"
 END
 PROJECTION
   "init=epsg:25833"
 END
END

# ----------------------------------------------------------------
# die Layer für die Kartengestaltung
# ----------------------------------------------------------------
#WMS Raster:http://umnwmsserver/ows/dnmbs.php?SERVICE=WMS&REQUEST=GetCapabilities #WFS Vektor:http://umnwmsserver/ows/dnmbs.php?SERVICE=WFS&REQUEST=GetCapabilities
LAYER
 # Blattschnitt der Topographische Karte 1:25.000
#"http://umnwmsserver/ows/dnmbs.php?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&BBOX=3226000,5679000,3506000,5946000&WIDTH=800&HEIGHT=800&FORMAT=image/png&LAYERS=tk25,ntk25&STYLES=default";
 NAME "Blattschnitt_TK50"
 TYPE RASTER
 STATUS ON
 CONNECTIONTYPE WMS
 CONNECTION "http://umnwmsserver/ows/plot_dnmbs.php?";
 METADATA
   "wms_title"             "Blattschnitt_TK50"
   "wms_abstract"          "Blattschnitt der TK50"
   "wms_server_version"    "1.1.1"
   "wms_srs"               "EPSG:25833"
   "wms_name"              "tk50,ntk50"
   "wms_format"            "image/png"
   "wms_transparent"       "TRUE"
   "wms_exception"         "INIMAGE"
   "wms_connectiontimeout" "60"
 END
 CLASS
     NAME "BS50"
 END
 PROJECTION
   "init=epsg:25833"
 END
END
LAYER
#"http://umnwmsserver/ows/gitter.php?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&BBOX=3226000,5679000,3506000,5946000&WIDTH=800&HEIGHT=800&FORMAT=image/png&LAYERS=lin,crx,txt&STYLES=default";
 #crx, Gitterkreuze
 #lin, Gitterlinien
 #txt, Beschriftung
 NAME "grid1000_2000"
 TYPE RASTER
 STATUS ON
 CONNECTIONTYPE WMS
 CONNECTION "http://umnwmsserver/ows/g2.php?";
 #CONNECTION "http://umnwmsserver/ows/gitter.php?";
 METADATA
   "wms_title"             "grid1000_2000"
"wms_abstract" "Koordinatengitter UTM-GRS80 mit einem Maschenweite von 1000m"
   "wms_server_version"    "1.1.1"
   "wms_srs"               "EPSG:25833"
   "wms_name"              "lin,lin,lin,crx"
   "wms_format"            "image/png"
"wms_styles" "LGBhl:1000:1000,LGBzl_plot:2000:2000,LGBhl_plot:1000:1000,default"
   "wms_transparent"       "TRUE"
   "wms_exception"         "INIMAGE"
   "wms_connectiontimeout" "60"
 END
 CLASS
     NAME "grid1000_2000"
 END
 PROJECTION
   "init=epsg:25833"
 END
END
#######################################################################################################################
# and now our own WMS and WFS Services based on the NivP and TP Database
#######################################################################################################################

#######################################################################################################################
# TP Database; TP-akt,TP-Exz-akt,TP-ugg,TP-Exz-ugg,TP-Exz-VL-ugg,TP-Exz-VL-akt
#######################################################################################################################
LAYER
   NAME "TP-Exz-VL-akt"
   #GROUP "TP"
   METADATA
       "wms_title" "TP-Exz-VL-akt"
       "wms_srs" "EPSG:25833"
       "wms_extent" "3240000 5680000 3490000 5950000"
   END
   TYPE LINE
   STATUS ON
   #REQUIRES "![TP-Exz-akt]"
   CONNECTIONTYPE MYGIS
   CONNECTION "localhost:hallo:hallo:festpunkte:num"
DATA "geometry from et89_line1_feature as feature, et89_line1_num as geometry"
   FILTER "pst=0 AND exzent>0"
   MINSCALE 2500
   MAXSCALE 100000
   CLASS
       NAME "TP-Exz-VL-akt"
       STYLE
           SYMBOL "punkt1_1"
           COLOR  177 103 177
           SIZE 6
       END
   END
   PROJECTION
"init=epsg:25833" #PROJECTION "ETRF89 / UTM Zone 33" with modified x_0 of 3500000
   END
END
LAYER
   NAME "TP-Exz-VL-ugg"
   #GROUP "TP"
   METADATA
       "wms_title" "TP-Exz-VL-ugg"
       "wms_srs" "EPSG:25833"
       "wms_extent" "3240000 5680000 3490000 5950000"
   END
   TYPE LINE
   STATUS ON
   #REQUIRES "![TP-Exz-ugg]"
   CONNECTIONTYPE MYGIS
   CONNECTION "localhost:hallo:hallo:festpunkte:num"
DATA "geometry from et89_line1_feature as feature, et89_line1_num as geometry"
   FILTER "pst=1 AND exzent>0"
   MINSCALE 2500
   MAXSCALE 100000
   CLASS
       NAME "TP-Exz-VL-ugg"
       STYLE
           SYMBOL "punkt1_1"
           COLOR 207 150 207
           SIZE 6
       END
   END
   PROJECTION
"init=epsg:25833" #PROJECTION "ETRF89 / UTM Zone 33" with modified x_0 of 3500000
   END
END
...
END # of mapfile

--
Mit freundlichem Gruß

Peter Freimuth
_________________________________________________
MapMedia GmbH
Kartographie und raumbezogene Informationssysteme

Heilbronner Straße 10
D-10711 Berlin Charlottenburg

fon:  +49.(0)30.89 06 82 70
fax:  +49.(0)30.89 06 82 73
mail: [EMAIL PROTECTED]
net:  www.mapmedia.de
pgp:  on demand
_________________________________________________

Reply via email to