<p dir="ltr">You might want to consider parsing the WMS GetCapabilities output instead of the mapfile itself.</p>
<p dir="ltr">This sort of thing is why the GetMapbook.php stub is there. (And also to potentially let different users see different mapbooks.)</p>
<div class="gmail_quote">On Jun 11, 2013 9:56 AM, "Robert R. Raiz" <<a href="mailto:raizrobert@gmail.com">raizrobert@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello James,<br><br>Yes, I tried using the map file name but what troubled me, was that I had all the layers under one check-box (either I had them all on, or all off); This is not the best thing as maybe I want to export a map with only a few of those layers.<br>
<br>It is also possible that I did not apply the good params in the catalog section to have them all separately. <br><br>My idea is to create a script that reads the map file and brings values in the .xml file. It should also read the STATUS param (ON/OFF) from the mapfile. <br>
<br>eg: <span style="line-height:15px;font-size:0.95em;background-color:rgb(248,248,248);font-family:Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace"><layer name="city_labels" status="default/> (default = read the layer status from the mapfile)<br>
</span><br>I still need to practice a bit.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 11, 2013 at 5:21 PM, James Klassen <span dir="ltr"><<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">If you want always want all the layers displayed you can use the map name (as defined in the .map file) as your layer name in GeoMoose.</p>
<p dir="ltr">If you want finer granularity, set a GROUP on the layers in the mapfile that you want to turn on together and then use that group as the layer name in GeoMoose.</p>
<p dir="ltr">(MapServer used to support an implicit GROUP name of "all" on every layer but that was removed because it violated the WMS standard.)</p>
<p dir="ltr">I am not sure how well these methods play with the PHP services (like identify) but if the PHP service fails that is a bug in the PHP and should be reported so it can get fixed.<br>
</p><div><div>
<div class="gmail_quote">On Jun 10, 2013 1:27 PM, "Robert R. Raiz" <<a href="mailto:raizrobert@gmail.com" target="_blank">raizrobert@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello all,<br><br>@Eli Adam: yes, that is the intended way. It works, I added each layer in the map-source with the "<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><layer name" param. Then, all those again in the the catalog section, with <layer src. I did that from the first attempt and the result is ok, but I do not wish to do this manual process for each map file.<br>
<br>The reason for my post was to learn if there is a more straightforward way (automatically).<br><br>Because I have many map files with a lot of layers and I always need all of them displayed to choose the best layout. I guess a little script can read the map file and build that list for me, using a few variables.<br>
<br>I am new to geomoose.. I've been using Chameleon for a long time and clearly its time is long due.<br><br>I really appreciate the support, the great documentation out there and surely I will get back to the mailing list with more questions as I go forward with the migration.<br>
<br>Kind regards,</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 10, 2013 at 8:01 PM, Eli Adam <span dir="ltr"><<a href="mailto:eadam@co.lincoln.or.us" target="_blank">eadam@co.lincoln.or.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Fri, Jun 7, 2013 at 12:09 AM, Robert R. Raiz <<a href="mailto:raizrobert@gmail.com" target="_blank">raizrobert@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> Well, what I would like to do, is to have all the layers from a mapfile on a<br>
> separate row in the interface (all status = on, aka checked), to be able to<br>
> check and uncheck layers depending on what I want to see.<br>
><br>
> I tried several options but I just did not find an easy way to accomplish<br>
> this without inserting each layer separately in the map-source.<br>
<br>
</div>Does adding a map-source for each one work? I think that is the intended way.<br>
<span><font color="#888888"><br>
Eli<br>
</font></span><div><br>
><br>
> No matter which layers I add in the catalog for this reference, I still<br>
> have them all nested under one checkbox;<br>
><br>
> <map-source name="county" type="mapserver"><br>
> <file>./test/parcels/parcels.map</file><br>
> <layer name="parcels" status="on"/><br>
> <param name="FORMAT" value="image/png;bits=8"/><br>
> </map-source><br>
><br>
> Is there a way to do this?<br>
> --<br>
> Raiz Roland Robert<br>
><br>
><br>
><br>
</div><div><div>> _______________________________________________<br>
> Geomoose-users mailing list<br>
> <a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><b><i>Raiz Roland Robert</i></b><br><br><br>
</div>
<br>_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
<br></blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><b><i>Raiz Roland Robert</i></b><br><br><br>
</div>
</blockquote></div>