[Mapserver-users] CGI / expression assistance

Andrew Koebrick Andrew.Koebrick at state.mn.us
Wed Nov 19 17:30:13 EST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3AEEC.B2CE1130
Content-Type: text/plain

Can anyone tell me if what I am attempting is possible, and perhaps share
with me the required syntax?
 
I am attempting to use the CGI version of mapserver to create a map
highlighting one or more counties (or townships, cities...) based upon a
dynamically generated URL.  I am able to highlight single counties with this
syntax:
 
http://www.mba.state.mn.us/cgi-bin/mapserv?map=/home/httpd/html-MBA/maps/cou
nty.map
<http://www.mba.state.mn.us/cgi-bin/mapserv?map=/home/httpd/html-MBA/maps/co
unty.map&map_county_class_expression(NAME_LOWER=Hennepin)&mode=map>
&map_county_class_expression(NAME_LOWER=Hennepin)&mode=map
 
Changing the county name changes what is mapped.  How, however, do I make it
do multiple counties?  I have tried lots of variants of the syntax suggested
in the documentation
(http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#class
<http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#class> ) such as:
 
http://www.mba.state.mn.us/cgi-bin/mapserv?map=/home/httpd/html-MBA/maps/cou
nty.map&map_county_class_expression(NAME_LOWER='Lake'
or[NAME_LOWER]='hennepin')&mode=map
 
Many thanks for any assistance.

Cheers,
 
Andrew Koebrick
Web Coordinator / Librarian
Dept. of Administration
State of Minnesota
658 Cedar St. 
St. Paul, MN 55102
 
651-296-4156
http://server.admin.state.mn.us

------_=_NextPart_001_01C3AEEC.B2CE1130
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C3AEBB.3DC6EC30">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PostalCode"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"City"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"Street"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"address"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"State"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Can anyone tell me if what I am attempting is =
possible, and
perhaps share with me the required syntax?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I am attempting to use the CGI version of <span
class=3DSpellE>mapserver</span> to create a map highlighting one or =
more counties
(or townships, cities...) based upon a dynamically generated URL.<span
style=3D'mso-spacerun:yes'>&nbsp; </span>I am able to highlight single =
counties
with this syntax:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><a
href=3D"http://www.mba.state.mn.us/cgi-bin/mapserv?map=3D/home/httpd/htm=
l-MBA/maps/county.map&amp;map_county_class_expression(NAME_LOWER=3DHenne=
pin)&amp;mode=3Dmap">http://www.mba.state.mn.us/cgi-bin/mapserv?map=3D/h=
ome/httpd/html-MBA/maps/county.map&amp;map_county_class_expression(NAME_=
LOWER=3DHennepin)&amp;mode=3Dmap</a><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Changing the county name changes what is =
mapped.<span
style=3D'mso-spacerun:yes'>&nbsp; </span>How, however, do I make it do =
multiple
counties?<span style=3D'mso-spacerun:yes'>&nbsp; </span>I have tried =
lots of variants
of the syntax suggested in the documentation (<a
href=3D"http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#class"=
>http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#class</a>)
such as:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>http://www.mba.state.mn.us/cgi-bin/mapserv?map=3D/hom=
e/httpd/html-MBA/maps/county.map&amp;map_county_class_<span
class=3DGramE>expression(</span>NAME_LOWER=3D'</span></font><st1:place><=
font
 size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Lake</span></font></st1:pla=
ce><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>' or[NAME_LOWER]=3D'<span
class=3DSpellE>hennepin</span>')&amp;mode=3Dmap<o:p></o:p></span></font>=
</p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Many thanks for any =
assistance.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><br>
Cheers,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Andrew <span =
class=3DSpellE>Koebrick</span><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Web Coordinator / =
Librarian<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Dept. of Administration<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>State of </span></font><st1:State><st1:place><font =
size=3D2
  face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Minnesota</span></font></st=
1:place></st1:State><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><br>
</span></font><st1:Street><st1:address><font size=3D2 =
face=3DArial><span
  style=3D'font-size:10.0pt;font-family:Arial'>658 Cedar =
St</span></font></st1:address></st1:Street><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>. <br>
</span></font><st1:place><st1:City><font size=3D2 face=3DArial><span
  style=3D'font-size:10.0pt;font-family:Arial'>St. =
Paul</span></font></st1:City><font
 size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>, </span></font><st1:State>=
<font
  size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>MN</span></font></st1:State=
><font
 size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> =
</span></font><st1:PostalCode><font
  size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>55102</span></font></st1:Po=
stalCode></st1:place><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>651-296-4156<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>http://server.admin.state.mn.us<o:p></o:p></span></fo=
nt></p>

</div>

</body>

</html>

------_=_NextPart_001_01C3AEEC.B2CE1130--



More information about the mapserver-users mailing list