<html>
  <head>

  </head>
  <body style="font-size: 12pt; line-height: normal; margin-left: 4px; margin-right: 4px; margin-bottom: 1px; margin-top: 4px; font-variant: normal; font-weight: normal; font-family: Comic Sans MS; font-style: normal">
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">Oops&#44; sorry about the typo below&#44; I meant to say &quot;I know this isn&#39;t exactly . . .&quot;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">bobb</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; &quot;Bob Basques&quot; &lt;Bob.Basques@ci.stpaul.mn.us&gt; wrote:<br>    </p>
    <table style="font-size: 1em; margin-left: 15px; margin-right: 0; margin-bottom: 0; margin-top: 0" border="0" bgcolor="#f3f3f3">
      <tr>
        <td>
          <div style="padding-left: 7px; border-left: solid 1px #050505">
            <p style="margin-bottom: 0; margin-top: 0">
              <font face="Comic Sans MS" size="3">All&#44;</font>            </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <br>
                          </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <font face="Comic Sans MS" size="3">I&#39;ve approached this topic over the years by having a nice Syntax editor available for MapFiles.&#32;&#160;Both VI and UltraEdit have proven to have good syntax templates for highlighting of edited&#32;&#160;MAPFILEs.</font>            </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <br>
                          </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <font face="Comic Sans MS" size="3">I know this is exactly what was being asked about.&#32;&#160;But upon further thought&#44; I wonder if a VI script couldn&#39;t be put together to do some of this checking&#44; at least in pairing of quotes and END statements.</font>            </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <br>
                          </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <font face="Comic Sans MS" size="3">Just a thought.</font>            </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <br>
                          </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <font face="Comic Sans MS" size="3">bobb</font>            </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <br>
                          </p>
            <p style="margin-bottom: 0; margin-top: 0">
              <br>
              <br>
              &gt;&gt;&gt; &quot;Lime&#44; Steve D &#40;DNR&#41;&quot; &lt;Steve.Lime@state.mn.us&gt; wrote:<br>            </p>
            <table style="font-size: 1em; margin-left: 15px; margin-right: 0; margin-bottom: 0; margin-top: 0" border="0" bgcolor="#f3f3f3">
              <tr>
                <td>
                  <div style="padding-left: 7px; border-left: solid 1px #050505">
                    <p style="margin-bottom: 0; margin-top: 0">
                      Shp2img already provides this capability and is more portable than MapScript. I think ideally we&#39;d develop<br>a validator that spits out all errors but that&#39;s probably not possible either since many common error states<br>&#40;like a missing END or quote&#41; will trigger a whole bunch of false positives. Best to take it an error at a<br>time for most cases. This might be useful more for between version migration where the mapfile is structurally<br>sound but keywords have changed.<br><br>We could write a dumber version of shp2img that only tries to load the mapfile and report an error but I&#39;m not<br>sure it&#39;s worth the effort.<br><br>Steve<br><br>-----Original Message-----<br>From: mapserver-users-bounces@lists.osgeo.org &#91;mailto:mapserver-users-bounces@lists.osgeo.org&#93; On Behalf Of Ivan Mincik<br>Sent: Tuesday&#44; May 15&#44; 2012 10:24 AM<br>To: mapserver-users<br>Subject: Re: &#91;mapserver-users&#93; Mapfile verification tool<br><br>&gt; I don&#39;t think this will work because the mapfile is read all at once<br>&gt; and parsed into an internal data structure. You can&#39;t access it in<br>&gt; mapscript until the parser has read it and the parser will error out on any errors.<br><br>Understand&#44; but i mean only valid/invalid output from test script. If some error will raised - mapfile is invalid&#44; with no other information where otherwise mapfile is OK.<br><br><br>--<br>Ivan Mincik<br>_______________________________________________<br>mapserver-users mailing list<br>mapserver-users@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br><br>_______________________________________________<br>mapserver-users mailing list<br>mapserver-users@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
                    </p>
                  </div>
                </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>