[mapserver-users] Re: multiple query layers GetFeatureInfo order response

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Jan 7 13:14:04 EST 2010


You might try a more recent version of MapServer too. Looking at the code the WMS server does set an internal layer order based on the LAYERS= parameter in the WMS request and the default templating respects that order. I don't know if 5.0.3 works that way or if those are more recent changes.

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto Asuero Arroyo
Sent: Thursday, January 07, 2010 9:19 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Re: multiple query layers GetFeatureInfo order response

Hi!!

I've being testing and the response order of the GetFeatureInfo template is the same that the order of the layer in the file .map

I've defined a mapfile with layer1 the first, layer 2 the second ...

On Thu, Jan 7, 2010 at 3:51 PM, Alberto Asuero Arroyo <albertoasuero at gmail.com<mailto:albertoasuero at gmail.com>> wrote:
Hello

I'm trying to do a multiple query layer GetFeatureInfo against mapserver 5.0.3. Unfortunately Mapserver doesn't respond in the order I expected .

My templates are xhtml that they are parsed from java applet. The issue come in when several features information are found, mapserver return many htmls  with an order unknown to me.

I'd wish the templates were received in the same order of the layer list of QUERY_LAYERS

For example:

Query 1:

http://10.30.102.100/cgi-bin/sil?VERSION=1.1.1&SERVICE=WMS&FORMAT=image%2Fpng&EXCEPTIONS=application/vnd.ogc.se_xml&TRANSPARENT=FALSE&LAYERS=layer1,layer2,layer3&WIDTH=1250&HEIGHT=595&SRS=EPSG:23030&BBOX=265683.6,4149453.7,266431.2,4149809.6&REQUEST=GetFeatureInfo&QUERY_LAYERS=layer1,layer2,layer3&INFO_FORMAT=text/html&FEATURE_COUNT=100&I=973&J=235&X=973&Y=235%27

Its returns either:

<html>... template layer2  ...</html>
<html>... template layer1  ...</html>
<html>... template layer3  ...</html>

or:

<html>... template layer3  ...</html>
<html>... template layer2  ...</html>
<html>... template layer1  ...</html>

...

I'd wish its always return (like the query list order):

<html>... template layer1  ...</html>
<html>... template layer2  ...</html>
<html>... template layer3  ...</html>

How can I do this?

Thanks in advance

Regards, Alberto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100107/ad4b55bf/attachment.html


More information about the mapserver-users mailing list