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: [email protected] 
[mailto:[email protected]] On Behalf Of Alberto Asuero 
Arroyo
Sent: Thursday, January 07, 2010 9:19 AM
To: [email protected]
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 
<[email protected]<mailto:[email protected]>> 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

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to