Opened 20 years ago

Closed 19 years ago

#781 closed defect (fixed)

swf output for wms query

Reported by: assefa Owned by: mapserverbugs
Priority: high Milestone: 4.4 release
Component: Output-SWF Version: 4.3
Severity: normal Keywords:
Cc: bartvde@…

Description

original e-mail from Bart (Bart van den Eijnden 
<bart.van.den.eijnden@geodan.nl>)

I get an internal server error (500). In the Apache error log it says:
[Thu Jul 15 15:49:50 2004] [error] [client 192.168.3.4] Premature end of  
script headers: mapserv_43.exe

I tested with a WMS request:
http://www.vz.geodan.nl:1112/cgi-bin/mapserv_43.exe?
map=/ms4w_20/apps/general/map/gemeentes.map&request=GetMap&bbox=100000,400000,2
00000,500000&width=500&height=500&format=application/x-shockwave-
flash&version=1.1.1&srs=EPSG:28992&layers=Gemeentes

I added the following OUTPUTFORMAT to my MAP file:
 OUTPUTFORMAT
    NAME swf
    MIMETYPE "application/x-shockwave-flash"
    DRIVER swf
    IMAGEMODE PC256
    FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
 END

And my LAYER has:
        METADATA
          WMS_TITLE "Gemeentes"
          WFS_TITLE "Gemeentes"
          SWFDUMPATTRIBUTES "GEMNAAM"
        END

Change History (5)

comment:1 by assefa, 20 years ago

Resolution: fixed
Status: newclosed
The main problem was when sending the swf directy to the browser. The fix is 
to send an html with instrcutions to load a temporary swf file created. The 
user has to set properly the web's imagepath and imageurl.

Added also some ActionScript in the main movie to load layers's movie (for 
FORMATOPTION "OUTPUT_MOVIE=MULTIPLE").

I ahev tested it with a wms request as well as a mapserv cgi (mode=map) 
request.

 I will let Bart do some testing/comments. 

comment:2 by dmorissette, 20 years ago

Resolution: fixed
Status: closedreopened
Assefa, a WMS GetMap request MUST respond with the format that was requested, in
this case application/x-shockwave-flash.  Returning an HTML with a link to the
SWF file is not appropriate for WMS. The only valid options are to return the
SWF directly or to remove that format from the list in the Capabilities.

comment:3 by dmorissette, 20 years ago

Cc: bartvde@… added

comment:4 by dmorissette, 20 years ago

Milestone: 4.4 release

comment:5 by assefa, 19 years ago

Resolution: fixed
Status: reopenedclosed
Fixed : call msIO_needBinaryStdio() before starting to write binary data to 
stdout.
Note: See TracTickets for help on using tickets.