WMS GetFeatureInfo

Milo van der Linden mlinden at ZEELANDNET.NL
Thu Jan 31 01:50:52 PST 2008


Hello Bart,

I think that is what I already did. Instead of feature_info_mime_type, I 
got wms_feature_mime_type; can that be a typo?
I added feature_info_mime_type to the web section to test, but there is 
no effect, still no featureinfo. I am also posting on the flamingo-mc 
forum to see if they got some suggestions.

In the Map section I got:
 
---- snippet ----
WEB
    IMAGEPATH 'E:/maptemp/'
    IMAGEURL '/ms_tmp/'
    HEADER "./templates/query_header.html"
    FOOTER "./templates/query_footer.html"

    METADATA
      "wms_title" "Bouwfonds - Digitale kaart"
      "wms_onlineresource" 
"http://www.xx.xx/cgi-bin/mapserv.exe?map=E:\\mapconfig\\bouwfonds.map"
      "wms_srs" "EPSG:4326 EPSG:28992"
      "ows_schemas_location" "http://schemas.opengis.net"
      "wms_feature_mime_type" "application/vnd.ogc.gml"
    END
  END

And for my Layer:

---- snippet ----
LAYER
    NAME 'percelen'
    TYPE POLYGON
    DUMP TRUE
    TEMPLATE 'ttt'
    DATA '.\mapdata\rga\percelen_laag_poly_merged.shp'
    METADATA
      "wms_title" "percelen"
      "wms_srs" "EPSG:28992"
      "gml_featureid" "id"
      "gml_include_items" "all"
    END
    STATUS ON
    TRANSPARENCY 100
    PROJECTION
     "init=epsg:28992"
    END
    CLASS
       NAME 'percelen'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 180 208 208
         #COLOR 180 208 208
       END
    END
  END


Bart van den Eijnden schreef:
> Milo,
>
> the WMS client determines the info_format. I assume QGIS is asking for 
> MIME or text/plain.
>
> You need to add the following METADATA to your layers:
>
> OWS_INCLUDE_ITEMS "all"
>
> Maybe even GML_INCLUDE_ITEMS "all" I am not sure. Give it a try.
>
> If Flamingo wants GML, it will request with 
> info_format=application/vnd.ogc.gml. If it doesn't you can probably 
> set the default/MIME format of Mapserver to this (METADATA at the WEB 
> level called feature_info_mime_type).
>
> Template can remain empty, I always TEMPLATE blank.html where 
> blank.html does not even exist on the filesystem.
>
> Best regards,
> Bart
>
> On Jan 30, 2008 5:48 PM, Milo van der Linden <mlinden at zeelandnet.nl 
> <mailto:mlinden at zeelandnet.nl>> wrote:
>
>     Hello list,
>
>     I have been spending 4 hours looking around the mapserver website and
>     various other resources but no luck.
>
>     As a Mapserver WMS client I am using flamingo-mc. flamingo-mc is
>     able to
>     perform a getFeatureInfo and requires gml as response.
>
>     For now I have some sort of response because with qGIS I get:
>     WMS identify result for 225, 337
>
>     ---------------
>
>     GetFeatureInfo results:
>
>     Layer 'percelen'
>
>     Feature 507:
>
>
>     But it is clearly no gml and I haven't set the fields from the
>     table to
>     be returned.
>
>     So:
>
>     - What do I have to put in my (currently empty) TEMPLATE file?
>     - Can I enter all the GML that I need to return in my TEMPLATE and
>     does
>     anyone have a sample for this?
>
>     - How can I make sure that the information returned is in the gml
>     mime-type?
>
>
>     Any help would be appreciated!
>
>     Kind regards,
>
>     Milo van der Linden
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080131/8a5d6d8e/attachment.htm>


More information about the MapServer-users mailing list