JPEG 2000 format instead of TIFF for a RASTER layer

Brant Anderson brant at MUDLABS.COM
Thu Aug 26 18:10:52 EDT 2004


Frank Warmerdam wrote:

> Brant Anderson wrote:
>
>> Here is a line from the apache web server log file:
>>
>> [Thu Aug 26 02:29:45 2004] [error] [client 192.168.1.101] malformed
>> header from
>> script. Bad header=GeoJp2 info found...: /usr/lib/cgi-bin/mapserv421
>>
>>
>> Maybe that has something to do with it. If so, any ideas how to fix
>> this?
>
>
> Brant,
>
> It would appear the JPEG2000 driver in GDAL is spitting out a small debug
> message to stdout and this is screwing everything up.  I looked in the
> current source and this doesn't seem to exist anymore so it must be old.
>
> Edit gdal/frmts/jpeg2000/jpeg2000dataset.cpp and search for a printf
> statement with the text "geojp2 info found" and delete that line.
>
> Or alternatively, update to the latest GDAL from CVS or a nightly
> snapshot.
>
> 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
>

Frank,

I figured that part out, and no longer get an Internal Server Error
message. The error that I am getting now deals with the JPEG2000 images
(they are not showing up). The extents are correct, as far as I can tell
(based of experiments with TIFF images).

I'm going to try to make this as easy as possible, so here is a link to
my problem:
http://mudlabs.homelinux.org:8181/~rabrant/raster/

There are 3 files available there: dougIndex.tar.gz,
dougIndex_jp2.tar.gz, test.map

Maybe someone could test it out on their system. That way I can find out
if it is a server configuration problem, or a syntax problem.


Thank you for all of your support. Kudos goes out to Ed as well!

Brant Anderson



More information about the mapserver-users mailing list