Fw: Mapserver Flash/SWF question

Constantin Cristian constantin.a.cristian at GMAIL.COM
Mon Jan 24 08:13:11 EST 2005


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?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050124/6daa0758/attachment.html


More information about the mapserver-users mailing list