[Mapserver-users] WFS / Got HTTP status 500 downloading WFS layer when layer outside current view

François-Xavier Prunayre fx.prunayre at oieau.fr
Wed Mar 17 03:55:02 PST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0132_01C40C1F.101CD120
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello, I am having problems using WFS. Everything works fine (zoom in / pan=
) but when one of my WFS layer is entirely outside the current view, the WF=
S server crashes and the WFS client return :Error is msDrawMap(): Image han=
dling error. Failed to draw layer named 'STATION_FR_WFS'.=20
msWFSLayerWhichShapes(): WFS connection error. Got HTTP status 500 download=
ing WFS layer STATION_FR_WFS
msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with s=
tatus 500 () for
http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?map=3Df:/apache/html/eden/e=
den/eden/data/iow/htdocs/iow-wfs.map&=20

Any ideas ? Thanks a lot.Francoismapserv_41.exe -v
MapServer version 4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP=
 OUTPUT=3DPDF O
UTPUT=3DSWF SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPO=
RTS=3DWMS_CLIEN
 SUPPORTS=3DWFS_SERVER SUPPORTS=3DWFS_CLIENT INPUT=3DOGR INPUT=3DGDAL INPUT=
=3DSHAPEFILE______________________________________________WFS client mapfil=
e for the layer______________________________________________
	LAYER
		NAME "STATION_FR_WFS"
		TYPE POINT
		STATUS DEFAULT
		CONNECTIONTYPE WFS
		CONNECTION "http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?map=3Df:/apac=
he/html/eden/eden/eden/data/iow/htdocs/iow-wfs.map&"
		PROJECTION
			"init=3Depsg:27582"=09
		END
		    METADATA
		      "wfs_version" "1.0.0"
		      "wfs_service" "WFS"
		      "wfs_typename" "STATION_FR"
		      "wfs_latlonboundingbox" "0 40 10 55"
		      #"wfs_latlonboundingbox" "-3.41839 44.3575 8.06537 50.9826"
		    END
=09=09=20=20=20=20
		    CLASS
		      SYMBOL 'circle'
			SIZE 10
		      COLOR 255 5 0
		    END
	END
______________________________________________WFS server mapfile___________=
___________________________________#
# Start of map file
#
NAME IOW-WFS
STATUS ON
SIZE 400 300
EXTENT 0 1600000 1300000 2700000
#EXTENT 0 40 10 55
UNITS METERS
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
#DEBUG on


#
# Start of web interface definition
#
WEB
  IMAGEPATH "f:/apache/html/eden/eden/tmp/"=20
  IMAGEURL "/eden/eden/tmp/"
   LOG "f:/apache/mapservEdenWfsIow.log"=20
=20
  METADATA
    "wms_title"		"IOW-WMS-SERVER"
    "wms_onlineresource" "http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?m=
ap=3Df:/apache/html/eden/eden/eden/data/iow/htdocs/iow-wfs.map&service=3DWM=
S"
    "wfs_title"		"IOW-WFS-SERVER"
    "wfs_onlineresource" "http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?m=
ap=3Df:/apache/html/eden/eden/eden/data/iow/htdocs/iow-wfs.map&service=3DWF=
S"
    "wfs_srs"		"EPSG:27582 EPSG:4326"
  END
END

PROJECTION
  "init=3Depsg:27582"
#  "init=3DEPSG:4326"
END


SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END



LAYER
  NAME STATION_FR
  METADATA
    "wfs_title"	   "STATION FR"
    "wms_title"	   "STATION FR"
  END

  TYPE POINT
  STATUS ON
  DATA stations
  PROJECTION
    "init=3Depsg:27582"
  END
  DUMP TRUE

	CLASS
		TEMPLATE "ttt_query.html"
		SYMBOL "circle"
		SIZE 6
		NAME "STATION_FR"
		OUTLINECOLOR 239 16 16
	END

	#CLASSITEM "STATION"=20
  TOLERANCE 5
END # Layer


END # Map File
_____________________________________________Fran=E7ois-Xavier PrunayreGIS =
Engineer / International Office for WaterWeb IOW : www.oieau.orgWeb RNDE : =
www.rnde.tm.fr
--=20
Ce message a ete verifie par MailScanner pour des virus ou des polluriels e=
t rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, con=
fidentiels et prives. Toute publication, utilisation ou diffusion, meme par=
tielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, con=
fidential and secret. Any total or partial publication, use or distribution=
 must be authorized.


------=_NextPart_000_0132_01C40C1F.101CD120
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><PRE><FONT face=3DArial size=3D2>Hello, </FONT></PRE><PRE><FONT face=
=3DArial size=3D2>I am having problems using WFS. Everything works fine (zo=
om in / pan) but when one of my WFS layer is entirely outside the current v=
iew, the WFS server crashes </FONT><FONT face=3DArial size=3D2>and the WFS =
client return :</FONT></PRE><PRE><FONT face=3DArial size=3D2>Error is </FON=
T><FONT size=3D2><FONT face=3DArial>msDrawMap(): Image handling error. Fail=
ed to draw layer named 'STATION_FR_WFS'.=20
msWFSLayerWhichShapes(): WFS connection error. Got HTTP status 500 download=
ing WFS layer STATION_FR_WFS
msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with s=
tatus 500 () for
http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?map=3Df:/apache/html/eden/e=
den/eden/data/iow/htdocs/iow-wfs.map&=20
</FONT>
<FONT face=3DArial>Any ideas ? </FONT></FONT></PRE><PRE><FONT face=3DArial =
size=3D2>Thanks a lot.</FONT></PRE><PRE><FONT face=3DArial size=3D2>Francoi=
s</FONT></PRE><PRE><FONT face=3DArial size=3D2>mapserv_41.exe -v
MapServer version 4.1 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP=
 OUTPUT=3DPDF O
UTPUT=3DSWF SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPO=
RTS=3DWMS_CLIEN
 SUPPORTS=3DWFS_SERVER SUPPORTS=3DWFS_CLIENT INPUT=3DOGR INPUT=3DGDAL INPUT=
=3DSHAPEFILE</FONT></PRE><PRE><PRE><FONT face=3DArial size=3D2>____________=
__________________________________</FONT></PRE><PRE><PRE><FONT face=3DArial=
 size=3D2>WFS client mapfile for the layer</FONT></PRE><PRE><FONT face=3DAr=
ial size=3D2>______________________________________________
	LAYER
		NAME "STATION_FR_WFS"
		TYPE POINT
		STATUS DEFAULT
		CONNECTIONTYPE WFS
		CONNECTION "http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?map=3Df:/apac=
he/html/eden/eden/eden/data/iow/htdocs/iow-wfs.map&"
		PROJECTION
			"init=3Depsg:27582"=09
		END
		    METADATA
		      "wfs_version" "1.0.0"
		      "wfs_service" "WFS"
		      "wfs_typename" "STATION_FR"
		      "wfs_latlonboundingbox" "0 40 10 55"
		      #"wfs_latlonboundingbox" "-3.41839 44.3575 8.06537 50.9826"
		    END
=09=09=20=20=20=20
		    CLASS
		      SYMBOL 'circle'
			SIZE 10
		      COLOR 255 5 0
		    END
	END
______________________________________________</FONT></PRE></PRE><PRE><FONT=
 face=3DArial size=3D2>WFS server mapfile</FONT></PRE><PRE><FONT face=3DAri=
al size=3D2>______________________________________________</FONT></PRE><PRE=
><FONT face=3DArial size=3D2></FONT> </PRE><PRE><FONT face=3DArial siz=
e=3D2>#
# Start of map file
#
NAME IOW-WFS
STATUS ON
SIZE 400 300
EXTENT 0 1600000 1300000 2700000
#EXTENT 0 40 10 55
UNITS METERS
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
#DEBUG on


#
# Start of web interface definition
#
WEB
  IMAGEPATH "f:/apache/html/eden/eden/tmp/"=20
  IMAGEURL "/eden/eden/tmp/"
   LOG "f:/apache/mapservEdenWfsIow.log"=20
=20
  METADATA
    "wms_title"		"IOW-WMS-SERVER"
    "wms_onlineresource" "http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?m=
ap=3Df:/apache/html/eden/eden/eden/data/iow/htdocs/iow-wfs.map&service=
=3DWMS"
    "wfs_title"		"IOW-WFS-SERVER"
    "wfs_onlineresource" "http://127.0.0.1:8080/cgi-bin/mapserv_41wfs.exe?m=
ap=3Df:/apache/html/eden/eden/eden/data/iow/htdocs/iow-wfs.map&service=
=3DWFS"
    "wfs_srs"		"EPSG:27582 EPSG:4326"
  END
END

PROJECTION
  "init=3Depsg:27582"
#  "init=3DEPSG:4326"
END


SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END



LAYER
  NAME STATION_FR
  METADATA
    "wfs_title"	   "STATION FR"
    "wms_title"	   "STATION FR"
  END

  TYPE POINT
  STATUS ON
  DATA stations
  PROJECTION
    "init=3Depsg:27582"
  END
  DUMP TRUE

	CLASS
		TEMPLATE "ttt_query.html"
		SYMBOL "circle"
		SIZE 6
		NAME "STATION_FR"
		OUTLINECOLOR 239 16 16
	END

	#CLASSITEM "STATION"=20
  TOLERANCE 5
END # Layer


END # Map File
</FONT></PRE></PRE><PRE><FONT face=3DArial size=3D2>_______________________=
______________________</FONT></PRE><PRE><FONT face=3DArial size=3D2>Fran=E7=
ois-Xavier Prunayre<BR>GIS Engineer / International Office for Water</FONT>=
</PRE><PRE><FONT face=3DArial size=3D2>Web IOW : </FONT><A href=3D"http://w=
ww.oieau.org"><FONT face=3DArial size=3D2>www.oieau.org</FONT></A><BR><FONT=
 face=3DArial size=3D2>Web RNDE : </FONT><A href=3D"http://www.rnde.tm.fr">=
<FONT face=3DArial size=3D2>www.rnde.tm.fr</FONT></A></PRE></DIV></BODY><br=
 />--=20
<br />Ce message a ete verifie par <a href=3D"http://www.mailscanner.info/"=
><b>MailScanner</b></a>
pour des virus ou des polluriels et rien de suspect n'a ete trouve.
<DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV>
Les donnees et renseignements contenus dans ce message sont personnels, con=
fidentiels et priv=E9s.Toute publication, utilisation ou diffusion, meme pa=
rtielle, doit etre autorisee.
<DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV>
Any data and information contained in this electronic mail is personal, con=
fidential and private. Any total or partial publication, use or distributio=
n must be authorized.
</HTML>

------=_NextPart_000_0132_01C40C1F.101CD120--




More information about the MapServer-users mailing list