Hi Barend,

Thanks. It's been a while since I last worked with UMN map server.

I must have been "blind" not to see the queryable="0" in the Capabilities response.

Your suggestions helped. All fine now!

Thanks a lot,

ANdreas

On 2022-05-20 09:18, Kobben, Barend (UT-ITC) wrote:

Your mMAP set up apparently is wrong, because contrary to what you think, the layer is NOT queryable:

<Layer queryable="0" opaque="0" cascaded="0">

<Name>cave_entrances</Name>

Usualy this means you have to set appropriate things in the .map file, such as

First, we have to prepare MapServer to actually be set up to respond to the request in a way the OpenLayers script can handle:

Edit your .map file. In each LAYER object you want to query, put the lines:

TOLERANCE 5

TOLERANCEUNITS pixels

In each LAYER object's METADATA put the extra line:

"wms_include_items" "all"

In each CLASS object put the extra line:

TEMPLATE "empty"

_-- _

_Barend Köbben_

On 20/05/2022, 09:10, "Qgis-user on behalf of Andreas Neumann via Qgis-user" <qgis-user-boun...@lists.osgeo.org on behalf of qgis-user@lists.osgeo.org> wrote:

Hi,

I am experimenting with a very simple/basic WMS served by UMN Mapserver.

For some reasons, GetFeatureInfo does not work, although it is "advertised" as available in the GetCapabilities reponse.

Here is the test service: http://159.100.248.156/cgi-bin/mapserv.fcgi?map=/home/ubuntu/umn_mapfiles/cave_entrances.map [1]

and a link to the GetCapabilities request

http://159.100.248.156/cgi-bin/mapserv.fcgi?map=/home/ubuntu/umn_mapfiles/cave_entrances.map&SERVICE=WMS&REQUEST=GetCapabilities

When I load this layer, i get the two points in the data set, but I can't query them. QGIS says "No feature found at this position" and in the network debugging session I see that no request is sent to the server.

Do you have any idea what might be wrong with this WMS service?

Thank you and greetings,

Andreas



Links:
------
[1] http://159.100.248.156/cgi-bin/mapserv.fcgi?map=/home/ubuntu/umn_mapfiles/cave_entrances.map
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to