<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1528" name=GENERATOR><!--[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: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff size=2>Hi 
Mark, Frank,</FONT></SPAN></DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff size=2>In my 
case, it only seems to work when I put the layer definition all on the same line 
in the map file... </FONT></SPAN></DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2>CONNECTION "............"</FONT></SPAN></DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2>Strange... I haven't tried the DATA approach.</FONT></SPAN></DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2>Stephane</FONT></SPAN></DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=609560519-20042006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>De&nbsp;:</B> Mark Adams 
  [mailto:Mark.Adams@dpra.com] <BR><B>Envoyé&nbsp;:</B> 20 avril 2006 
  14:50<BR><B>À&nbsp;:</B> LESSARDST@dfo-mpo.gc.ca; 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Cc&nbsp;:</B> Mark 
  Adams<BR><B>Objet&nbsp;:</B> RE: [UMN_MAPSERVER-USERS] commas in CONNECTION 
  string cause MapServer to fail<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Like I said, if I put 
  this in the OVF file instead of including it inline, it works. Inline, it 
  craps out at the first comma. I can test this by removing the tablename from 
  the SrcDataSource element for example, and then it craps out at SrcSQL instead 
  - first comma it finds. Here is the LAYER 
  definition:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">LAYER<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;NAME 
  'References'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;CONNECTIONTYPE 
  OGR<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;#CONNECTION 
  "ODBC:MINFWHSE_P1/MINFWHSE_P1@MINFWHSE_P1,MINFT_WH2_REFER_REFERENCE"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;#CONNECTION 
  "REFERENCES_minf_read.ovf"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;CONNECTION 
  "&lt;OGRVRTDataSource&gt;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  &lt;OGRVRTLayer name='Reference_Query'&gt;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;SrcDataSource&gt;ODBC:system/normin@normin_dev,MINFT_WH2_REFER_REFERENCE&lt;/SrcDataSource&gt; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;SrcSQL&gt;SELECT 
  MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.GEOMETRY,MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR 
  FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE 
  MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.GEOMETRY IS NOT 
  NULL&lt;/SrcSQL&gt;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;GeometryType&gt;wkbPolygon&lt;/GeometryType&gt; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;GeometryField encoding='WKT' field='GEOMETRY'/&gt; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  &lt;/OGRVRTLayer&gt;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&lt;/OGRVRTDataSource&gt;"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;STATUS 
  off<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;TYPE 
  Polygon<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;TRANSPARENCY 
  100<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;TOLERANCE 
  7<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;TOLERANCEUNITS 
  pixels<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;TEMPLATE 
  "null"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;METADATA<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; WMS_SRS&nbsp; 
  'epsg:4326'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; WMS_TITLE 
  'WMSTitel'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; 
  WMS_FEATURE_INFO_MIME_TYPE 'text/html'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;END 
  #METADATA<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;PROJECTION<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;'init=epsg:99999'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;END<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp; 
  CLASS<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp; 
  NAME 'References'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp; 
  STYLE<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  #COLOR 150 180 250<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  OUTLINECOLOR 0 0 0<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  WIDTH 1.5<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp; 
  END #STYLE<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; END 
  #CLASS<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">END 
  #LAYER<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA 
  style="FONT-SIZE: 10pt; COLOR: navy">------------------------------</SPAN></FONT><FONT 
  color=navy><SPAN lang=EN-CA style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Mark Adams</SPAN></FONT><FONT 
  color=navy><SPAN lang=EN-CA style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Senior Analyst &amp; Project 
  Manager</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Cuesta Systems (DPRA 
  Canada)</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">5230 South Service 
  Road</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Burlington, ON L7L 
  5K2</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Phone: 905-333-4544 
  x14</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Fax: 
  905-333-0455</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
  lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Email: 
  mark.adams@dpra.com</SPAN></FONT><FONT color=navy><SPAN lang=EN-CA 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> 
  LESSARDST@dfo-mpo.gc.ca [mailto:LESSARDST@dfo-mpo.gc.ca] <BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> April 20, 2006 2:02 PM<BR><B><SPAN 
  style="FONT-WEIGHT: bold">To:</SPAN></B> Mark Adams; 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [UMN_MAPSERVER-USERS] commas 
  in CONNECTION string cause MapServer to 
fail</SPAN></FONT><o:p></o:p></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Hi 
  Mark,</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">It has to be a syntax 
  error. I use commas all the time.&nbsp; Could you provide the whole virtual 
  layer definition?</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Stephane</SPAN></FONT><o:p></o:p></P></DIV>
  <BLOCKQUOTE 
  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; MARGIN: 5pt 0cm 5pt 3.75pt; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
    <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
    face="Times New Roman" size=3><SPAN lang=FR style="FONT-SIZE: 12pt">
    <HR tabIndex=-1 align=center width="100%" SIZE=2>
    </SPAN></FONT></DIV>
    <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma 
    size=2><SPAN lang=FR 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">De&nbsp;:</SPAN></FONT></B><FONT 
    face=Tahoma size=2><SPAN lang=FR 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> UMN MapServer Users List 
    [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B><SPAN style="FONT-WEIGHT: bold">De 
    la part de</SPAN></B> Mark Adams<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Envoyé&nbsp;:</SPAN></B> 20 avril 2006 
    10:38<BR><B><SPAN style="FONT-WEIGHT: bold">À&nbsp;:</SPAN></B> 
    MAPSERVER-USERS@LISTS.UMN.EDU<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Objet&nbsp;:</SPAN></B> [UMN_MAPSERVER-USERS] 
    commas in CONNECTION string cause MapServer to fail</SPAN></FONT><SPAN 
    lang=FR><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi 
    all,<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">We're working on an application 
    that uses a virtual spatial layer coming from an Oracle database using WKT 
    geometry. For performance and presentation reasons, we are setting the 
    CONNECTION string dynamically based on the user's selected parameters on a 
    query form. The CONNECTION is being set by including the OGR virtual layer 
    definition in-line, such as:<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">CONNECTION 
    "&lt;OGRVRTDataSource&gt;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
    &lt;OGRVRTLayer name='Reference_Query'&gt;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;SrcDataSource&gt;ODBC:system/normin@normin_dev&lt;/SrcDataSource&gt; 
    <o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;SrcSQL&gt;SELECT * FROM MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE WHERE 
    MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR IS NOT 
    NULL&lt;/SrcSQL&gt;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;GeometryType&gt;wkbPolygon&lt;/GeometryType&gt; 
    <o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;GeometryField encoding='WKT' field='GEOMETRY'/&gt; 
    <o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
    &lt;/OGRVRTLayer&gt;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&lt;/OGRVRTDataSource&gt;"<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The above example works fine. 
    However, when we include commas in the SrcSQL element, such as "SELECT 
    FIELD1,FIELD2 FROM TABLE1,TABLE2", mapserver crashes 
    with:<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">"<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[MapServer Error]: 
    msOGRFileOpen(): Open failed for OGR connection 
    `&lt;OGRVRTDataSource&gt;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
    &lt;OGRVRTLayer name='Reference_Query'&gt;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;SrcDataSource&gt;ODBC:system/normin@normin_dev&lt;/SrcDataSource&gt; 
    <o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;SrcSQL&gt;SELECT 
    MINFWHSE_P1.MINFT_WH2_REFER_REFERENCE.C_REFER_REFERENCE_NBR'.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Parse error at EOF, not all 
    elements have been closed,<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">starting with 
    SrcSQL<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">"<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is this behaviour expected, i.e. 
    are commas disallowed in the MAP file, and if so is there a way to escape 
    them? I can put the exact same string in an OVF file and set the CONNECTION 
    to that file, and then it works, so I know there is nothing wrong with the 
    string itself.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA 
    style="FONT-SIZE: 10pt; COLOR: navy">------------------------------</SPAN></FONT><SPAN 
    lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Mark 
    Adams</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Senior Analyst &amp; Project 
    Manager</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Cuesta Systems (DPRA 
    Canada)</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">5230 South Service 
    Road</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Burlington, ON L7L 
    5K2</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Phone: 905-333-4544 
    x14</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Fax: 
    905-333-0455</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=navy size=2><SPAN 
    lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy">Email: 
    mark.adams@dpra.com</SPAN></FONT><SPAN lang=EN-CA><o:p></o:p></SPAN></P>
    <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-CA 
    style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>