Ticket #2002 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

WMSGetFeatureInfo format error

Reported by: adube Owned by: tschaub
Priority: minor Milestone: 2.9 Release
Component: Format Version: 2.7
Keywords: Cc: adube@…
State: Complete

Description

The WMSGetFeatureInfo format never returned any features. The way the loops were made didn't work with our gml returned by MapServer. The attached patch resolved the problem.

Attachments

WMSGetFeatureInfo.patch Download (1.9 KB) - added by adube 4 years ago.
sample.gml Download (1.0 KB) - added by adube 4 years ago.
A sample GML that doesn't work without the patch

Change History

Changed 4 years ago by adube

  Changed 4 years ago by bartvde

Alexandre can you post the Mapserver GML output which did not get parsed properly?

Changed 4 years ago by adube

A sample GML that doesn't work without the patch

follow-up: ↓ 4   Changed 4 years ago by bartvde

It does not parse because of the following line:

<gml:description></gml:description>

How did you get Mapserver to output that tag there Alexandre? It is not in my MS 5.2.0 output.

  Changed 4 years ago by ahocevar

  • keywords WMSGetFeatureInfo removed
  • status changed from new to closed
  • state changed from Review to Complete
  • resolution set to fixed

(In [9123]) Improvements to the WMSGetFeatureInfo format which was not able to parse some Mapserver responses. Thanks adube for the patch. r=me (closes #2002)

in reply to: ↑ 2   Changed 4 years ago by adube

Replying to bartvde:

It does not parse because of the following line: {{{ <gml:description></gml:description> }}} How did you get Mapserver to output that tag there Alexandre? It is not in my MS 5.2.0 output.

I don't really know, but I'm using MS 5.4.0-beta2 so that may be the reason. I'll ask MS Devs.

  Changed 4 years ago by adube

The empty "description" tag is caused by a wms_description "" metadata in the web section of the mapfile.

Note: See TracTickets for help on using tickets.