[mapserver-users] Issue with mapserver rendering multiple layers

Mark K. Zanfardino mzanfardino at gmail.com
Wed May 11 21:19:05 EDT 2011


Skipped content of type multipart/alternative-------------- next part --------------
#
# Start of map file
#
MAP
  NAME ccc
  STATUS on
  EXTENT -122.40 37.70 -121.50 38.05
  SIZE 740 400
  UNITS dd
  SHAPEPATH "."
  IMAGECOLOR 255 255 255
  FONTSET "./fonts.list"
  TEMPLATEPATTERN "example"
  CONFIG "MS_ERRORFILE" "/var/log/mapserver.log"

  OUTPUTFORMAT
    NAME png
    DRIVER "GD/PNG"
    MIMETYPE "image/png"
    IMAGEMODE PC256
    EXTENSION "png"
  END
  OUTPUTFORMAT
    NAME png24
    DRIVER "GD/PNG"
    MIMETYPE "image/png"
    IMAGEMODE RGB
    EXTENSION "png"
  END
  OUTPUTFORMAT
    NAME jpeg
    DRIVER "GD/JPEG"
    MIMETYPE "image/jpeg"
    FORMATOPTION "QUALITY=75"
    IMAGEMODE RGB
    EXTENSION "jpg"
  END

  #
  # Projection definition, consult the PROJ.4 documentation for parameter discussion
  #
  PROJECTION
     "init=epsg:4326"
  END

  #
  # Start of web interface definition (including WMS enabling metadata)
  #
  WEB
    IMAGEPATH '/data/tmp/'
    IMAGEURL '/tmp/'
    METADATA
      WMS_TITLE "Contra Costa County Mapserver"
      WMS_ABSTRACT "This is a UMN MapServer application for Contra Costa County."
#      WMS_ACCESSCONSTRAINTS none
      # change this value to match your setup
      WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?"
      WMS_SRS "EPSG:4326"
    END
  END

  #
  # Start of LAYER DEFINITIONS ---------------------------------------------
  #
  LAYER
    NAME         	county
    DEBUG		3
    DATA		ccc_gis.county.shp
    STATUS      	OFF 
    TYPE         	POLYGON

    METADATA
      WMS_TITLE "Contra Costa County"
      WMS_ABSTRACT "County polygon for Contra Costa County."
      WMS_SRS "EPSG:4326"
    END

    PROJECTION
      "init=epsg:4326"
    END

    CLASS
      NAME	"Countywide"
      STYLE
        OUTLINECOLOR 	0 0 0
        COLOR 		242 239 233
      END
    END
  END # County polygon layer ends here

  #
  # Start of LAYER DEFINITIONS ---------------------------------------------
  #
  LAYER
    NAME                water
    DEBUG		3
    DATA		ccc_gis.water.shp
    STATUS              OFF
    TYPE                POLYGON

    METADATA
      WMS_TITLE "Contra Costa County"
      WMS_ABSTRACT "County polygon for Contra Costa County."
      WMS_SRS "EPSG:4326"
    END

    PROJECTION
      "init=epsg:4326"
    END

    CLASS
      NAME	"Bodies of Water"
      STYLE
        COLOR             155 177 205
      END
    END
  END # Water polygon layer ends here

END
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserv-5.0.3-image.png
Type: image/png
Size: 3707 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110511/7b59282a/mapserv-5.0.3-image-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserv-5.6.6-image.png
Type: image/png
Size: 3800 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110511/7b59282a/mapserv-5.6.6-image-0001.png


More information about the mapserver-users mailing list