I have several rasters in a single mapfile, I put them as layers like here:
LAYER NAME "Layer 1" GROUP "All Layers" TYPE RASTER STATUS ON DATA "layer1.png" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Layer 1" "wms_srs" "EPSG:4326" "wms_group_title" "All layers" "wms_abstract" "No abstract" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_include_items" "all" "gml_include_items" "all" "gml_geom_type" "raster" ENDENDLAYER NAME "Layer 2" GROUP "All Layers" TYPE RASTER STATUS ON DATA "layer2.png" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Layer 2" "wms_srs" "EPSG:4326" "wms_group_title" "All layers" "wms_abstract" "No abstract" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_include_items" "all" "gml_include_items" "all" "gml_geom_type" "raster" ENDENDLAYER NAME "Layer 3" GROUP "All Layers" TYPE RASTER STATUS ON DATA "layer3.png" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Layer 3" "wms_srs" "EPSG:4326" "wms_group_title" "All layers" "wms_abstract" "No abstract" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_include_items" "all" "gml_include_items" "all" "gml_geom_type" "raster" ENDENDThe problem is that I want to have a single WMS layer (named as in GroupTitle) as output from this mapfile (because it is only one mapfile), instead I have four WMS layers (three coming from each LAYER and one from the GROUP LAYER).
How can I achieve what I want? I use Mapserver 6.4.1 in OL 2.11.
Any ideas are welcomed, thanks in advance,
أكثر...
LAYER NAME "Layer 1" GROUP "All Layers" TYPE RASTER STATUS ON DATA "layer1.png" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Layer 1" "wms_srs" "EPSG:4326" "wms_group_title" "All layers" "wms_abstract" "No abstract" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_include_items" "all" "gml_include_items" "all" "gml_geom_type" "raster" ENDENDLAYER NAME "Layer 2" GROUP "All Layers" TYPE RASTER STATUS ON DATA "layer2.png" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Layer 2" "wms_srs" "EPSG:4326" "wms_group_title" "All layers" "wms_abstract" "No abstract" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_include_items" "all" "gml_include_items" "all" "gml_geom_type" "raster" ENDENDLAYER NAME "Layer 3" GROUP "All Layers" TYPE RASTER STATUS ON DATA "layer3.png" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Layer 3" "wms_srs" "EPSG:4326" "wms_group_title" "All layers" "wms_abstract" "No abstract" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_include_items" "all" "gml_include_items" "all" "gml_geom_type" "raster" ENDENDThe problem is that I want to have a single WMS layer (named as in GroupTitle) as output from this mapfile (because it is only one mapfile), instead I have four WMS layers (three coming from each LAYER and one from the GROUP LAYER).
How can I achieve what I want? I use Mapserver 6.4.1 in OL 2.11.
Any ideas are welcomed, thanks in advance,
أكثر...