<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19258"><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Wingdings;
}
@font-face {
font-family: Cambria Math;
}
@font-face {
font-family: Calibri;
}
@font-face {
font-family: Tahoma;
}
@page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt; mso-style-priority: 99
}
P.MsoAcetate {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
LI.MsoAcetate {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
DIV.MsoAcetate {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
P.MsoListParagraph {
MARGIN: 0in 0in 0pt 0.5in; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt; mso-style-priority: 34
}
LI.MsoListParagraph {
MARGIN: 0in 0in 0pt 0.5in; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt; mso-style-priority: 34
}
DIV.MsoListParagraph {
MARGIN: 0in 0in 0pt 0.5in; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt; mso-style-priority: 34
}
SPAN.BalloonTextChar {
FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text"; mso-style-name: "Balloon Text Char"
}
P.msochpdefault {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 12pt; mso-style-priority: 99; mso-style-name: msochpdefault
}
LI.msochpdefault {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 12pt; mso-style-priority: 99; mso-style-name: msochpdefault
}
DIV.msochpdefault {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 12pt; mso-style-priority: 99; mso-style-name: msochpdefault
}
SPAN.emailstyle17 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext; mso-style-name: emailstyle17
}
SPAN.EmailStyle22 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal
}
SPAN.EmailStyle23 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.msochpdefault {
FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.WordSection1 {
page: WordSection1
}
OL {
MARGIN-BOTTOM: 0in
}
UL {
MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US link=blue vLink=purple>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2 face=Arial>Thank
you for the references, Steve.</FONT></SPAN></DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2 face=Arial>I'm
sure I've used "[bbox]" in a template which is not listed in the first link. I
think I also had some issues regarding where tags like "[shpext]" can be
used within or outwith the "[resultset layer=LayerName]" and "[feature]" tags. I
will need to revisit the work that I was doing since I've put it on the back
burner just now. I don't want to hi-jack this thread which is now resolved.
</FONT></SPAN></DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial>Donald</FONT></SPAN></DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=406121315-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma>-----Original Message-----<BR><B>From:</B> Lime, Steve D (DNR)
[mailto:Steve.Lime@state.mn.us] <BR><B>Sent:</B> 06 July 2012
16:03<BR><B>To:</B> Donald Kerr; 'Bistrais, Bob';
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> RE: [mapserver-users] How
to get layer name in an identify template?<BR><BR></FONT></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">There are two
references:<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 22.5pt; mso-list: l0 level1 lfo1"
class=MsoListParagraph><![if !supportLists]><SPAN style="COLOR: #1f497d"><SPAN
style="mso-list: Ignore">1)<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><![endif]><SPAN
style="COLOR: #1f497d">http://mapserver.org/mapfile/template.html has all the
substitution tag references.<O:P></O:P></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 22.5pt; mso-list: l0 level1 lfo1"
class=MsoListParagraph><![if !supportLists]><SPAN style="COLOR: #1f497d"><SPAN
style="mso-list: Ignore">2)<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><![endif]><SPAN style="COLOR: #1f497d"><A
href="http://mapserver.org/output/template_output.html">http://mapserver.org/output/template_output.html</A>
documents templated output formats.<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Steve<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Donald
Kerr<BR><B>Sent:</B> Friday, July 06, 2012 9:41 AM<BR><B>To:</B> 'Bistrais,
Bob'; mapserver-users@lists.osgeo.org<BR><B>Subject:</B> Re: [mapserver-users]
How to get layer name in an identify
template?<O:P></O:P></SPAN></P></DIV></DIV>
<P class=MsoNormal><O:P></O:P></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt">It
would be handy to have a reference to all tags that are available for
templating their limitations in terms of where they can be placed in the
template. I've just started looking at templating for a WFS response and
there's not a lot of out there; at least, I'm finding difficulty in gathering
the info that I need.</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt">Regards,</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt">Donald</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P></DIV>
<BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0in">
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">-----Original
Message-----<BR><B>From:</B> <A
href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</A>
[<A
href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</A>]
<B>On Behalf Of </B>Bistrais, Bob<BR><B>Sent:</B> 06 July 2012
15:34<BR><B>To:</B> <A
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><B>Subject:</B>
Re: [mapserver-users] How to get layer name in an identify
template?</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Thanks to Steve Lime for
finding the solution:</SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Use the [cl] (current layer
name) tag in my template. This does the trick. So, my template
now looks like this:</SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><!-- MapServer Template
--></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><hr/></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><td
colspan="2"><b>[cl]</b></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"></tr> </SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><td
align="left"><b>Tile:</b>  
[tilename]</td></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"></tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><td
align="left"><b>Download Image:</b>   <a
href=[LINK]>[LINK]</a></td></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"></tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><tr><td
colspan="2"><hr></td></tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">…Thanks again
Steve!</SPAN><O:P></O:P></P>
<DIV>
<DIV>
<DIV style="TEXT-ALIGN: center" class=MsoNormal align=center><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></DIV>
<DIV id=divRpF812466>
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
<A
href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</A>
[mapserver-users-bounces@lists.osgeo.org] on behalf of Bistrais, Bob
[Bob.Bistrais@maine.gov]<BR><B>Sent:</B> Thursday, July 05, 2012 2:01
PM<BR><B>To:</B> <A
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><B>Subject:</B>
[mapserver-users] How to get layer name in an identify
template?</SPAN><O:P></O:P></P></DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN style="COLOR: black">I am trying to set up a single
template, which will format the results of an identify (query by
point). Many of the layers have the same item names, so I’d like to
use the same template for those layers. I have this working
well, except that I’d like the layer name to appear at the top of each query
result. How can I put this in as a variable that MapServer can
interpret?</SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: black">Below is my sample code of the
template. I put [wms_title] in as the variable for the layer name, but
this doesn’t work:</SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: black"><!-- MapServer Template
--></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"><hr/></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"><tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: black"><td
colspan="2"><b>[wms_title]</b></td>
</SPAN><SPAN style="FONT-FAMILY: Wingdings; COLOR: black">ß</SPAN><SPAN
style="COLOR: black">-I want to replace [wms_title] with something that will
return the layer name</SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"></tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"><tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: black"><td
align="left"><b>Tile:</b>  
[tilename]</td></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"></tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"><tr></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN style="COLOR: black"><td
align="left"><b>Download Image:</b>   <a
href=[LINK]>[LINK]</a></td></SPAN><O:P></O:P></P>
<P class=MsoNormal><SPAN
style="COLOR: black"></tr></SPAN><O:P></O:P></P></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>