<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:System;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:System;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"System","sans-serif";mso-fareast-language:EN-GB'>Try STATUS OFF on all the layers.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"System","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"System","sans-serif";mso-fareast-language:EN-GB'>Regards,<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"System","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"System","sans-serif";mso-fareast-language:EN-GB'>Donald<o:p></o:p></span></b></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB'> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Malm Paul<br><b>Sent:</b> 05 June 2014 13:30<br><b>To:</b> 'mapserver-users@lists.osgeo.org'<br><b>Subject:</b> [mapserver-users] layer groups<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Hi<span style='color:#1F497D'>,<o:p></o:p></span></span></p><p class=MsoNormal><span lang=EN-US>I’m sorry to bother you with a question like this, but I have not found any information.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have a map file which INCLUDES a lot of layer files.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The layer files defines all layers of a chart. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>All the layers in the all layer files are assigned to a GROUP.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>When I’m connecting to the wms I would just like to get the GROUP, now I’m getting the GROUP, all separate layers and the whole map. This results in 3 times to much data.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The connection URL I’m using in WorldWind is:http://localhost/cgi-bin/mapserv?map=/tmp/test.map?SERVICE=WMS?REQUEST=Getmap?VERSION=1.1.1?LAYERS=BASE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The map file looks like this: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#------------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>MAP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>NAME 'test'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>CONFIG "PROJ_LIB" "/usr/src/mapserver/usr/local/share/proj"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>EXTENT -180 -90 180 90<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>SIZE 800 800<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>RESOLUTION 300<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>DEFRESOLUTION 72<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> PROJECTION<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 'init=epsg:4326'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> OUTPUTFORMAT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> NAME 'AGG'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </span><span lang=DA>DRIVER AGG/PNG<o:p></o:p></span></p><p class=MsoNormal><span lang=DA> IMAGEMODE RGB<o:p></o:p></span></p><p class=MsoNormal><span lang=DA> END<o:p></o:p></span></p><p class=MsoNormal><span lang=DA> </span><span lang=EN-US>WEB<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> IMAGEPATH '/tmp/'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> IMAGEURL '/tmp/'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> METADATA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> "ows_enable_request" "*"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 'wms_title' 'S57TEST'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </span><span lang=DA>'wms_srs' 'epsg:4326'<o:p></o:p></span></p><p class=MsoNormal><span lang=DA> END<o:p></o:p></span></p><p class=MsoNormal><span lang=DA> END <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> INCLUDE 'DE110000.lay'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> INCLUDE 'FI2SAISE.lay'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#---------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>All layer files looks almost the same but with different connections, the GROUP “BASE” is used to group the same type of layers from different charts. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>And the lay files typically looks like this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>LAYER<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> DATA "LNDARE"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> NAME "Ground3"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> GROUP "BASE"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> METADATA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> "wms_title" "Ground3"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> TYPE POLYGON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> STATUS ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CONNECTIONTYPE OGR<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CONNECTION "/tmp/ENC_ROOT/EE/EE3A0403/2/0/EE3A0403.000"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> PROCESSING "CLOSE_CONNECTION=DEFER"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> MAXSCALEDENOM 600000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CLASS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> STYLE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> COLOR 222 205 139<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>##### Seabed layers from scale 3 ######<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>LAYER<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> DATA "SBDARE"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> NAME "Seabed_Area3"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> GROUP "BASE"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> METADATA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> "wms_title" "Seabed_Area3"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> TYPE POLYGON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> STATUS ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CONNECTIONTYPE OGR<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CONNECTION "/tmp/ENC_ROOT/EE/EE3A0403/2/0/EE3A0403.000"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> PROCESSING "CLOSE_CONNECTION=DEFER"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> MAXSCALEDENOM 600000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> CLASS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> NAME "Seabed_area"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> STYLE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> COLOR 155 200 163<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#---------------------------------------------------<o:p></o:p></span></p></div></body></html>