<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>SLD http header problem</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=884310619-09012006>Dear All,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=884310619-09012006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN class=884310619-09012006>I 
have been&nbsp;running into&nbsp;a problem splitting a postgresql layer into two 
classes via MapServer expressions and I am hoping someone of you can help 
me.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=884310619-09012006></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN class=884310619-09012006>I 
have a postgresql table containing roads. There is a column 'name' where you can 
see the road's&nbsp;status like 'Interstates' or 'State Routes'. So far so good. 
But (there is always a 'but :-) )...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=884310619-09012006>some records are looking like that:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2><SPAN class=884310619-09012006><FONT 
size=1>
<P><FONT face=Arial>Interstate Route 75, State Route 401</FONT></P>
<P><SPAN class=884310619-09012006><FONT face=Arial size=2>I tried to seperate my 
classes with some MapServer expression. I succeeded in getting the Interstates 
by:</FONT></SPAN></P>
<P><SPAN class=884310619-09012006><FONT face=Arial 
size=2>CLASS</FONT></SPAN></P>
<P><SPAN class=884310619-09012006><FONT face=Arial 
size=2>&nbsp;&nbsp;NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"Interstates"&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;EXPRESSION ("[name]" =~ 
/Interstate/)&nbsp;&nbsp;</FONT></SPAN></P>
<P><SPAN class=884310619-09012006></SPAN></FONT></SPAN></FONT><SPAN 
class=884310619-09012006></SPAN><FONT face=Arial><FONT size=2>...<SPAN 
class=884310619-09012006></SPAN></FONT></FONT><BR></P>
<P><SPAN class=884310619-09012006><FONT face=Arial size=2>Now I want to seperate 
the State Routes by filtering all records that DO NOT contain&nbsp;the substring 
"Interstates".</FONT></SPAN></P><SPAN class=884310619-09012006>
<P><SPAN class=884310619-09012006><FONT face=Arial 
size=2>CLASS</FONT></SPAN></P>
<P><SPAN class=884310619-09012006><FONT face=Arial 
size=2>&nbsp;&nbsp;NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"Interstates"&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;EXPRESSION ("[name]" !=~ 
/Interstate/)&nbsp;&nbsp;</FONT></SPAN></P>
<P><SPAN class=884310619-09012006></SPAN><SPAN 
class=884310619-09012006></SPAN><FONT face=Arial size=2>...</FONT></P>
<P><FONT face=Arial><FONT size=2>I<SPAN class=884310619-09012006>t isn't working 
:-(. The documentation doesn't tell anything about this case. Do you have any 
tip?</SPAN></FONT></FONT></P>
<P><FONT face=Arial><FONT size=2><SPAN class=884310619-09012006>Thanks, 
Carola</SPAN></FONT></FONT></P></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
  [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Chau,Philip 
  [PYR]<BR><B>Sent:</B> Monday, January 09, 2006 11:50 AM<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] SLD 
  http header problem<BR></FONT><BR></DIV>
  <DIV></DIV><!-- Converted from text/rtf format --><BR>
  <P><FONT face=Arial size=2>I'm trying to display the layer and using SLD to 
  change the symbol (ActiveFedProv) and it seems to be giving me a 
  problem</FONT></P>
  <P><A 
  href="http://excise.pyr.ec.gc.ca/cgi-bin/pyrwqmp.asp?version=1.1.1&amp;service=WMS&amp;request=GetMap&amp;layers=ActiveFedProv&amp;SLD=http://map.ns.ec.gc.ca/kyw/sld/kyw_sld.xml"><U><FONT 
  face=Arial color=#0000ff 
  size=2>http://excise.pyr.ec.gc.ca/cgi-bin/pyrwqmp.asp?version=1.1.1&amp;service=WMS&amp;request=GetMap&amp;layers=ActiveFedProv&amp;SLD=http://map.ns.ec.gc.ca/kyw/sld/kyw_sld.xml</FONT></U></A></P>
  <P><FONT face=Arial size=2>WMS GetCapabilities seems to say that it supports 
  SLD however I get a CGI error</FONT> </P>
  <P><FONT face=Arial size=2>"CGI Error</FONT> <BR><FONT face=Arial size=2>The 
  specified CGI application misbehaved by not returning a complete set of HTTP 
  headers. The headers it did return are:</FONT></P>
  <P><FONT face=Arial size=2>"</FONT> </P>
  <P><FONT face=Arial size=2>Cheers,</FONT> <BR><FONT face=Arial 
  size=2>Phil</FONT> </P><BR>
  <P><FONT face=Arial size=2>Philip Chau, PMP</FONT> <BR><FONT face=Arial 
  size=2>Water Quality Monitoring</FONT><FONT face=Arial size=2> Division</FONT> 
  <BR><FONT face=Arial size=2>Environmental</FONT> <FONT face=Arial 
  size=2>Stewardship</FONT><FONT face=Arial size=2> Branch</FONT> <BR><FONT 
  face=Arial size=2>Environment Canada</FONT> <BR><FONT face=Arial 
  size=2>201-401 Burrard Street</FONT> <BR><FONT face=Arial size=2>Vancouver, BC 
  V6C 3S5</FONT> <BR><FONT face=Arial size=2>Tel: 604.664.4066</FONT> <BR><FONT 
  face=Arial size=2>Fax: 604.664.9126</FONT> </P></BLOCKQUOTE></BODY></HTML>