[Mapserver-users] Newbie Question about rasters
Stephen Clark
stephen.clark at focus.ca
Fri Mar 26 16:30:34 PST 2004
try putting in the full path to the raster file sush as
LAYER # MODIS raster layer begins here
NAME modis
# DATA "raster/ak.jpg"
DATA "d:/maps/raster/ak.jpg"
STATUS DEFAULT
TYPE RASTER
# PROCESSING "BANDS=1"
# OFFSITE 71 74 65
END # MODIS raster layer ends here
If that does not work then check to see if the Jpeg world file is in the
same coordinate system as the the vector layers.
Stephen
----- Original Message -----
From: "Paul VanDyke" <pvandyke at kib.co.kodiak.ak.us>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Friday, March 26, 2004 2:50 PM
Subject: [Mapserver-users] Newbie Question about rasters
> 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
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list