Fw: Mapserver Flash/SWF question

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Mon Jan 24 10:41:46 EST 2005


Only GD and GDAL formats are supported for a wms GetMap request in
mapserver 4.4.X. Please see bug
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 for details. The
other formats support should make it for the next release.

Later,

Constantin Cristian wrote:
> I'm using the ms4w from mapservser:
>
> E:\ms4w\Apache\cgi-bin>mapserv -v
> MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF
>  OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLI
> ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> INPUT=POSTGIS IN
> PUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> and I have the following output options in my map file:
>
>   OUTPUTFORMAT
>     NAME swf
>     DRIVER "swf"
>     MIMETYPE "application/x-shockwave-flash"
>     EXTENSION "swf"
>     IMAGEMODE PC256
>     FORMATOPTION "OUTPUT_MOVIE=SINGLE"
>   END
>
>   IMAGETYPE swf
> If I try to run this command:
>
> E:\ms4w\Apache\cgi-bin>mapserv
> QUERY_STRING="map=/ms4w/apps/work/romaniag.map&VE
> RSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=22.9633389261745,47.3965604026846,
> 24.0539429530201,48.4871644295302&WIDTH=596&HEIGHT=596&FORMAT=SWF&BGCOLOR=0xFFFF
> FF&EXCEPTIONS=INIMAGE&WRAPDATELINE=false&LAYERS=Romania,Bucuresti&TRANSPARENT=tr
> ue"
>
> It says:
> Content-type: application/x-shockwave-flash
> then the program exits without saying anything.
>
> If I change FORMAT=SWF with FORMAT=PNG I get a lot of binary data (it
> dumps the picture in my console).
>
> Does anyone have any idea what am I doing wrong?
>
>
>
>


--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-users mailing list