[Mapserver-users] PNG problem / INTERLACE ON

holesovsky at oksystem.cz holesovsky at oksystem.cz
Tue Jun 1 03:18:26 PDT 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C447C1.C72ED26B
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi All,

=20

I have a strange problem with MapServer version 4.0.2 and PNG output =
format.

=20

Sometimes it happens that a generated PNG file is not correctly =
displayed in MS Internet Explorer.=20

In other desktop's viewers (Irfanview, Paint,....) is a PNG file =
displayed properly.

=20

When I change output format to JPEG or switch INTERLACE to OFF, a =
generated bitmap is displayed correctly.

=20

Is it a bug or my problem?

=20

Thanks

=20

Michael Holesovsky

=20

=20

=20

________________________________

From: mapserver-users-admin at lists.gis.umn.edu =
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Kalpin =
Erlangga Silaen
Sent: Thursday, June 03, 2004 12:07 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Mapserver using MSSQL

=20

Dear all,

=20

Today, I am trying run MapServer under windows using MSSQL 2000. I have =
read previous thread/mails and try to follow every step but I got error =
like below :

=20

msDrawMap(): Image handling error. Failed to draw layer named 'LAYER_1'. =

msOGRFileOpen(): OGR error. Open failed for OGR connection `layer1.ovf'. =
File not found or unsupported format.=20

My Layer code :=20

=20

LAYER
  NAME LAYER_1
  TYPE POLYGON
  STATUS DEFAULT
  CONNECTIONTYPE OGR
  CONNECTION "layer1.ovf"
  DATA "layer1"
  CLASS
    NAME 'My City'
    OUTLINECOLOR 128 128 128
    COLOR 225 225 185
    TEMPLATE "layer1.html"
  END
  HEADER "layer_1_header.html"
  FOOTER "layer_1_footer.html"=20
  METADATA
    WMS_TITLE "My City"
    WMS_ABSTRACT "Layer Shapefile."
    WMS_SRS "EPSG:26915"
  END
END

=20

and my layer1.ovf :

=20

<OGRVRTDataSource>
    <OGRVRTLayer name=3D"LAYER_1">
        <SrcDataSource>ODBC:sa/kalpin at mstest</SrcDataSource>=20
  <SrcLayer>River</SrcLayer>=20
 <GeometryType>wkbPoint</GeometryType>=20
        <LayerSRS>LAYER_1</LayerSRS>
 <GeometryField encoding=3D"PointFromColumns" x=3D"x" y=3D"y"/>=20
    </OGRVRTLayer>
</OGRVRTDataSource>

=20

=20

Help me please

=20

=20

=20

Thank you

=20

=20

=20

Kalpin Erlangga Silaen


------_=_NextPart_001_01C447C1.C72ED26B
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-2">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
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 name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

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

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

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I have a strange problem with =
MapServer
version 4.0.2 and PNG output format.<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Sometimes it happens that a =
generated PNG
file is not correctly displayed in MS Internet Explorer. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>In other desktop’s viewers =
(Irfanview,
Paint,….) is a PNG file displayed =
properly.<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>When I change output format to JPEG =
or
switch INTERLACE to OFF, a generated bitmap is displayed =
correctly.<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Is it a bug or my =
problem?<o:p></o:p></span></font></p>

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

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

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

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

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

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

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

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Kalpin Erlangga Silaen<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, June 03, =
2004
12:07 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b>
mapserver-users at lists.gis.umn.edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[Mapserver-users]
Mapserver using MSSQL</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div>

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

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Today, I am trying run MapServer under windows using =
MSSQL
2000. I have read previous thread/mails and try to follow every step but =
I got
error like below :</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>msDrawMap(): Image handling error. Failed to draw layer named
'LAYER_1'. <br>
msOGRFileOpen(): OGR error. Open failed for OGR connection `layer1.ovf'. =
File
not found or unsupported format. <o:p></o:p></span></font></p>

</div>

<div>

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

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>LAYER<br>
  NAME LAYER_1<br>
  TYPE POLYGON<br>
  STATUS DEFAULT<br>
  CONNECTIONTYPE OGR<br>
  CONNECTION "layer1.ovf"<br>
  DATA "layer1"<br>
  CLASS<br>
    NAME 'My City'<br>
    OUTLINECOLOR 128 128 128<br>
    COLOR 225 225 185<br>
    TEMPLATE "layer1.html"<br>
  END<br>
  HEADER "layer_1_header.html"<br>
  FOOTER "layer_1_footer.html" <br>
  METADATA<br>
    WMS_TITLE "My City"<br>
    WMS_ABSTRACT "Layer Shapefile."<br>
    WMS_SRS "EPSG:26915"<br>
  END<br>
END</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>and my layer1.ovf :</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><OGRVRTDataSource><br>
    <OGRVRTLayer name=3D"LAYER_1"><br>
       
<SrcDataSource>ODBC:sa/kalpin at mstest</SrcDataSource> <br>
  <SrcLayer>River</SrcLayer> <br>
 <GeometryType>wkbPoint</GeometryType> <br>
       
<LayerSRS>LAYER_1</LayerSRS><br>
 <GeometryField encoding=3D"PointFromColumns" =
x=3D"x"
y=3D"y"/> <br>
    </OGRVRTLayer><br>
</OGRVRTDataSource></span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

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

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

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

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

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

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C447C1.C72ED26B--



More information about the MapServer-users mailing list