MapServer GetFeatureinfo: Geoserver Cascading problems

Fabio D'Ovidio dovidio at PLANETEK.IT
Wed Jun 6 04:33:16 EDT 2007


So, which is the problem with my WFS Connection string?

It is:  

http://myserver/geoserver/wfs?request=GetFeature&typeName=states

If I write the following GetFeatureinfo:

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

I have 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>
msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected 
output (junk?) for layer Sensore.
</ServiceException>
</ServiceExceptionReport>

so I've found 2 malfunctions:

- First one: I have to write typename and not typeName
- Second: I have specify the version in the request from MapServer even if the string without 
version parameter works fine directly on GeoServer.

Any solution ;-) ?


Bye


--
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 
dovidio at planetek.it - http://www.planetek.it 
--



On 5 Jun 2007 at 19:51, Rahkonen Jukka wrote:

> 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: MAPSERVER-USERS at LISTS.UMN.EDU
> 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 
> dovidio at planetek.it - http://www.planetek.it 
> --
> 



More information about the mapserver-users mailing list