Mapserver does not display my MrSID
Yar Doroshenko
numerous at GMAIL.COM
Mon Feb 21 19:21:21 EST 2005
Hi Guys, I need some help. I'm a new mapserver user.
I'm using Mapserver 4.2 and GDAL 1.2.5
I have compiled GDAL with DSDK for MrSID support.
In my map file I defined a a layer
LAYER
NAME "14_1_1.sid"
data "mrsid/14_1_1.sid"
status default
type raster
#processing "bands=1, 2, 3"
END
My sid folder with 14_1_1.sid image has the following path:
C:\ITS\Apache2\htdocs\statewide\shape_files\mrsid
Next, when I open my map in the browser I get a blank screen. When I go to
View->Source in my IE6, I see the following error:
_________________________________________________________
<b>Warning</b>: [MapServer Error]: msDrawMap(): Failed to draw layer
named '14_1_1.sid'.
in <b>C:\ITS\Apache2\htdocs\statewide\index.php</b> on line <b>259</b><br />
<br />
<b>Warning</b>: [MapServer Error]: msDrawRaster(): Unrecognized or
unsupported image format
in <b>C:\ITS\Apache2\htdocs\statewide\index.php</b> on line <b>259</b><br />
<br />
<b>Warning</b>: [MapServer Error]: drawEPP(): EPPL7 support is not
available.
in <b>C:\ITS\Apache2\htdocs\statewide\index.php</b> on line <b>259</b><br />
<br />
<b>Fatal error</b>: Object expected as argument. in
<b>C:\ITS\Apache2\htdocs\statewide\index.php</b> on line <b>280</b><br
/>
________________________________________________________________
I know that GDAL reads my MrSId, here is what I get when I run gdalinfo on
my MrSID image:
C:\ITS\GDAL\125\bin>gdalinfo C:\ITS\Apache2
\htdocs\statewide\shape_files\mrsid\1
4_1_1.sid
Driver: MrSID/Multi-resolution Seamless Image Database (MrSID)
Size is 24066, 25370
Coordinate System is:
PROJCS["unnamed",
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",-99],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","26914"]]
Origin = (653334.000000,3916062.000000)
Pixel Size = (0.30000000,-0.30000000)
Metadata:
GEOTIFF_CHAR__GTModelTypeGeoKey=ModelTypeProjected
GEOTIFF_CHAR__GTRasterTypeGeoKey=RasterPixelIsArea
GEOTIFF_CHAR__ProjectedCSTypeGeoKey=PCS_NAD83_UTM_zone_14N
GEOTIFF_CHAR__ProjLinearUnitsGeoKey=Linear_Meter
GEOTIFF_NUM__1024__GTModelTypeGeoKey=1
GEOTIFF_NUM__1025__GTRasterTypeGeoKey=1
GEOTIFF_NUM__1026__GTCitationGeoKey=IMAGINE GeoTIFF Support
Copyright 1991 - 2001 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: egtf.c $ $Revision: 1.9.2.4 $ $Date: 2002/01/24 16:43:13Z $
Projection Name = NAD_1983_UTM_Zone_14N
Units = meters
GeoTIFF Units = meters
GEOTIFF_NUM__3072__ProjectedCSTypeGeoKey=26914
GEOTIFF_NUM__3073__PCSCitationGeoKey=IMAGINE GeoTIFF Support
Copyright 1991 - 2001 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: egtf.c $ $Revision: 1.9.2.4 $ $Date: 2002/01/24 16:43:13Z $
UTM Zone 14N
Ellipsoid = GRS 1980
Datum = NAD83
GEOTIFF_NUM__3076__ProjLinearUnitsGeoKey=9001
IMAGE__BITS_PER_SAMPLE=8
IMAGE__COLOR_SCHEME=0
IMAGE__COMPRESSION_BLOCK_SIZE=512
IMAGE__COMPRESSION_GAMMA=2.000000
IMAGE__COMPRESSION_NLEV=9
IMAGE__COMPRESSION_VERSION=2,0,0
IMAGE__COMPRESSION_WEIGHT=2.000000
IMAGE__CREATION_DATE=Fri Apr 16 18:34:39 2004
IMAGE__DATA_TYPE=0
IMAGE__DYNAMIC_RANGE_LEVEL=127.500000
IMAGE__DYNAMIC_RANGE_WINDOW=256.000000
IMAGE__HEIGHT=25370
IMAGE__INPUT_FILE_SIZE=1831867219.000000
IMAGE__INPUT_FORMAT=GeoTIFF
IMAGE__INPUT_NAME=I:\OKC_High_Res\14_1_area01\ochipdata.tif
IMAGE__TARGET_COMPRESSION_RATIO=20.000000
IMAGE__WIDTH=24066
IMAGE__XY_ORIGIN=653334.150000,3916061.850000
IMAGE__X_RESOLUTION=0.300000
IMAGE__Y_RESOLUTION=0.300000
Corner Coordinates:
Upper Left ( 653334.000, 3916062.000) ( 97d18'43.12"W, 35d22'34.01"N)
Lower Left ( 653334.000, 3908451.000) ( 97d18'48.26"W, 35d18'27.06"N)
Upper Right ( 660553.800, 3916062.000) ( 97d13'57.11"W, 35d22'29.92"N)
Lower Right ( 660553.800, 3908451.000) ( 97d14'2.49"W, 35d18'22.98"N)
Center ( 656943.900, 3912256.500) ( 97d16'22.74"W, 35d20'28.52"N)
Band 1 Block=24066x64 Type=Byte, ColorInterp=Red
Overviews: 12033x12685, 6017x6343, 3009x3172, 1505x1586, 753x793,
377x397, 189
x199, 95x100
Band 2 Block=24066x64 Type=Byte, ColorInterp=Green
Overviews: 12033x12685, 6017x6343, 3009x3172, 1505x1586, 753x793,
377x397, 189
x199, 95x100
Band 3 Block=24066x64 Type=Byte, ColorInterp=Blue
Overviews: 12033x12685, 6017x6343, 3009x3172, 1505x1586, 753x793,
377x397, 189
x199, 95x100
C:\ITS\GDAL\125\bin>
__________________________
How do I configure my Mapserver 4.2 to work with GDAL? Do I need to
reinstall the mapserver or can I simply change mapserver configuration or
manually tweak some ini's or dll's?
Please e-mail numerous at gmail.com
Thank you!!!
More information about the Tcmug
mailing list