<html>
  <head>

  </head>
  <body bgcolor="#FFFFFF" text="#000000" style="line-height: normal; font-variant: normal; margin-right: 4px; margin-left: 4px; margin-bottom: 1px; margin-top: 4px">
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">Yeah&#44; the problem is&#44; the list of GPSs is variable.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">It&#39;s all in POSTGIS now&#44; and by GPS name.</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; Brent Fraser &lt;bfraser@geoanalytic.com&gt; wrote:<br>    </p>
    <table bgcolor="#f3f3f3" border="0" style="margin-left: 15px; margin-right: 0; margin-bottom: 0; font-size: 1em; margin-top: 0">
      <tr>
        <td>
          <div style="border-left: solid 1px #050505; padding-left: 7px">
            <p style="margin-bottom: 0; margin-top: 0">
              I guess my solution would be to put the trails in a PostGIS table:<br><br>Trails:<br>id&#160;&#160;&#160;&#32;name&#160;&#160;&#160;&#32;geometry<br>1&#160;&#160;&#160;&#32;trail A&#160;&#160;&#160;&#32;234523452345<br>2&#160;&#160;&#160;&#32;trail B&#160;&#160;&#160;&#32;5879567876454<br><br>Use one map file with a FILTER &quot;name&#61;&#39;&#37;trail_name&#37;&#39;&quot;.&#160;&#32;Now use <a class="moz-txt-link-freetext" href="http://.../mapserv?trail_name=">http://.../mapserv&#63;trail_name&#61;</a>&quot;trail A&quot; to have mapserver do the variable substitution in the mapfile.<br><br>The bigger problem is generating the GUI layer list with the pointers to the mapserver URLs.&#160;&#32;A script/database generated mapbook in GeoMoose&#44; or JavaScript list for use with OpenLayers&#44; etc...<br>            </p>
            <pre cols="72" class="moz-signature"><p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
Best Regards&#44;</p>
          <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
Brent Fraser</p>
</pre>
        <p style="margin-bottom: 0; margin-top: 0">
          <br>
          On 4/16/2012 1:41 PM&#44; Bob Basques wrote:        </p>
        <blockquote type="cite" cite="mid:4F8C2FA7020000A800035435@heckle">
          <p style="margin-bottom: 0; margin-top: 0">
            <font size="3" face="Comic           Sans MS">Individual trails&#44; one layer per GPS to allow user control of visibility.</font>          </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <br>
                      </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <font size="3" face="Comic           Sans MS">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; Brent Fraser <a class="moz-txt-link-rfc2396E" href="mailto:bfraser@geoanalytic.com">&lt;bfraser@geoanalytic.com&gt;</a>&nbsp;wrote:<br>          </p>
          <table bgcolor="#f3f3f3" border="0" style="margin-left: 15px; margin-right: 0; margin-bottom: 0; font-size: 1em; margin-top: 0">
            <tr>
              <td>
                <div style="border-left: solid 1px #050505; padding-left: 7px">
                  <p style="margin-bottom: 0; margin-top: 0">
                    Well&#44; in this application I don&#39;t care about a feature&#39;s real-world attributes &#40;only the&#160;&#32;geometry and their feature &quot;class&quot;&#41;&#44; so I&#39;m able to pack all polygons into one table.&#160;&#32;I then join the polygon table to the feature class table to get the color&#44; etc.&#160;<br><br>Are you representing each GPS trail as a separate layer&#63;&#160;&#32;So the user can turn individual trail on/off in a layer control&#63;<br>                  </p>
                  <pre cols="72" class="moz-signature"><p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
                  <p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
Best Regards&#44;</p>
</p>
              <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
Brent Fraser</p>
</p>
<br></pre>
        <p style="margin-bottom: 0; margin-top: 0">
          <br>
          On 4/16/2012 1:07 PM&#44; Bob Basques wrote:        </p>
        <blockquote type="cite" cite="mid:4F8C2790020000A80003541D@heckle">
          <p style="margin-bottom: 0; margin-top: 0">
            <font size="3" face="Comic Sans MS">Hmm&#44; interesting apporach&#44; reminds me of my ealier days with Oracle &#40;before Oracle Spatial&#44; where each feature type needed it&#39;s own table structure . . .&#32;&#160;Have to do some more thinking on this one.</font>          </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <br>
                      </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <font size="3" face="Comic Sans MS">I&#39;m trying to render a predefined list of layers &#40;from the user&#41; of a set of GPS trails that are BEGIN&#32;&#160;and END indexed.</font>          </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <br>
                      </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <font size="3" face="Comic Sans MS">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; Brent Fraser <a moz-do-not-send="true" href="mailto:bfraser@geoanalytic.com" class="moz-txt-link-rfc2396E">&lt;bfraser@geoanalytic.com&gt;</a>&#160;wrote:<br>          </p>
          <table bgcolor="#f3f3f3" border="0" style="margin-left: 15px; margin-right: 0; margin-bottom: 0; font-size: 1em; margin-top: 0">
            <tr>
              <td>
                <div style="border-left: solid 1px #050505; padding-left: 7px">
                  <p style="margin-bottom: 0; margin-top: 0">
                    Bob&#44;<br><br>&#160;&#32;What kinds of things are you trying to do with layers&#63;&#160;&#32;Are the layers vectors&#63;&#160;&#32;Maybe there&#39;s a different way...<br><br>I&#39;m in the midst of an implementation where the vectors are held in PostGIS in three tables &#40;point&#44; line and polygon&#41; and joined to a &quot;feature definition&quot; table &#40;to supply rendering values&#41;.&#160;&#32;I use one map file with three layers&#160;&#32;&#40;point&#44; line&#44; polygon&#41; and pass a FILTER variable to get my different layers which are then rendered.&#160;<br><br>Here&#39;s a snippet from the polygon layer:<br><br><tt>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;CLASS<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;STYLE &#35; Polygon Fill<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;SYMBOL&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;polyfill_symbol&#93;<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;COLOR&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;polyfill_fillcolor&#93;<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;ANGLE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;polyfill_angle&#93;<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;SIZE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;polyfill_hatchgap&#93;&#160;&#32;&#35; e.g Hatching gap<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;WIDTH&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;1 &#35; &#91;polyfill_hatchthick&#93;&#160;&#32;&#35; Hatching line thickness &#40;column binding doesn&#39;t seem to work&#41;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;<br>&#35;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;OPACITY&#160;&#160;&#160;&#160;&#160;&#32;50 &#35; &#91;attribute&#93;&#160;&#32;&#35; warning: there is no OPACITY for LABEL so don&#39;t bother.<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;END<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;STYLE &#35; Polygon Outline<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;SYMBOL&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;geom_symbol&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;OUTLINECOLOR &#91;geom_outcolor&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;SIZE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;geom_width&#93;&#160;&#160;&#160;&#32;&#35; for &quot;simple&quot; &#40;&#63;&#41; symbols<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;WIDTH&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;geom_width&#93;&#160;&#160;&#160;&#32;&#35; for complex symbols<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;END &#35; Style<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;TEXT&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#40;&#91;gid&#93;&#41;<br>&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;&#160;&#160;&#160;&#32;LABEL<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;TYPE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;TRUETYPE<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;FONT&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;label_font&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;ANTIALIAS&#160;&#160;&#160;&#32;TRUE<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;COLOR&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;label_fillcolor&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;OUTLINECOLOR &#91;label_outcolor&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;BUFFER&#160;&#160;&#160;&#160;&#160;&#160;&#32;1<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;POSITION&#160;&#160;&#160;&#160;&#32;cc&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#35; &#91;ul&#124;uc&#124;ur&#124;cl&#124;cc&#124;cr&#124;ll&#124;lc&#124;lr&#124;auto&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;PARTIALS&#160;&#160;&#160;&#160;&#32;TRUE<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;SIZE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;&#91;label_height&#93;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;END&#160;&#32;&#35; LABEL<br><br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#32;END &#35; clas</tt>s<br><br>While this method is suitable for rendering&#44; it will be a problem if you want store variables for use in an identify operation &#40;or maybe not&#59; I wonder if a template name can be bound to a database column...&#41;<br>                  </p>
                  <pre cols="72" class="moz-signature"><p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
                  <p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
                <p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
Best Regards&#44;</p>
</p>
<br>
          <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
        <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
      <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
Brent Fraser</p>
</p>
<br><br><br></pre>
<p style="margin-bottom: 0; margin-top: 0">
<br>
On 4/16/2012 10:22 AM&#44; Bob Basques wrote:</p>
<blockquote type="cite" cite="mid:4F8C0113020000A8000353FC@heckle">
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">All&#44;</font></p>
<p style="margin-bottom: 0; margin-top: 0">
<br>
</p>
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">Did anything ever develop from this idea&#63;&#32;&#160;I need to generate a variable length list of layers pro grammatically.</font></p>
<p style="margin-bottom: 0; margin-top: 0">
<br>
</p>
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">I&#39;m not finding anything from a quick search of things related to passing a MAPFILE via the CGI call.&#32;&#160;I want to be able to generate a MAPFILE&#44; or chunks of it&#44; on the fly.&#32;&#160;A possible solution &#40;maybe scary security wise&#41; would be to use a param like &quot;</font><font size="3" face="Courier">INCLUDE_&lt;someID&gt;&#61;</font><font size="3" face="Comic Sans MS">&quot;&#44; to pass in MAP fragments to an existing MAPFILE.&#32;&#160;I need to essentially add layers.</font></p>
<p style="margin-bottom: 0; margin-top: 0">
<br>
</p>
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">Another thought I had &#40;Ok&#44; it&#39;s a bit odd&#44; I&#39;ll admit . . .&#41; would be to have MapServer build it&#39;s own MAPFILE as a TEMPLATE output&#44; but I&#39;m not coming up with a way immediately of passing the resulting MAPFILE to Mapserver in the end.</font></p>
<p style="margin-bottom: 0; margin-top: 0">
<br>
</p>
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">bobb</font></p>
<p style="margin-bottom: 0; margin-top: 0">
<br>
<br>
</p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<fieldset class="mimeAttachmentHeader">
</fieldset>
<br>
</p>
<pre wrap=""><p wrap="" style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p wrap="" style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p wrap="" style="white-space: pre; margin-bottom: 0; margin-top: 0">
_______________________________________________</p>
</p>
<br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
mapserver-users mailing list</p>
</p>
<br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&nbsp;&nbsp;</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<a moz-do-not-send="true" href="mailto:mapserver-users@lists.osgeo.org" class="moz-txt-link-abbreviated">mapserver-users@lists.osgeo.org</a></p>
</p>
<br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
&#160;&#160;&#160;&#160;</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" class="moz-txt-link-freetext">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>
</p>
<br></pre>
</blockquote>
</div>
</td>
</tr>
</table>
</blockquote>
</div>
</td>
</tr>
</table>
</blockquote>
</div>
</td>
</tr>
</table>
</body>
</html>