MapServer GetFeatureinfo: Geoserver Cascading problems
Fabio D'Ovidio
dovidio at PLANETEK.IT
Tue Jun 5 09:05:01 PDT 2007
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
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WPM$1966.PM$
Type: application/octet-stream
Size: 28328 bytes
Desc: Mail message body
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070605/2ba0c133/attachment.obj>
More information about the MapServer-users
mailing list