[Mapserver-users] Newbie Question about rasters

Paul VanDyke pvandyke at kib.co.kodiak.ak.us
Fri Mar 26 14:50:25 PST 2004


I've got a working installation of Mapserver w/ some test maps @
209.165.152.94.  Please feel free to drop by and check them out.  I'd
like to add a raster image layer to my maps.  I can't seem to get the
raster working w/ Mapserver.  I am using the same raster image in ArcGIS
and it works fine.  

I've tried several different things to try and make it work.  Please
give me any hints, clues or advice that you think is relative.  No help
will be turned away. :-)

Here is my map file:

MAP
  NAME map6
  IMAGETYPE PNG24
  EXTENT -903026 648632 1888140 1849511
  SIZE 800 400
  SHAPEPATH "data"
  IMAGECOLOR 255 255 255
#  DEBUG ON

  WEB
    TEMPLATE  'map6.html'
    IMAGEPATH 'c:/program files/apache group/apache2/htdocs/tmp/'
    IMAGEURL '/tmp/'
#    LOG 'c:\mapserver.log'
  END


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

  LAYER # water
	NAME water
	DATA kib_boundary
	STATUS DEFAULT
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 115 207 255
		OUTLINECOLOR 32 32 32
	  END
	END
   END
  


  LAYER # coast
	NAME coast
	DATA kib_coast
	STATUS DEFAULT
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 0 216 56
		OUTLINECOLOR 32 32 32
	  END
	END
   END


 LAYER # MODIS raster layer begins here
    NAME modis
    DATA "raster/ak.jpg"
    STATUS DEFAULT
    TYPE RASTER
#    PROCESSING "BANDS=1"
#    OFFSITE 71 74 65
  END # MODIS raster layer ends here




  LAYER # parcels polygon layer begins here
    NAME parcels
    DATA parcels2
    STATUS ON
    TYPE POLYGON

    CLASS
      STYLE
        COLOR 241 238 163
        OUTLINECOLOR 32 32 32
      END
    END
  END # States polygon layer ends here


  LAYER # lakes
	NAME lakes
	DATA lake
	STATUS OFF
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 39 70 255
		OUTLINECOLOR 32 32 32
	  END
	END
   END

  LAYER # rivers
	NAME rivers
	DATA river
	STATUS OFF
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 39 70 255
		OUTLINECOLOR 32 32 32
	  END
	END
   END

  LAYER # roads
	NAME roads
	DATA roads
	STATUS OFF
	TYPE LINE

	CLASS
	  STYLE
		COLOR 0 0 0
		OUTLINECOLOR 32 32 32
	  END
	END
   END

  SCALEBAR
    IMAGECOLOR 255 255 255
    LABEL
      COLOR 0 0 0
      SIZE TINY
    END
    STYLE 1
    SIZE 100 2
    COLOR 0 0 0
    UNITS MILES
    INTERVALS 2
    TRANSPARENT FALSE
    STATUS ON
  END




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


END # end of map file/object




More information about the MapServer-users mailing list