Raster question
John Lee
jlee at BROOKES.AC.UK
Wed Jul 27 07:52:57 PDT 2005
Hello all, I am brand new to Mapserver and I am having problems with
displaying raster images. I am trying to add tiff files to the map but
without success. Here is my setup:
OS: RedHat 9.0
Mapserv -v
MapServer version 4.0.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=TIFF
INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
**************************************************
gdal-config --version
1.2.0
gdal-config --formats
gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem
envisat elas fit vrt usgsdem l1b nitf bmp pcidsk bsb gif jpeg png
gdalinfo sp61sw
gdalinfo sp61sw.tif
Driver: GTiff/GeoTIFF
Size is 7874, 7874
Coordinate System is `'
GeoTransform =
459998.0849922193, 0.6352797811702, 3.944043093e-05
215000.6450375828, 1.074038916e-05, -0.63528696674458
Metadata:
TIFFTAG_IMAGEDESCRIPTION=1:10000 TILE sp61sw
TIFFTAG_DATETIME=1998:08:05 20:24:30
TIFFTAG_XRESOLUTION=400
TIFFTAG_YRESOLUTION=400
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Corner Coordinates:
Upper Left ( 459998.085, 215000.645)
Lower Left ( 459998.396, 209998.395)
Upper Right ( 465000.278, 215000.730)
Lower Right ( 465000.589, 209998.480)
Center ( 462499.337, 212499.563)
Band 1 Block=7874x8 Type=Byte, ColorInterp=Palette
Color Table (RGB with 2 entries)
0: 255,255,255,255
1: 0,0,0,255
****************************************************************
MAP File
MAP
IMAGETYPE PNG
EXTENT 459998.396 209998.395 465000.278 215000.730
SIZE 600 800
SHAPEPATH "data"
# Start of Raster LAYER DEFINITIONS
---------------------------------------------
LAYER # OS raster layer begins here
NAME "OS_Raster"
DATA "sp61sw_miniswhite.tif" # Raster file name
STATUS On
TYPE raster
PROJECTION
"init=epsg:4278"
END
PROCESSING "Bands=1,2,3,4"
#PROCESSING "SCALE=AUTO"
#PROCESSING "DITHER=YES"
#PROCESSING "COLOR_MATCH_THRESHOLD=3"
END # OS Raster layer ends here
END
# End of MAP object ****************************************
I have tried lots of different approaches. I haven't re-installed Mapserver
yet as it seems that I installed it with GTiff and GDAL support (and its a
last resort!). It may be that I cannot display current GB Ordnance Survey
maps because of some copyright, but I can display them in other applicatins
(GIMP, ImageViewer etc.). My other thought is that Mapserver cannot deal
with RGB TIFF files, but I'm unsure as to how to convert these to Mapserver
readable types.
I would really appreciate any help.
Thanks in advance
John Lee
More information about the MapServer-users
mailing list