<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">Actually, I'm working on that very capability in another project right now. A bit more comprehensive in the details. Exact functionality you just described though.</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>
>>> Brent Fraser <bfraser@geoanalytic.com> 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">
It would make an interesting user extension in GeoMoose:<br> - Based on some GUI trigger (a button?), request a list of layers from a URL (hey, a "getCapabilites" style service!), and populate/replace the layer list in the catalog.<br><br>That would be cool...<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,</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 2:07 PM, Bob Basques wrote: </p>
<blockquote type="cite" cite="mid:4F8C35C5020000A800035450@heckle">
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic
Sans MS">Yeah, the problem is, the list of GPSs is variable.</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">It's all in POSTGIS now, and by GPS name.</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>
>>> Brent Fraser <a class="moz-txt-link-rfc2396E" href="mailto:bfraser@geoanalytic.com"><bfraser@geoanalytic.com></a> 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 name geometry<br>1 trail A 234523452345<br>2 trail B 5879567876454<br><br>Use one map file with a FILTER "name='%trail_name%'". Now use <a moz-do-not-send="true" href="http://.../mapserv?trail_name=" class="moz-txt-link-freetext">http://.../mapserv?trail_name=</a>"trail A" 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. A script/database generated mapbook in GeoMoose, or JavaScript list for use with OpenLayers, 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">
<p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
Best Regards,</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<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:41 PM, 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, 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>
>>> Brent Fraser <a moz-do-not-send="true" href="mailto:bfraser@geoanalytic.com" class="moz-txt-link-rfc2396E"><bfraser@geoanalytic.com></a> 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, in this application I don't care about a feature's real-world attributes (only the geometry and their feature "class"), so I'm able to pack all polygons into one table. I then join the polygon table to the feature class table to get the color, etc. <br><br>Are you representing each GPS trail as a separate layer? So the user can turn individual trail on/off in a layer control?<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">
</p>
<p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
Best Regards,</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">
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</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 1:07 PM, 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, interesting apporach, reminds me of my ealier days with Oracle (before Oracle Spatial, where each feature type needed it's own table structure . . . 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'm trying to render a predefined list of layers (from the user) of a set of GPS trails that are BEGIN 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>
>>> Brent Fraser <a moz-do-not-send="true" href="mailto:bfraser@geoanalytic.com" class="moz-txt-link-rfc2396E"><bfraser@geoanalytic.com></a> 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,<br><br> What kinds of things are you trying to do with layers? Are the layers vectors? Maybe there's a different way...<br><br>I'm in the midst of an implementation where the vectors are held in PostGIS in three tables (point, line and polygon) and joined to a "feature definition" table (to supply rendering values). I use one map file with three layers (point, line, polygon) and pass a FILTER variable to get my different layers which are then rendered. <br><br>Here's a snippet from the polygon layer:<br><br><tt> CLASS<br> STYLE # Polygon Fill<br> SYMBOL [polyfill_symbol]<br> COLOR [polyfill_fillcolor]<br> ANGLE [polyfill_angle]<br> SIZE [polyfill_hatchgap] # e.g Hatching gap<br> WIDTH 1 # [polyfill_hatchthick] # Hatching line thickness (column binding doesn't seem to work) <br># OPACITY 50 # [attribute] # warning: there is no OPACITY for LABEL so don't bother.<br> END<br> STYLE # Polygon Outline<br> SYMBOL [geom_symbol]<br> OUTLINECOLOR [geom_outcolor]<br> SIZE [geom_width] # for "simple" (?) symbols<br> WIDTH [geom_width] # for complex symbols<br> END # Style<br> TEXT ([gid])<br> LABEL<br> TYPE TRUETYPE<br> FONT [label_font]<br> ANTIALIAS TRUE<br> COLOR [label_fillcolor]<br> OUTLINECOLOR [label_outcolor]<br> BUFFER 1<br> POSITION cc # [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto]<br> PARTIALS TRUE<br> SIZE [label_height]<br> END # LABEL<br><br> END # clas</tt>s<br><br>While this method is suitable for rendering, it will be a problem if you want store variables for use in an identify operation (or maybe not; I wonder if a template name can be bound to a database column...)<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">
</p>
<p cols="72" class="moz-signature" style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p 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,</p>
</p>
<br><br><br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
Brent Fraser</p>
</p>
<br><br><br><br><br></pre>
<p style="margin-bottom: 0; margin-top: 0">
<br>
On 4/16/2012 10:22 AM, 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,</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? 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'm not finding anything from a quick search of things related to passing a MAPFILE via the CGI call. I want to be able to generate a MAPFILE, or chunks of it, on the fly. A possible solution (maybe scary security wise) would be to use a param like "</font><font size="3" face="Courier">INCLUDE_<someID>=</font><font size="3" face="Comic Sans MS">", to pass in MAP fragments to an existing MAPFILE. 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 (Ok, it's a bit odd, I'll admit . . .) would be to have MapServer build it's own MAPFILE as a TEMPLATE output, but I'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>
<p style="margin-bottom: 0; margin-top: 0">
<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">
<br>
<p wrap="" style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p wrap="" style="white-space: pre; margin-bottom: 0; margin-top: 0">
_______________________________________________</p>
</p>
<br><br><br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
mapserver-users mailing list</p>
</p>
<br><br><br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<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><br><br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<br>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
</p>
</p>
<p style="white-space: pre; margin-bottom: 0; margin-top: 0">
<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><br></pre>
</blockquote>
</div>
</td>
</tr>
</table>
</blockquote>
</div>
</td>
</tr>
</table>
</blockquote>
</div>
</td>
</tr>
</table>
</blockquote>
</div>
</td>
</tr>
</table>
</body>
</html>