problem with TIF on windows
Jacob Delfos
jacob.delfos at MAUNSELL.COM
Mon Jun 6 02:01:32 PDT 2005
Jiri,
Your TIFF uses a JPEG compression internally. TIFF files can use quite a
few different kind of compressions. It seems your TIFF file is not
healthy. Is there any particular reason why you do not want to use a
JPG, since your file seems unhealthy, and since JPG works? If it already
uses a JPG compression internally anyway, converting it to JPEG will not
be a major drama in loss of quality.
You could use a simple program like Irfanview (www.irfanview.com; easy
to use) to convert it to another format, or even to .tif format
(choosing your preferred compression). Make sure to keep the .tfw file
(best rename to .wld file for jpeg), and don't resize your image.
regards,
Jacob
-----Original Message-----
From: UMN MapServer Users List
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: 6/6/2005 3:15 AM
Subject: Re: [UMN_MAPSERVER-USERS] problem with TIF on windows
This is output of gdalinfo:
Warning 1: c:\web\data\vm\Jhra_0_0.tif:incorrect count for field
"JPEGTables" (574, expecting 4294967293); tag ignored
ERROR 1: JPEGLib:JPEG parameter struct mismatch: library thinks size is
464, caller expects 432
Warning 1: RowsPerStrip not defined ... assuming all one strip.
Driver: GTiff/GeoTIFF
Size is 2500, 2000
Coordinate System is `'
Origin = (-702500.250000,-1139999.750000)
Pixel Size = (1.00000000,-1.00000000)
Metadata:
TIFFTAG_XRESOLUTION=96
TIFFTAG_YRESOLUTION=96
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Corner Coordinates:
Upper Left ( -702500.250,-1139999.750)
Lower Left ( -702500.250,-1141999.750)
Upper Right ( -700000.250,-1139999.750)
Lower Right ( -700000.250,-1141999.750)
Center ( -701250.250,-1140999.750)
Band 1 Block=2500x2000 Type=Byte, ColorInterp=Red
Band 2 Block=2500x2000 Type=Byte, ColorInterp=Green
Band 3 Block=2500x2000 Type=Byte, ColorInterp=Blue
Band 4 Block=2500x2000 Type=Byte, ColorInterp=Alpha
Jiri
Bart van den Eijnden napsal(a):
> Try to run gdalinfo on your TIFF file. What is the output?
>
> Gdalinfo is part of FWtools:
>
> http://fwtools.maptools.org/
>
> Best regards,
> Bart
>
> On Sun, 05 Jun 2005 20:16:14 +0200, Ing. Jirí Cajthaml
> <jiri.cajthaml at FSV.CVUT.CZ> wrote:
>
>> Hi,
>> I am a beginner with using Mapserver, and I have problem to display
my
>> TIF files.
>> I am using Mapserver 4.4.0 on Windows XP,
>>
>> MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS
>> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
>>
>> I wanted to create a very simple mapfile with only raster layer, but
it
>> doesn't display. If I use JPG file, it works...
>> Does anybody know why? (or what to do..)
>>
>> My Tiff file is probably compressed, and has *.tfw georefference
>>
>> MAP
>> EXTENT -721000 -1143000 -717750 -1142000
>> SIZE 500 400
>> UNITS meters
>> SHAPEPATH "c:\web\data\vm\"
>> TRANSPARENT ON
>> IMAGECOLOR 255 255 255
>> FONTSET "C:\WINDOWS\fonty\font.list"
>>
>> IMAGETYPE JPEG
>>
>> PROJECTION
>> "init=epsg:2065"
>> END
>>
>> LAYER
>> NAME Ortofoto10
>> DATA Jhra_7_1.jpg
>> TYPE RASTER
>> STATUS DEFAULT
>> END
>>
>> END
>>
>> Thanks, Jiri
>>
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
More information about the MapServer-users
mailing list