<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">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 . . . &nbsp;Have to do some more thinking on this one.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">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 &nbsp;and END indexed.</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">
              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">
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 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>
            <fieldset class="mimeAttachmentHeader">
            </fieldset>
            <br>
                      </p>
          <pre wrap=""><p wrap="" style="white-space: pre; margin-bottom: 0; margin-top: 0">
_______________________________________________</p>
        <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
mapserver-users mailing list</p>
      <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></p>
    <p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>
</pre>
</blockquote>
</div>
</td>
</tr>
</table>
</body>
</html>