[Mapserver-users] problems with JPEG / GDAL

Ignacio Laplagne laplagnegeo at softhome.net
Thu Jul 24 15:22:53 PDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_001E_01C35219.05852DE0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,
 
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:
 
drawJPEG(): Unable to access file. Only grayscale JPEG images are
supported.
 
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.
 
Our compilation is the following:
 
./mapserv -v
MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF
INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE
 
Redhat 8.0, apache 2.0.45.
 
Many thanks.

------=_NextPart_000_001E_01C35219.05852DE0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C35218.FA899840">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EstiloCorreo17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 3.0cm 70.85pt 3.0cm;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Tabla normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DES link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:35.4pt'>

<div class=3DSection1>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dblack =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:black'>Hi</span></font>=
</span><font
size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:black'>,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'>We
are using <span class=3DSpellE>mapserver</span> 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:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
color=3Dblack face=3DArial><span lang=3DEN-GB =
style=3D'font-size:10.0pt;font-family:
Arial;color:black;mso-ansi-language:EN-GB'>drawJPEG</span></font></span><=
/span><span
class=3DGramE><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'>(</span></font></span><font
size=3D2 color=3Dblack face=3DArial><span lang=3DEN-GB =
style=3D'font-size:10.0pt;
font-family:Arial;color:black;mso-ansi-language:EN-GB'>): Unable to =
access
file. Only <span class=3DSpellE>grayscale</span> JPEG images are =
supported.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'>We
are aware that the built-in capabilities of <span =
class=3DSpellE>mapserver</span>
have this restriction. However, we have installed <span =
class=3DSpellE>mapserver</span>
WITH GDAL support, which supposedly doesn’t have that limitation. =
Can
anybody tell us how to force <span class=3DSpellE>mapserver</span> to =
use GDAL? The
examples we run with other data formats in our server (tiff, etc) work =
fine.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'>Our
compilation is the following:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:black;mso-ansi-language=
:EN-GB'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>./<span class=3DSpellE><span =
class=3DGramE>mapserv</span></span>
–v<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dblack =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:black'>MapServer</span>=
</font></span><font
size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:black'> <span class=3DSpellE>version</span> 3.6.5 <span =
class=3DSpellE>OUTPUT=3DPNG</span>
<span class=3DSpellE>OUTPUT=3DJPEG</span> <span =
class=3DSpellE>OUTPUT=3DWBMP</span> <span
class=3DSpellE>SUPPORTS=3DTTF</span> <span =
class=3DSpellE>INPUT=3DEPPL7</span> <span
class=3DSpellE>INPUT=3DJPEG</span> <span =
class=3DSpellE>INPUT=3DPOSTGIS</span> <span
class=3DSpellE>INPUT=3DGDAL</span> <span =
class=3DSpellE>INPUT=3DSHAPEFILE</span><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>=


<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dblack =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:black'>Redhat</span></f=
ont></span><font
size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:black'> 8.0, apache 2.0.45.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>=


<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dblack =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:black'>Many</span></fon=
t></span><font
size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:black'> <span =
class=3DSpellE>thanks</span>.<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_001E_01C35219.05852DE0--




More information about the MapServer-users mailing list