<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi people, I hope you are doing well.<br>
<br>
How can I center a label in every country of the map.<br>
<br>
Thanks,<br>
<br>
JOSE ARCE<br>
from Costa Rica<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a> wrote:
<blockquote cite="mid:20091123182058.5E333E01B2B@lists.osgeo.org"
 type="cite">
  <pre wrap="">Send mapserver-users mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a>

You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-owner@lists.osgeo.org">mapserver-users-owner@lists.osgeo.org</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. WMSgetFeatureInfo and variable substitution
      (<a class="moz-txt-link-abbreviated" href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>)
   2. Re: WMSgetFeatureInfo and variable substitution (Martin Ouellet)
   3. Re: WMSgetFeatureInfo and variable substitution
      (Daniel Morissette)
   4. Re: php-mapscript compilation problem on OpenSuse        11.1/11.2
      (Daniel Morissette)


----------------------------------------------------------------------

Message: 1
Date: Mon, 23 Nov 2009 12:44:43 -0500
From: <a class="moz-txt-link-abbreviated" href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>
Subject: [mapserver-users] WMSgetFeatureInfo and variable substitution
To: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:OF439C3E0F.A471B251-ON85257677.0060EE5B-85257677.00617AB8@ssss.gouv.qc.ca">&lt;OF439C3E0F.A471B251-ON85257677.0060EE5B-85257677.00617AB8@ssss.gouv.qc.ca&gt;</a>
        
Content-Type: text/plain; charset="iso-8859-1"

Hi, 
I already posted this problem on openlayers list, but it might be a 
mapserver issue.

OpenLayers.Control.WMSGetFeatureInfo doesn't use the FILTER key in my 
mapfile. This filter is define with variables like this:
FILTER "semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in (%ORDRE%)" . 

The getMap request is succesfull but not the GetFeatureInfo request

Here is the request GetFeatureInfo
/cgi-bin/mapserv.exe?map=MYMAP 
service=WMS&amp;version=1.1.0&amp;request=GetFeatureInfo&amp;layers=ecoles&amp;query_layers=ecoles&amp;styles=&amp;bbox=-8820221.560815%2C5721770.182129%2C-7587445.168853%2C6361395.234705&amp;srs=EPSG%3A900913&amp;feature_count=3000&amp;x=272&amp;y=457&amp;height=523&amp;width=1008&amp;info_format=text%2Fhtml 


Here is the response 
&lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt; 
&lt;!DOCTYPE ServiceExceptionReport SYSTEM <a class="moz-txt-link-rfc2396E" href="http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd">"
http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"</a>&gt; 
&lt;ServiceExceptionReport version="1.1.0"&gt; 
&lt;ServiceException&gt; 
prepare_database(): Query error. Error declaring cursor: ERROR:  syntax 
error at or near &amp;quot;%&amp;quot; 
LINE 1: ...:text from ecoles WHERE (semcdc in (%SEMCDC%) ... 
                                                             ^ 
With query string: DECLARE mycursor BINARY CURSOR FOR SELECT 
&amp;quot;taux_abs&amp;quot;::text,&amp;quot;nouv&amp;quot;::text,asbinary(force_collection(force_2d(geom900913)),&amp;#39;NDR&amp;#39;),id::text 
from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in 
(%ORDRE%)) and (geom900913 &amp;amp;&amp;amp; setSRID( 
&amp;#39;BOX3D(-8493071.07981319 5795761.22549582,-8480841.15528974 
5807991.15001926)&amp;#39;::BOX3D,900913) ) 

&lt;/ServiceException&gt; 
&lt;/ServiceExceptionReport&gt; 

In OL, I have a WMS layer define like this: 
new OpenLayers.Layer.WMS('ecoles', 
'.../cgi-bin/mapserv.exe?map=MYMAP',{layers: 'ecoles', transparent: 
"true", format:"image/gif", SEMCDC:thisCDC, RSS: thisRSS, ORDRE: 
thisOrdre},{isBaseLayer: false, visibility: 
false,singleTile:true,transitionEffect: 'resize'}); 

How should I query the layer? 
Thanks 
Steve 

Steve Toutant, M. Sc.
Analyste en g&eacute;omatique
Secteur environnement
Direction de la sant&eacute; environnementale et de la toxicologie
Institut national de sant&eacute; publique du Qu&eacute;bec
945, avenue Wolfe
Qu&eacute;bec, Qc G1V 5B3 
T&eacute;l.: (418) 650-5115 #5281
Fax.: (418) 654-3144
<a class="moz-txt-link-abbreviated" href="mailto:steve.toutant@inspq.qc.ca">steve.toutant@inspq.qc.ca</a>
<a class="moz-txt-link-freetext" href="http://www.inspq.qc.ca">http://www.inspq.qc.ca</a> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091123/423ab2c2/attachment-0001.html">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091123/423ab2c2/attachment-0001.html</a>

------------------------------

Message: 2
Date: Mon, 23 Nov 2009 13:13:11 -0500
From: Martin Ouellet <a class="moz-txt-link-rfc2396E" href="mailto:geomartino@gmail.com">&lt;geomartino@gmail.com&gt;</a>
Subject: Re: [mapserver-users] WMSgetFeatureInfo and variable
        substitution
To: <a class="moz-txt-link-abbreviated" href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:28d70b140911231013ud4aaa69ld2e280607996714b@mail.gmail.com">&lt;28d70b140911231013ud4aaa69ld2e280607996714b@mail.gmail.com&gt;</a>
Content-Type: text/plain; charset="iso-8859-1"

One way to do it is to pass new parameters(with tha exact name of you're
mapfile variable) in the GetFeatureInfo URL so it would look something like
this:

Here is the request GetFeatureInfo
/cgi-bin/mapserv.exe?map=MYMAP
service=WMS&amp;version=1.1.0&amp;request=GetFeatureInfo&amp;layers=ecoles&amp;query_layers=ecoles&amp;styles=&amp;bbox=-8820221.560815%2C5721770.182129%2C-7587445.168853%2C6361395.234705&amp;srs=EPSG%3A900913&amp;feature_count=3000&amp;x=272&amp;y=457&amp;height=523&amp;width=1008&amp;info_format=text%2Fhtml
*&amp;**SEMCDC=&lt;value&gt;&amp;**RSS=**&lt;value&gt;&amp;**ORDRE**&lt;value&gt;*

MapServer will then replace the value before returning the result.

hope's this help....

MartinO

2009/11/23 <a class="moz-txt-link-rfc2396E" href="mailto:Steve.Toutant@inspq.qc.ca">&lt;Steve.Toutant@inspq.qc.ca&gt;</a>

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,
I already posted this problem on openlayers list, but it might be a
mapserver issue.

OpenLayers.Control.WMSGetFeatureInfo doesn't use the FILTER key in my
mapfile. This filter is define with variables like this:
FILTER "semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in (%ORDRE%)" .

The getMap request is succesfull but not the GetFeatureInfo request

Here is the request GetFeatureInfo
/cgi-bin/mapserv.exe?map=MYMAP
service=WMS&amp;version=1.1.0&amp;request=GetFeatureInfo&amp;layers=ecoles&amp;query_layers=ecoles&amp;styles=&amp;bbox=-8820221.560815%2C5721770.182129%2C-7587445.168853%2C6361395.234705&amp;srs=EPSG%3A900913&amp;feature_count=3000&amp;x=272&amp;y=457&amp;height=523&amp;width=1008&amp;info_format=text%2Fhtml

Here is the response
&lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;
&lt;!DOCTYPE ServiceExceptionReport SYSTEM <a class="moz-txt-link-rfc2396E" href="http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd">"
http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"</a>&gt;
&lt;ServiceExceptionReport version="1.1.0"&gt;
&lt;ServiceException&gt;
prepare_database(): Query error. Error declaring cursor: ERROR:  syntax
error at or near &amp;quot;%&amp;quot;
LINE 1: ...:text from ecoles WHERE (semcdc in (%SEMCDC%) ...
                                                            ^
With query string: DECLARE mycursor BINARY CURSOR FOR SELECT
&amp;quot;taux_abs&amp;quot;::text,&amp;quot;nouv&amp;quot;::text,asbinary(force_collection(force_2d(geom900913)),&amp;#39;NDR&amp;#39;),id::text
from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in
(%ORDRE%)) and (geom900913 &amp;amp;&amp;amp; setSRID( &amp;#39;BOX3D(-8493071.07981319
5795761.22549582,-8480841.15528974 5807991.15001926)&amp;#39;::BOX3D,900913) )

&lt;/ServiceException&gt;
&lt;/ServiceExceptionReport&gt;

In OL, I have a WMS layer define like this:
new OpenLayers.Layer.WMS('ecoles',
'.../cgi-bin/mapserv.exe?map=MYMAP',{layers: 'ecoles', transparent: "true",
format:"image/gif", SEMCDC:thisCDC, RSS: thisRSS, ORDRE:
thisOrdre},{isBaseLayer: false, visibility:
false,singleTile:true,transitionEffect: 'resize'});

How should I query the layer?
Thanks
Steve
*
Steve Toutant, M. Sc.*
Analyste en g&eacute;omatique
Secteur environnement
Direction de la sant&eacute; environnementale et de la toxicologie
Institut national de sant&eacute; publique du Qu&eacute;bec
945, avenue Wolfe
Qu&eacute;bec, Qc G1V 5B3

T&eacute;l.: (418) 650-5115 #5281
Fax.: (418) 654-3144*
**steve.toutant@inspq.qc.ca* <a class="moz-txt-link-rfc2396E" href="mailto:steve.toutant@inspq.qc.ca">&lt;steve.toutant@inspq.qc.ca&gt;</a>*
**<a class="moz-txt-link-freetext" href="http://www.inspq.qc.ca*">http://www.inspq.qc.ca*</a> <a class="moz-txt-link-rfc2396E" href="http://www.inspq.qc.ca/">&lt;http://www.inspq.qc.ca/&gt;</a>


_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091123/53823b42/attachment-0001.html">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091123/53823b42/attachment-0001.html</a>

------------------------------

Message: 3
Date: Mon, 23 Nov 2009 13:14:32 -0500
From: Daniel Morissette <a class="moz-txt-link-rfc2396E" href="mailto:dmorissette@mapgears.com">&lt;dmorissette@mapgears.com&gt;</a>
Subject: Re: [mapserver-users] WMSgetFeatureInfo and variable
        substitution
To: mapserver-users <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users@lists.osgeo.org">&lt;mapserver-users@lists.osgeo.org&gt;</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4B0AD108.3060307@mapgears.com">&lt;4B0AD108.3060307@mapgears.com&gt;</a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I saw your post on the openlayers list, and it seems from your 
description of the problem that the SEMCDC, RCC and ORDER params are 
included by OpenLayers in a GetMap request but it fails to include them 
in the corresponding GetFeatureInfo request. If that's the case then 
that's an issue with OpenLayers, or with the way you configure your 
queryable layer in OL. I'm not fluent enough in OL personally to tell 
where the solution lies, but if the params are missing in the URL then 
the problem is definitely on the client side and not on the server.

Daniel


<a class="moz-txt-link-abbreviated" href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,
I already posted this problem on openlayers list, but it might be a 
mapserver issue.

OpenLayers.Control.WMSGetFeatureInfo doesn't use the FILTER key in my 
mapfile. This filter is define with variables like this:
FILTER "semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in (%ORDRE%)" .

The getMap request is succesfull but not the GetFeatureInfo request

Here is the request GetFeatureInfo
/cgi-bin/mapserv.exe?map=MYMAP 
service=WMS&amp;version=1.1.0&amp;request=GetFeatureInfo&amp;layers=ecoles&amp;query_layers=ecoles&amp;styles=&amp;bbox=-8820221.560815%2C5721770.182129%2C-7587445.168853%2C6361395.234705&amp;srs=EPSG%3A900913&amp;feature_count=3000&amp;x=272&amp;y=457&amp;height=523&amp;width=1008&amp;info_format=text%2Fhtml 


Here is the response
&lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;
&lt;!DOCTYPE ServiceExceptionReport SYSTEM 
<a class="moz-txt-link-rfc2396E" href="http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd">"http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"</a>&gt;
&lt;ServiceExceptionReport version="1.1.0"&gt;
&lt;ServiceException&gt;
prepare_database(): Query error. Error declaring cursor: ERROR:  syntax 
error at or near &amp;quot;%&amp;quot;
LINE 1: ...:text from ecoles WHERE (semcdc in (%SEMCDC%) ...
                                                            ^
With query string: DECLARE mycursor BINARY CURSOR FOR SELECT 
&amp;quot;taux_abs&amp;quot;::text,&amp;quot;nouv&amp;quot;::text,asbinary(force_collection(force_2d(geom900913)),&amp;#39;NDR&amp;#39;),id::text 
from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in 
(%ORDRE%)) and (geom900913 &amp;amp;&amp;amp; setSRID( 
&amp;#39;BOX3D(-8493071.07981319 5795761.22549582,-8480841.15528974 
5807991.15001926)&amp;#39;::BOX3D,900913) )

&lt;/ServiceException&gt;
&lt;/ServiceExceptionReport&gt;

In OL, I have a WMS layer define like this:
new OpenLayers.Layer.WMS('ecoles', 
'.../cgi-bin/mapserv.exe?map=MYMAP',{layers: 'ecoles', transparent: 
"true", format:"image/gif", SEMCDC:thisCDC, RSS: thisRSS, ORDRE: 
thisOrdre},{isBaseLayer: false, visibility: 
false,singleTile:true,transitionEffect: 'resize'});

How should I query the layer?
Thanks
Steve
/
Steve Toutant, M. Sc./
Analyste en g&eacute;omatique
Secteur environnement
Direction de la sant&eacute; environnementale et de la toxicologie
Institut national de sant&eacute; publique du Qu&eacute;bec
945, avenue Wolfe
Qu&eacute;bec, Qc G1V 5B3

T&eacute;l.: (418) 650-5115 #5281
Fax.: (418) 654-3144_
__steve.toutant@inspq.qc.ca_ <a class="moz-txt-link-rfc2396E" href="mailto:steve.toutant@inspq.qc.ca">&lt;mailto:steve.toutant@inspq.qc.ca&gt;</a>_
__<a class="moz-txt-link-freetext" href="http://www.inspq.qc.ca_">http://www.inspq.qc.ca_</a> <a class="moz-txt-link-rfc2396E" href="http://www.inspq.qc.ca/">&lt;http://www.inspq.qc.ca/&gt;</a>


------------------------------------------------------------------------

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
<br>
</body>
</html>