WMS-WFS chaining (bug?)
Eijnden, Bart van den (AGI)
b.vdeijnden at AGI.RWS.MINVENW.NL
Wed Jun 28 00:29:44 PDT 2006
Barend,
I checked the source code briefly (mapwfslayer.c), and there is the following note:
* Revision 1.34 2005/04/22 15:47:10 assefa
* Bug 1302: the wfs/ows_service parameter is not used any more. The
* service is always set to WFS for WFS layers.
So it's time to upgrade indeed ....
Alternatively you could have used (so you do not need to add service=WFS to your CONNECTION which indeed is not recommended at all):
LAYER
..
METADATA
..
wfs_service "WFS"
..
END
END
Best regards,
Bart
-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Barend Köbben
Verzonden: dinsdag 27 juni 2006 17:13
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] WMS-WFS chaining (bug?)
Hi,
I found a strange / undocumented feature when trying to chain a Mapserver WMS service with a MapServer WFS. Both are using 4.2.2.
In the WMS map configuration, I defined the layer that was to come from the WFS as follows (following the HowTo on the website):
...
LAYER
NAME airports
TYPE POINT
STATUS ON
CONNECTIONTYPE WFS
CONNECTION "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/wfs_config.map&"
METADATA
"wfs_typename" "airportsWFS"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "60"
"wfs_maxfeatures" "100"
END
...
But this yielded an error message that went:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msBuildWFSLayerGetURL(): WFS connection error. Metadata wfs_service must be set in the layare
</ServiceException>
</ServiceExceptionReport>
Cryptic message, and it took me a looooong time to find that it DID work when I added SERVICE=WFS to the CONNECTION string, although the HowTo states that adding such things there is deprecated...
...
CONNECTION "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/wfs_config.map&&SERVICE=WFS&"
...
You can try it out yourself at http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/chain_config.map&&VERSION=1.1.1&REQUEST=GetMap&LAYERS=world,airports&SRS=EPSG:4326&BBOX=97,5,106,21&WIDTH=600&HEIGHT=800&FORMAT=image/png
Is this a bug, or does it mean it's time to upgrade my Mapserver, or....?
--
Barend Köbben
International Institute for Geo-information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede (The Netherlands)
ph: +31 (0)53 4874253; fax: +31 (0)53 4874335
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
More information about the MapServer-users
mailing list