[mapserver-users] record element in query header
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Apr 7 10:58:45 PDT 2010
Steve.Toutant at inspq.qc.ca wrote:
>
> Hi,
> Is it possible to get the value of a record and put it in the header?
> Here is an example of what I need to do
> There are 3 elements in Quebec
> 1: blabla 1
> 2: blabla 2
> 3: blabla 3
>
> Here is my template definition
> Header
> There are [nlr] elements in [provincename]
>
> Template
> [lrn]: [elementname]<br>
>
> What I get is:
> There are 3 elements in [provincename]
> 1: blabla 1
> 2: blabla 2
> 3: blabla 3
>
> How can I get the [provincename] value in the header?
>
Steve,
You should be careful of string case. You should verify the case by
using ogrinfo with the -summary switch to see what the correct name is:
ogrinfo quebec.shp quebec -summary
The result may be [PROVINCENAME].
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the MapServer-users
mailing list