[OpenLayers-Users] WMS server error. Requested layer(s) are not
queryable.
Christopher Schmidt
crschmidt at metacarta.com
Sat Sep 19 13:03:53 EDT 2009
On Fri, Sep 18, 2009 at 09:12:12PM -0500, P Kishor wrote:
> On Fri, Sep 18, 2009 at 6:51 PM, Christopher Schmidt
> <crschmidt at metacarta.com> wrote:
> > 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?
>
>
> I do not have a template for that layer. I did not realize it was
> needed, somehow thinking that a default field: value template was
> "cooked" up by OL's ajax code. I will make one and try again (although
> I am not even sure what to put in that template). That said, my
> MapServer is reporting that the layer is not queryable, as shown
> above. Is that because there is no template,
Yes.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list