displaying mrsid files in mapserver

John Spotten John.Spotten at CAPETOWN.GOV.ZA
Mon Feb 14 09:28:10 EST 2005


NOTE:  This e-mail (including attachments) is subject to the restrictions, qualifications
 and disclaimers (“disclaimer”) published at www.capetown.gov.za/disclaimer/email.pdf.
Please read the disclaimer before opening any attachment or taking any other action in
terms of this e-mail. If you cannot access the disclaimer, kindly send an email to
infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail
or opening any attachment you agree to be bound by the provisions of the disclaimer.

-------------------------------------------------

Hi Frank,

Sorry for the delay.
I couldn't send the w55d.sid mrsid file that doesn't display because it is rather large 60mb.

below is an extract from the gdalinfo utility for w45a03.sid (3mb) and w55d.sid (60mb).

I previously sent you mrsidinfo utility information for both files.

any help would be much appreciated. I notice that the origin and pixel size properties in w45a03.sid are not present for w55d.sid. I get the impression that the input img file had georeferencing for w45a03.sid but this was not the case for the input tiff file for w55d.sid

I take it that gdal doesn't refer to any georeferencing info in the associated sdw world files. the sdw georeferencing info is correct as they display in mapinfo correctly.

I altered my map extent to cover the absolute image pixel range (0,0) to (20000,20000) 1pixel=1m ,assuming no georeferencing but no luck, still can't see it.

maybe georeferencing is not the problem,  can I use gdal_translate or gdal_warp to add georeferencing to a sid file,  it works for ecw, the gdal12.dll I have is only read only for mrsid files.

C:\MS4W\Apache\binary>gdalinfo c:\ms4w\apps\mapserver_demos\ct\data\w45a03.sid
Driver: MrSID/Multi-resolution Seamless Image Database (MrSID)
Size is 4000, 4000
Coordinate System is `'
Origin = (-48000.125000,-3749999.875000)
Pixel Size = (0.25000000,-0.25000000)
Metadata:
  IMAGE__WIDTH=4000
  IMAGE__HEIGHT=4000
  IMAGE__INPUT_NAME=d:/checking/cmc/resize/w45a img/48000w3751000s.img
  IMAGE__INPUT_FILE_SIZE=48953355.000000
  IMAGE__BITS_PER_SAMPLE=8
  IMAGE__COLOR_SCHEME=0
  IMAGE__DATA_TYPE=0
  IMAGE__DYNAMIC_RANGE_LEVEL=127.500000
  GEOTIFF_NUM__1024__GTModelTypeGeoKey=0
  GEOTIFF_CHAR__GTModelTypeGeoKey=Undefined
  GEOTIFF_NUM__1025__GTRasterTypeGeoKey=1
  GEOTIFF_CHAR__GTRasterTypeGeoKey=RasterPixelIsArea
  IMAGE__DYNAMIC_RANGE_WINDOW=255.000000
  GEOTIFF_NUM__3076__ProjLinearUnitsGeoKey=9014
  GEOTIFF_CHAR__ProjLinearUnitsGeoKey=Linear_Fathom
  IMG__HORIZONTAL_UNITS=other
  GEO__ModelTypeGeoKey=0
  IMAGE__COMPRESSION_VERSION=1,4,1
  IMAGE__TARGET_COMPRESSION_RATIO=20.000000
  IMAGE__COMPRESSION_NLEV=4
  IMAGE__COMPRESSION_WEIGHT=4.000000
  IMAGE__COMPRESSION_GAMMA=2.000000
  IMAGE__COMPRESSION_BLOCK_SIZE=512
  IMAGE__CREATION_DATE=Fri Aug 16 08:51:06 2002

  IMAGE__XY_ORIGIN=-48000.000000,-3750000.000000
  IMAGE__X_RESOLUTION=0.250000
  IMAGE__Y_RESOLUTION=0.250000
Corner Coordinates:
Upper Left  (  -48000.125,-3749999.875)
Lower Left  (  -48000.125,-3750999.875)
Upper Right (  -47000.125,-3749999.875)
Lower Right (  -47000.125,-3750999.875)
Center      (  -47500.125,-3750499.875)
Band 1 Block=4000x64 Type=Byte, ColorInterp=Red
  Overviews: 2000x2000, 1000x1000, 500x500
Band 2 Block=4000x64 Type=Byte, ColorInterp=Green
  Overviews: 2000x2000, 1000x1000, 500x500
Band 3 Block=4000x64 Type=Byte, ColorInterp=Blue
  Overviews: 2000x2000, 1000x1000, 500x500

C:\MS4W\Apache\binary>gdalinfo c:\ms4w\apps\mapserver_demos\ct\data\w55d.sid
Driver: MrSID/Multi-resolution Seamless Image Database (MrSID)
Size is 20000, 20000
Coordinate System is `'
Metadata:
  IMAGE__STATISTICS_MIN=0,0,0
  IMAGE__STATISTICS_MAX=255,255,255
  IMAGE__STATISTICS_MEAN=97.900520,98.108212,73.540150
  IMAGE__STATISTICS_STANDARD_DEVIATION=52.734737,50.228818,39.639725
  IMAGE__INPUT_FORMAT=TIFF
  IMAGE__WIDTH=20000
  IMAGE__HEIGHT=20000
  IMAGE__COLOR_SCHEME=0
  IMAGE__DATA_TYPE=0
  IMAGE__BITS_PER_SAMPLE=8
  IMAGE__INPUT_NAME=Y:\PH-2001-04 CMC - 5km tiffs\5km tiff`s 2nd batch\w55d.tif
  IMAGE__INPUT_FILE_SIZE=1200008300.000000
  IMAGE__COMPRESSION_VERSION=2,0,0
  IMAGE__TARGET_COMPRESSION_RATIO=20.000000
  IMAGE__COMPRESSION_NLEV=9
  IMAGE__COMPRESSION_WEIGHT=4.000000
  IMAGE__COMPRESSION_GAMMA=2.000000
  IMAGE__COMPRESSION_BLOCK_SIZE=768
  IMAGE__CREATION_DATE=Sun Feb 16 15:14:19 2003

  IMAGE__XY_ORIGIN=0.000000,19999.000000
  IMAGE__X_RESOLUTION=1.000000
  IMAGE__Y_RESOLUTION=1.000000
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,20000.0)
Upper Right (20000.0,    0.0)
Lower Right (20000.0,20000.0)
Center      (10000.0,10000.0)
Band 1 Block=20000x64 Type=Byte, ColorInterp=Red
  Overviews: 10000x10000, 5000x5000, 2500x2500, 1250x1250, 625x625, 313x313, 157
x157, 79x79
Band 2 Block=20000x64 Type=Byte, ColorInterp=Green
  Overviews: 10000x10000, 5000x5000, 2500x2500, 1250x1250, 625x625, 313x313, 157
x157, 79x79
Band 3 Block=20000x64 Type=Byte, ColorInterp=Blue
  Overviews: 10000x10000, 5000x5000, 2500x2500, 1250x1250, 625x625, 313x313, 157
x157, 79x79

thanks in anticipation,
john

John Spotten
Transport Modeller/GIS Developer
Directorate of Transport, Roads and Stormwater
City of Cape Town
Tel : +27 21 4067325
Fax : +27 21 4186989
Cell : +27 846678901
Email : john.spotten at capetown.gov.za
Web : www.capetown.gov.za


-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]
Sent: 26 January 2005 04:37 PM
To: John Spotten
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] displaying mrsid files in mapserver


On Wed, 26 Jan 2005 13:31:12 +0200, John Spotten
<John.Spotten at capetown.gov.za> wrote:
> is the complete mrsid file loaded into memory on the server or only the
> portion that is in the view before being sent as a gif , my output format? 

John,

MapServer extracts a subregion of the file at the resolution of the
output map rendering.  It does not load the whole file.

Can you provide me a .sid file that doesn't display for you?  (off list)

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

-------------- next part --------------
A non-text attachment was scrubbed...
Name: John Spotten.vcf
Type: text/x-vcard
Size: 226 bytes
Desc: John Spotten.vcf
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050214/8ac497fe/JohnSpotten.vcf


More information about the mapserver-users mailing list