[mapserver-users] Need mapfile example for Cascaded WMS GetFeatureInfo request

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Wed Sep 5 14:34:47 PDT 2018


Daniel,

Some more info, found the Function throwing the error (I think <https://github.com/DMS-Aus/MapServer/blob/master/mapwms.c>), looks like your description is correct . . .




/* -------------------------------------------------------------------- */
/* check if all layers selected are queryable. If not send an */
/* exception. */
/* -------------------------------------------------------------------- */

/* If a layer of type WMS was found... all layers have to be of that type and with the same connection */
for (i=0; i<map->numlayers; i++) {
if (GET_LAYER(map, i)->status == MS_ON) {
if (!msIsLayerQueryable(GET_LAYER(map, i))) {
msSetError(MS_WMSERR, "Requested layer(s) are not queryable.", "msWMSFeatureInfo()");
return msWMSException(map, nVersion, "LayerNotQueryable", wms_exception_format);
} else if (wms_layer == MS_TRUE) {
if ( (GET_LAYER(map, i)->connectiontype != MS_WMS) || (strcasecmp(wms_connection, GET_LAYER(map, i)->connection) != 0) ) {
msSetError(MS_WMSERR, "Requested WMS layer(s) are not queryable: type or connection differ", "msWMSFeatureInfo()");
return msWMSException(map, nVersion, "LayerNotQueryable", wms_exception_format);
}
++numOWSLayers;
}
}
}


bobb

On Sep 5, 2018, at 4:21 PM, Basques, Bob (CI-StPaul) <bob.basques at ci.stpaul.mn.us<mailto:bob.basques at ci.stpaul.mn.us>> wrote:

Hi Daniel,

All remote layers originate as separate WMS services, and all are housed on the same server.  All are serving up HTML fragments for the GetFeatureInfo.  And they all work individually.

All request structure is the same.  The cascaded service Mapfile is script built, so all the requests are using the same settings for format and other params where the same.

A couple of sample layer defs in the Cascaded Mapfile are included below:







bobb





"A rocket will never be able to leave the earth's atmosphere."  --The New York Times, 1936

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180905/6906b185/attachment.htm>


More information about the MapServer-users mailing list