[Mapserver-users] GDAL Can't read JPEG files
Frank Warmerdam
warmerdam at pobox.com
Wed Mar 31 06:38:46 PST 2004
Sean Kleinjung wrote:
> I went to terraserver and manually downloaded a map .jpeg, and ran
> gdalinfo on it. This gave me the following error:
>
> ---------------------------------------------------------------------
> # ./gdalinfo test.jpg
> ERROR 4: `test.jpg' not recognised as a supported file format.
>
> GDALOpen failed - 4
> `test.jpg' not recognised as a supported file format.
> ---------------------------------------------------------------------
>
> Interestingly, .jpg is the output format I am using for my maps, and the
> above error is also displayed if I run gdalinfo on a .jpg that mapserver
> itself created.
Sean,
Can you provide me an example jpeg your gdalinfo can't read? What
platform are you on? I imagine this is a build configuration issue
since people use jpeg all the time with GDAL.
Also, I don't support GDAL 1.1.9 anymore.
> PS: Kind of off-topic, but I'm not really sure where this kind of thing
> should go. When I was poking around in the source, I noticed an error
> message that was a bit misleading. It looks like it was copied and
> pasted from the one above it. I suggest applying the attached diff to
> the 1.109 revision of mapraster.c to clarify this.
I have patched this in CVS.
Thanks,
--
---------------------------------------+--------------------------------------
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
More information about the MapServer-users
mailing list