Implementing line and polygon layers.

Owens, Ryan J NWD02 CONTRACTOR Ryan.J.Owens at NWO02.USACE.ARMY.MIL
Tue May 31 12:19:12 PDT 2005


Please disregard this message.  I learned that my Flash viewer only accepts
four layers, and I have obviously exceeded that amount with this map file.

Thanks,
Ryan

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Owens, Ryan J NWD02 CONTRACTOR
Sent: Tuesday, May 31, 2005 1:45 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Implementing line and polygon layers.

Hello list serve,

I have a map file that I am trying to implement a number of layers in (line,
raster, and polygon).  I have a "river" layer, a "lakes" layer, a
"state_shapes" layer and a "basin" layer.  For some reason I am unable to
implement the "lakes" and "states_shapes" layers simultaneously.  Could
someone scan over my map file code to see if I've made any errors?  I can
implement each layer individually, but when combined, one of the layers goes
away.

Thanks in advance.
Ryan

MAP
  NAME           FMV_
   EXTENT       -535681 116823 1337533 1458918

  WEB
    log "./test.log"
    TEMPLATE  "test_template.html"
    IMAGEPATH "./tmp/"
    IMAGEURL  "[domain]/fmv/test/tmp/"
  END

  DEBUG ON

  OUTPUTFORMAT
    NAME swf
    DRIVER "SWF"
    MIMETYPE "application/x-shockwave-flash"
    EXTENSION "swf"
    IMAGEMODE PC256
    FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
  END

  IMAGETYPE swf

  SIZE           460 500
  SHAPEPATH      "data"
  IMAGECOLOR     255 255 255

  PROJECTION
    "proj=laea"
    "ellps=clrk66"
    "lat_0=45"
    "lon_0=-100"

  # Alternatively, you can specify an EPSG code.
  # "init=epsg:2163"

  END

# Start of LAYER DEFINITIONS ---------------------------------------------

 LAYER
   NAME "basin"
   DATA basin_alb.TIF
   STATUS DEFAULT
   TYPE RASTER

 # PROJECTION
 # END
 END

 LAYER
   NAME "river"
   DATA missouri_river
   STATUS DEFAULT
   TYPE LINE

  METADATA
    "SWFDUMPATTRIBUTES" "NAME,LENGTH"
  END

CLASS
    COLOR 0 0 254
  END
 END

 LAYER
   NAME "lakes"
   DATA mainstem_lakes
   STATUS DEFAULT
   TYPE POLYGON

   CLASS
     COLOR 0 0 0
     OUTLINECOLOR 0 0 0
   END

   METADATA
     "SWFDUMPATTRIBUTES" "LAKE_NAME,AREA"
   END
 END

 LAYER
   NAME "state_shapes"
   DATA states
   STATUS DEFAULT
   TYPE LINE

   CLASS
     COLOR 0 0 0
    END
 END

# LAYER
#   NAME dcp
#   DATA dcps
#   STATUS DEFAULT
#   TYPE   POINTS

#   METADATA
#    "SWFDUMPATTRIBUTES,MRADS_ID"
#   END

#   CLASS
#    NAME "POINTS"
#     STYLE
#      SYMBOL "circle"
#      SIZE 1
#      COLOR 0 0 0
#     END
#    END

END

#End of LAYER DEFINITIONS ---------------------------------------------

END # end of map file/object^M



More information about the MapServer-users mailing list