[Gdal-dev] MrSID, GDAL & Mapserver
Chapman, Martin
MChapman at sanz.com
Thu Feb 17 21:46:07 EST 2005
Yar,
I really couldn't tell you whether it's all correct or not, but it looks like gdal read it just fine...which would mean your problem is somewhere else. I did notice it's pretty big though. It may take several minutes to open if MapServer is loading the whole thing. Did you copy the new gdal lib and dll into the mapserver directory for libs? Can you open it with the imageviewer exe that comes with the mrsid sdk? It's in /bin or something like that. Can you try to use a smaller sid file. This sounds like a MapServer config issue to me.
Martin
-----Original Message-----
From: Yar [mailto:numerous at gmail.com]
Sent: Thu 2/17/2005 5:34 PM
To: gdal-dev at remotesensing.org
Cc:
Subject: [Gdal-dev] MrSID, GDAL & Mapserver
Thank you Frank and Martin,
I got gdalinfo to work, I still cannot display my MrSID, and I'm getting the
same error message in IE.
I do get the following info when I run gdalinfo on my file:
C:\ITS\GDAL\125\bin>gdalinfo
Usage: gdalinfo [--help-general] [-mm] [-nogcp] [-nomd] datasetname
C:\ITS\GDAL\125\bin>gdalinfo --format mrsid
Format Details:
Short Name: MrSID
Long Name: Multi-resolution Seamless Image Database (MrSID)
Help Topic: frmt_mrsid.html
C:\ITS\GDAL\125\bin>
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>
Any hints on what I should try next to display the MrSID, could it be a layer
problem?
Thank you!
Yar
_______________________________________________
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
http://xserve.flids.com/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list