[Mapserver-users] Outputformat swf FormatOption Single

Pierre GIRAUD pierre.giraud3 at free.fr
Thu Nov 13 11:07:48 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_00CE_01C3AA08.A9E763C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

  I'm trying to run mapserver 4.0 /php-mapscript on Linux/Debian, and I =
have the same problem as quoted :
"Failed writing image to /var/www/tmp/myfile.swf" if I try to output in =
a single flash-movie.
However the file is created (but with image blurred ! ).
There is no error when I want to output in multiple flash-movie.

Is the bug (I didn't find in bugzilla) was corrected as it is said.
Are sources to be compiled for linux available ?

Thx

Pierre GIRAUD


>> I will do an update with the latest source code and let you know. It=20
>> should be working then (at least tha specific bug is working with my=20
>> test data). I have attached a php_mapscript_40.dll (build for=20
>> php4.3.2) that I use so you can give it a try while I build the full=20
>> package.
>>
>> Later,
>>
>> Geoffrey Rowland wrote:
>>
>>> I'm using the latest windows binaries.
>>>
>>> Yewondwossen Assefa wrote:
>>>
>>>> There was a bug corrected August 8 on that. Are you using the =
latest=20
>>>> version ?
>>>>
>>>> Later,
>>>>
>>>> Geoffrey Rowland wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> In my .map file, if have the FORMATOPTION =
"OUTPUT_MOVIE=3DMULTIPLE",=20
>>>>> my php script generates the SWF correctly.  However if I change=20
>>>>> MULTIPLE to SINGLE, then I get a Fatal Error saying it failed=20
>>>>> writing the image.  Am I missing something?
>>>>>
>>>>> OUTPUTFORMAT
>>>>>        NAME swf
>>>>>        MIMETYPE "application/x-shockwave-flash"
>>>>>        DRIVER swf
>>>>>        IMAGEMODE PC256
>>>>>        FORMATOPTION "OUTPUT_MOVIE=3DSINGLE"
>>>>>      END
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>                 $map_path=3D"d:/inet/site/pop/";
>>>>>         $map =3D ms_newMapObj($map_path."swf_pop.map");
>>>>>         $map->selectOutputFormat("SWF");
>>>>>         $image=3D$map->draw();
>>>>>         $image_url=3D$image->saveWebImage();
>>>>>


------=_NextPart_000_00CE_01C3AA08.A9E763C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2483.1" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; I'm trying to run mapserver 4.0=20
/php-mapscript on Linux/Debian, and I have the same problem as quoted=20
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"Failed writing image to =
/var/www/tmp/myfile.swf"=20
if I try to output in a single flash-movie.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>However the file is created (but with =
image blurred=20
! ).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>There is no&nbsp;error when I want to =
output in=20
multiple flash-movie.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is the bug (I didn't find in =
bugzilla)&nbsp;was=20
corrected as it is said.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Are sources to be compiled for linux =
available=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thx</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Pierre GIRAUD</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=3DArial size=3D2>&gt;&gt;</FONT><FONT =
face=3DArial><FONT=20
size=3D2><I> I will do an update with the latest source code and let you =
know. It=20
<BR></I>&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT size=3D2><I> =
should be=20
working then (at least tha specific bug is working with my=20
<BR></I>&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT size=3D2><I> test =
data). I=20
have attached a php_mapscript_40.dll (build for=20
<BR></I>&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT size=3D2><I> =
php4.3.2) that I=20
use so you can give it a try while I build the full=20
<BR></I>&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT size=3D2><I>=20
package.<BR></I>&gt;&gt;</FONT></FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I>=20
Later,<BR></I>&gt;&gt;</FONT></FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I> Geoffrey =
Rowland=20
wrote:<BR></I>&gt;&gt;</FONT></FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I> I'm =
using the latest=20
windows binaries.<BR></I>&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I> =
Yewondwossen Assefa=20
wrote:<BR></I>&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I> =
There was a bug=20
corrected August 8 on that. Are you using the latest=20
<BR></I>&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT =
size=3D2><I> version=20
?<BR></I>&gt;&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I>=20
Later,<BR></I>&gt;&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT size=3D2><I> =
Geoffrey Rowland=20
wrote:<BR></I>&gt;&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT =
size=3D2><I>=20
Hello,<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT =
size=3D2><I> In my .map=20
file, if have the FORMATOPTION "OUTPUT_MOVIE=3DMULTIPLE",=20
<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT =
size=3D2><I> my=20
php script generates the SWF correctly.&nbsp; However if I change=20
<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT =
size=3D2><I>=20
MULTIPLE to SINGLE, then I get a Fatal Error saying it failed=20
<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT =
size=3D2><I>=20
writing the image.&nbsp; Am I missing=20
something?<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT =
size=3D2><I>=20
OUTPUTFORMAT<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME=20
swf<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT=20
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIMETYPE=20
"application/x-shockwave-flash"<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT>=
<FONT=20
face=3DArial><FONT =
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DRIVER=20
swf<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT=20
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEMODE=20
PC256<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT face=3DArial><FONT=20
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORMATOPTION=20
"OUTPUT_MOVIE=3DSINGLE"<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT=20
face=3DArial><FONT size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
END<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><I><BR></I><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><I><BR></I><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;&gt;&gt;</FONT><FONT face=3DArial><FONT=20
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$map_path=3D"d:/inet/site/pop/";<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT=
><FONT=20
face=3DArial><FONT =
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $map=20
=3D=20
ms_newMapObj($map_path."swf_pop.map");<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT>=
</FONT><FONT=20
face=3DArial><FONT =
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$map-&gt;selectOutputFormat("SWF");<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></F=
ONT><FONT=20
face=3DArial><FONT =
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$image=3D$map-&gt;draw();<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT></FONT><FONT =

face=3DArial><FONT =
size=3D2><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$image_url=3D$image-&gt;saveWebImage();<BR></I>&gt;&gt;&gt;&gt;&gt;</FONT=
></FONT><I><BR></DIV></I></DIV></BODY></HTML>

------=_NextPart_000_00CE_01C3AA08.A9E763C0--




More information about the mapserver-users mailing list