[mapserver-users] Include directive and mapscript

Paul Moen pmoen at offroadsoftware.com
Tue Mar 24 11:01:49 EDT 2009


Here is the fedlands.map that I am including.

LAYER
   PROJECTION
     "init=epsg:4326"
   END
   GROUP "Political Boundaries"
   NAME "Public Land Management Agencies"
   TYPE RASTER
   STATUS ON
   CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false 
"
   CONNECTIONTYPE WMS
   METADATA
   "wms_srs" "EPSG:4326"
   "wms_name" "SMA_ALL"
   "wms_server_version" "1.1.1"
   "wms_format" "image/gif"
   END
END

This is the section of the mapfile that the include is located.


INCLUDE 'fedlands.map'


The output of the map->save function gives the layer below, which no  
longer has the GROUP.  Somewhere along the line the GROUP directive is  
disappearing from my layer when it is included.

LAYER
     CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false 
"
     CONNECTIONTYPE WMS
     METADATA
       "wms_srs"	"EPSG:4326"
       "wms_name"	"SMA_ALL"
       "wms_format"	"image/gif"
       "wms_server_version"	"1.1.1"
     END
     NAME "All Public Land Management Agencies"
     PROJECTION
       "init=epsg:4326"
     END
     STATUS ON
     TYPE RASTER
     UNITS METERS
   END


Any Ideas?

Paul
  



More information about the mapserver-users mailing list