[mapserver-users] 24bit tiff and gdal
Steve Lime
steve.lime at dnr.state.mn.us
Fri Feb 8 21:49:28 PST 2002
A note on the jpeg support. Jpeg sucks for spatial data and really sucks
for uses like MapServer. To access the lower righthand corner of the
image you must decompress the entire image so performance is less than
stellar. The support was added for B&W DOQ images as distributed by
USGS. (We later converted all of our DOQ imagery to TIFF for performance
reasons.)It's use is discouraged.
Note that I don't believe there is such a thing as a color mapped (i.e.
8-bit) JPEG image (due to the compression) which is why only greyscale
images are supported.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Pushkar Pradhan <pushkar at ERC.MsState.Edu> 02/08/02 15:12 PM >>>
Frank,
Thanks for confirming my doubt about disabling TIFF support:
so now my MS config. says:
Banshee[51] pushkar$ mapserv -v
MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7
INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE
But to my horror now I am unable to read either 8 or 24 bit TIFFs, I get
the foll. error:
msDrawRaster(): Image handling error. Unrecognized or unsupported image
format
and when I try to display colored jpegs also it doesn't work:
drawJPEG(): Unable to access file. Only grayscale JPEG images are
supported.
This is my path:
Banshee[91] pushkar$ echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/gnu/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/local/netpbm/lib:/rstc/user1/erc/pushkar/gdal-1.1.5
i.e. I have given the path to the gdal dir.
Apache's error log says:
[Fri Feb 8 15:01:51 2002] [notice] SIGUSR1 received. Doing graceful
restart
[Fri Feb 8 15:01:51 2002] [notice] Apache/1.3.22 (Unix) configured --
resuming normal operations
[Fri Feb 8 15:01:51 2002] [info] Server built: Nov 14 2001 12:06:07
[Fri Feb 8 15:01:51 2002] [notice] Accept mutex: fcntl (Default: fcntl)
Am I not linking properly or something?
On Thu, 7 Feb 2002, Frank Warmerdam wrote:
>
>
> Pushkar Pradhan wrote:
>
> > Hi,
> > I've compiled MS 3.5 with gdal:
> > Banshee[284] pushkar$ mapserv -v
> > MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF
> > INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE
> >
> > But when I try to display 24 bit tiff I get the foll. msg.:
> > drawTIFF(): Image handling error. Only colormapped and grayscale
images
> > are supported.
> > This is the info. for my tiff file
> > Banshee[293] pushkar$ identify data/24bmosaic2001mstm.tif
> > data/24bmosaic2001mstm.tif 5167x3675 DirectClass 54mb TIFF 3.6u 0:25
> >
> > I've gdal1.1.5 and this is the info. for it:
> > Banshee[296] pushkar$ gdal-config --formats
> > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem
jdem
> > envisat elas fit gif jpeg png
> >
> > I have the tfw file also: 24bmosaic2001mstm.tfw
> >
> > **My ques. is do I have to disable TIFF support if I compile
mapserver
> > with GDAL? Maybe the default behaviour of MS is to use the tiff
libs. read
> > the tiff imgs. and not try to use GDAL after that?
>
>
> Pushkar,
>
> If you want to use GDAL for your TIFF files you need to configure and
> build MapServer without direct TIFF support or the direct TIFF support
> will get used in preference. I have been sort of intending to change
> the configure to disable TIFF support (unless explicitly requested
during
> the configure) if GDAL is configured in, but haven't gotten around to
it.
>
> 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
>
------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.
Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------
More information about the MapServer-users
mailing list