Hi, When it comes to the WFS case, one obvious problem is that both MapServer and GeoServer support only version 1.0.0. -Jukka Rahkonen-
-----Original Message----- From: UMN MapServer Users List on behalf of Fabio D'Ovidio Sent: Tue 5.6.2007 19:05 To: [email protected] Subject: [UMN_MAPSERVER-USERS] MapServer GetFeatureinfo: Geoserver Cascading problems I have a problem in querying my layer from MapServer during a GetFeatureinfo request in a cascading configuration with GeoServer, both WMS and WFS (on the same Layer). This is my Map file __________________________________ MAP NAME "WMS-test" STATUS ON SIZE 550 250 SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" EXTENT -130 24 -66 50 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:42304" END LAYER # MapServer connects to GeoServer via WMS NAME "Sensore" TYPE POINT STATUS ON CONNECTIONTYPE WMS CONNECTION "http://myserver/geoserver/wms?service=wms& version=1.1.1&bbox=-130,24,66,50&styles=population& Format=image/png&request=GetMap&layers=topp:states& width=550&height=250&srs=EPSG:4326" METADATA "wms_title" "Sensore" END PROJECTION "init=epsg:4326" END TOLERANCE 1000 CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 15 END END END # Map File __________________________________________________________________ This is the GetFeatureInfo to MapServer http://localhost/wwwroot/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& bbox=-130,24,-66,50&request=GetFeatureInfo& layers=sensore&query_layers=sensore&width=550&height=250& x=170&y=160&version=1.1.1 This is the error: _____________________________________ <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException> </ServiceException> </ServiceExceptionReport> ______________________________________ This is the same Map File with a WFS connection to the same layer described above: __________________________________________________________ MAP NAME "WMS-test" STATUS ON SIZE 550 250 SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" EXTENT -130 24 -66 50 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:42304" END LAYER # MapServer connects to GeoServer via WFS NAME "Sensore" TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION "http://myserver/geoserver/wfs? request=GetFeature&typeName=states" METADATA "wms_title" "Sensore" END PROJECTION "init=epsg:4326" END TOLERANCE 1000 CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 15 END END END # Map File ________________________________________________________ This is the GetFeatureInfo (to MapServer) _____________________________________ http://localhost/wwwroot/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& bbox=-130,24,-66,50&request=GetFeatureInfo& layers=sensore&query_layers=sensore&width=550&height=250& x=170&y=160&version=1.1.1 ____________________________________ This is the error: _____________________________________ <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException> msOGRFileOpen(): OGR error. Open failed for OGR connection `/ms4w/tmp/ms_tmp/0354675c1cc6eff953c62e12e7c8aedc.tmp.gml'. File not found or unsupported format. msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). </ServiceException> </ServiceExceptionReport> What's wrong? Thanks -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 [EMAIL PROTECTED] - http://www.planetek.it --
