<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
<br>
On 4/16/2012 10:22 AM, Bob Basques wrote:
<blockquote cite="mid:4F8C0113020000A8000353FC@heckle" type="cite">
<p style="margin-bottom: 0; margin-top: 0"> <font face="Comic
Sans MS" size="3">All,</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0"> <font face="Comic
Sans MS" size="3">Did anything ever develop from this idea? I
need to generate a variable length list of layers pro
grammatically.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0"> <font face="Comic
Sans MS" size="3">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 face="Courier" size="3">INCLUDE_<someID>=</font><font
face="Comic Sans MS" size="3">", to pass in MAP fragments to
an existing MAPFILE. I need to essentially add layers.</font>
</p>
<br>
<p style="margin-bottom: 0; margin-top: 0"> <font face="Comic
Sans MS" size="3">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>
<br>
<p style="margin-bottom: 0; margin-top: 0"> <font face="Comic
Sans MS" size="3">bobb</font> </p>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
</body>
</html>