[Mapserver-users] problems with JPEG / GDAL

Franck Martin franck at sopac.org
Thu Jul 24 15:45:26 PDT 2003


--=-8mG8jU/TzWlYOV1ZX27e
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: quoted-printable

If you install with gdal it is better to disable (compile without)
native JPEG and TIFF support so that it does not mixed up which library
to use...

But then if you disable JPEG you may not be able to output in this
format?

Cheers

On Fri, 2003-07-25 at 10:22, Ignacio Laplagne wrote:

> Hi,
>=20
> =20
>=20
> We are using mapserver and trying to draw a map which includes a layer
> with raster information as JPEG file. When we call the CGI we get the
> following answer:
>=20
> =20
>=20
> drawJPEG(): Unable to access file. Only grayscale JPEG images are
> supported.
>=20
> =20
>=20
> We are aware that the built-in capabilities of mapserver have this
> restriction. However, we have installed mapserver WITH GDAL support,
> which supposedly doesn=92t have that limitation. Can anybody tell us how
> to force mapserver to use GDAL? The examples we run with other data
> formats in our server (tiff, etc) work fine.
>=20
> =20
>=20
> Our compilation is the following:
>=20
> =20
>=20
> ./mapserv =96v
>=20
> MapServer version 3.6.5 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP
> SUPPORTS=3DTTF INPUT=3DEPPL7 INPUT=3DJPEG INPUT=3DPOSTGIS INPUT=3DGDAL
> INPUT=3DSHAPEFILE
>=20
> =20
>=20
> Redhat 8.0, apache 2.0.45.
>=20
> =20
>=20
> Many thanks.

--=20
Franck Martin <franck at sopac.org>
SOPAC

--=-8mG8jU/TzWlYOV1ZX27e
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY LINK="#0000ff">
If you install with gdal it is better to disable (compile without) native JPEG and TIFF support so that it does not mixed up which library to use...<BR>
<BR>
But then if you disable JPEG you may not be able to output in this format?<BR>
<BR>
Cheers<BR>
<BR>
On Fri, 2003-07-25 at 10:22, Ignacio Laplagne wrote:
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><I>Hi,</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">We are using mapserver and trying to draw a map which includes a layer with raster information as JPEG file. When we call the CGI we get the following answer:</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">drawJPEG(): Unable to access file. Only grayscale JPEG images are supported.</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">We are aware that the built-in capabilities of mapserver have this restriction. However, we have installed mapserver WITH GDAL support, which supposedly doesn’t have that limitation. Can anybody tell us how to force mapserver to use GDAL? The examples we run with other data formats in our server (tiff, etc) work fine.</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">Our compilation is the following:</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">./mapserv –v</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">Redhat 8.0, apache 2.0.45.</FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2"> </FONT><BR>
    <FONT COLOR="#737373" SIZE="3"></FONT><BR>
    <FONT SIZE="2">Many thanks.</I></FONT>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Franck Martin <<A HREF="mailto:franck at sopac.org"><FONT COLOR="#0000ff">franck at sopac.org</FONT></A>><BR>
SOPAC
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-8mG8jU/TzWlYOV1ZX27e--



More information about the MapServer-users mailing list