[OpenLayers-Users] WMS server error. Requested layer(s) are not queryable.

Christopher Schmidt crschmidt at metacarta.com
Fri Sep 18 19:51:09 EDT 2009


On Fri, Sep 18, 2009 at 04:11:30PM -0500, P Kishor wrote:
> Inspired by a recent post, I decided to implement WMSGetFeatureInfo
> using the code in the OL examples. However, I am getting the following
> error
> 
> <ServiceException code="LayerNotQueryable">
> msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable.
> </ServiceException>
> 
> My backend server is MapServer, and per another archived email, I have
> my LAYER definition in the mapfile tagged with DUMP true
> 
>     LAYER
>         NAME 'cds_stands'
>         TYPE polygon
> 
>         CONNECTIONTYPE postgis
>         CONNECTION "..."
>         DATA 'the_geom FROM cds_stands'
> 
>         STATUS on
>         DUMP true

You don't have a 'template' in that layer paste. Is there one configured
on the layer?
-- Chris

>         ..
> 
> Once I solve the above, I have a follow-up question -- the examples of
> WMSGetFeatureInfo I have seen in the wild either don't specify any
> layers at all (which, I believe, implies that all layers will be
> queried at the point of click) or specify a layer in the code via
> 
> layers: [layer1 layer2 ...],
> 
> 
> How would I build a widget that allows the user choose which layer to query?
> 
> 
> -- 
> Puneet Kishor
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list