[mapserver-users] New to mapserver. Cannot render TIFF
aphunter
a1hunter at ucsd.edu
Tue Sep 6 10:14:20 PDT 2011
Hello. I am new to MapServer and I am having some trouble. I've got a sample
MAP file that I created from some examples (and modified based on this
thread:
http://osgeo-org.1803224.n2.nabble.com/Cannot-display-raster-MS4W-shows-white-rectangle-instead-td4996020.html)
however, I am still getting blank images when using shp2img.
In my mapfile, if I change overview3.tif to overview3.png (which I manually
converted to a PNG), the images show up just fine. I made sure my extent was
setup properly as well based on the gdalinfo (below). Can anybody please
help me figure out why I get a blank image when using a TIF file, but not a
PNG as the input? MapServer was compiled using GDAL as opposed to the native
TIFF support as the readme said it was more efficient.
Thank You!
-- GDALINFO
Driver: GTiff/GeoTIFF
Files: overview3.tif
Size is 2222, 2459
Coordinate System is:
PROJCS["NAD83 / UTM zone 11N",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.2572221010002,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4269"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-117],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","26911"]]
Origin = (222400.000000000000000,4210380.000000000000000)
Pixel Size = (250.000000000000000,-250.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 222400.000, 4210380.000) (120d 9'40.96"W, 37d59'55.05"N)
Lower Left ( 222400.000, 3595630.000) (119d57'12.04"W, 32d27'47.78"N)
Upper Right ( 777900.000, 4210380.000) (113d50'6.76"W, 37d59'54.72"N)
Lower Right ( 777900.000, 3595630.000) (114d 2'36.48"W, 32d27'47.51"N)
Center ( 500150.000, 3903005.000) (116d59'54.06"W, 35d16'12.63"N)
Band 1 Block=2222x1 Type=Byte, ColorInterp=Red
Mask Flags: PER_DATASET ALPHA
Band 2 Block=2222x1 Type=Byte, ColorInterp=Green
Mask Flags: PER_DATASET ALPHA
Band 3 Block=2222x1 Type=Byte, ColorInterp=Blue
Mask Flags: PER_DATASET ALPHA
Band 4 Block=2222x1 Type=Byte, ColorInterp=Alpha
-- MAPFILE (Thanks to Kresh in the previous post)
MAP
NAME Industri
IMAGETYPE JPEG
EXTENT 222400 222400 421000 421000
STATUS ON
UNITS METERS # satuan meter, UTM
SIZE 600 400
SHAPEPATH "C:\mapfiles\shp"
IMAGECOLOR 255 255 255
WEB
IMAGEPATH '/var/www/docs_maps/tmp/'
IMAGEURL '/docs_maps/tmp/'
TEMPLATE '/var/www/workshop-5.4/itasca_basic.html'
END
#
# Mulai pendefinisian layers
#
LAYER
NAME global-raster
TYPE RASTER
STATUS DEFAULT
DATA "/var/www/docs_maps/tmp/overview3.tif" #<--- changing this to the
PNG works great
CLASS
NAME 'global-raster'
END
END
#
LEGEND
STATUS ON
KEYSIZE 18 12
KEYSPACING 2 3
TRANSPARENT OFF
LABEL
TYPE BITMAP
COLOR 0 0 0
SIZE SMALL
END
TEMPLATE '/var/www/workshop-5.4/itasca_basic.html'
END
END
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/New-to-mapserver-Cannot-render-TIFF-tp6764772p6764772.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list