[mapserver-users] no result with getFeatureInfo text/plain

Jörg Thomsen jt at mapmedia.de
Wed Jun 10 07:32:11 PDT 2015


Am 10.06.2015 um 16:22 schrieb Lars Schylberg:
> I think You should have a
> 
> "wms_include_items" "all"
> 
> in the LAYER METADATA section.

yeees, thanks! I thought 'ows_include_items' 'all' in the header should
be enough.

> Same comment as I had last week.
for last weeks problem this was not the solution.

Jörg


> /Lars
> 
> Jörg Thomsen skrev den 2015-06-10 16:00:
>> Hello,
>>
>> in my WMS getFeatureInfo works fine with info_format html [1] and gml,
>> but I don't get a result with text/plain [2]. And I found similar a
>> example on mapserver.org... [3] & [4].
>>
>> Why does getFeaturInfo for text/plain not work?
>>
>> [1]
>> http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100&
>>
>>
>> [2]
>> http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100&
>>
>>
>> [3]
>> http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280
>>
>>
>> [4]
>> http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280
>>
>>
>> Jörg
>>
>> and here's my mapfile:
>>>    WEB
>>>      IMAGEPATH '/tmp/'
>>>      IMAGEURL '/tmp/'
>>>
>>>      METADATA
>>>        'ows_title'           'Flächennutzungsplan der Stadt Luckau
>>> und seinen Ortsteilen'
>>>        'ows_onlineresource' 
>>> 'http://geoportal.luckau.de/ows/flaechennutzungsplaene'
>>>        'ows_srs'             'EPSG:4326  EPSG:25832 EPSG:25833
>>> EPSG:325833 EPSG:4528 EPSG:4839'
>>>        'ows_abstract'        'WMS-Dienst zur Dartellung von
>>> Flächennutzungspläne im Stadtgebiet Luckau mit seinen Ortsteilen'
>>>        'ows_accessconstraints' 'none'
>>>        'ows_fees' 'none'
>>>        'ows_keywordlist' 'Luckau, Flächennutzungspläne, WMS'
>>>        'ows_include_items' 'all'
>>>        'ows_encoding' 'ISO-8859-1'
>>>        'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
>>>        'gml_include_items' 'all'
>>>        include      './includes/contact_information.inc.map'
>>>      END
>>>    END
>>>
>>> ### Layer ####
>>>
>>>    LAYER
>>>      NAME 'FNP01_Grenze'
>>>         CLASS
>>>         NAME 'plan_grenze'
>>>         STYLE
>>>           SYMBOL 0
>>>          width 3
>>>           OUTLINECOLOR 0 0 255
>>>           #COLOR 220 54 199
>>>         END
>>>      END
>>>      DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp'
>>>      METADATA
>>>        'ows_title' 'FNP 01 Grenze'
>>>        'ows_abstract' 'Umring Flächennuntzungsplan Luckau, Teil 1,
>>> Kümmritz, Uckro, Paserin'
>>>       'ows_srs'             'EPSG:4326 EPSG:25833 EPSG:325833
>>> EPSG:4528 EPSG:4839'
>>>       "gml_include_items" "all"
>>>        "gml_featureid"     "ID"
>>>        "ows_enable_request" "*"
>>>      END
>>>      STATUS ON
>>>      PROJECTION
>>>         "init=epsg:325833"
>>>      END
>>>         TYPE POLYGON
>>>      DUMP true
>>>      HEADER './templates/fnp_legende_header.html'
>>>      TEMPLATE './templates/fnp_legende.html'
>>>      FOOTER './templates/footer.html'
>>>    END
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list