MrSID support in Mapserver 4.4.1

Yar Doroshenko numerous at GMAIL.COM
Thu Apr 14 17:57:12 EDT 2005


Hi Guys,

Need some help:

I'm running Mapserver 4.4.1 on a Windows machine. I am using PHP. I got the
source code from http://mapserver.gis.umn.edu/win32binaries.html
(ms441oci.zip)

It is compiled with GDAL, but GDAL that it's compiled with doesn't support
MrSID.

I got LizardTech DSDK and compiled my own GDAL 1.2.5
It compiled fine, I'm able to view MrSID images with the mrsidviewer.
gdalinfo works fine on my mrsid image, see output below. I want to use
MrSID since my MrSIDs are only 60-70 Mb, and when I convert them to TIF -
they grow to 1.7 Gb each. The question is: how do I make my Mapserver 4.4.1
from http://mapserver.gis.umn.edu/win32binaries.html work with my GDAL
1.2.5 ??? Of course, I could compile my own Mapserver - but that's a very
error-prone process on a Windows machine. Does anyone know of an option to
reconfigure Mapserver 4.4.1 installation without having to rebuild it? Do I
simply need to point it to use frmts\mrsid drivers? Is there any way to
achieve this? I will be glad to share my GDAL 1.2.5 with MrSID support.

Here is how I defined my MrSID layer:

LAYER
 NAME "14_1_1.sid"
 data mrsid
 type raster
 status default
END

Here is gdalinfo output for 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>


THANK YOU!!!!



More information about the mapserver-users mailing list