[mapserver-users] Error while getting flash output

Subha Ramakrishnan subha at gslab.com
Wed Apr 1 22:54:10 PDT 2009


Hi,
Sorry for that mistake. I figured out i was using the wrong mapserver 
without flash support.
However, I am still not getting the flash output. I've set the imagetype 
to "swf" and when I pass "Format=application/x-shockwave-flash" as 
mention in the MIMEType in the OutputFormat, I get an error saying 
"msWMSLoadGetMapParams: Image Handling Error.Unsupported output format 
(application/x-shockwave-flash)."
Please let me know if anyone knows the reason or solution for this problem.

Thanks a lot for the help.

Subha

Yewondwossen Assefa wrote:
> The error message seems to indicate that you did not build MapServer 
> with  ming support. Can you do mapserv -v on the command like and 
> check if you have OUTPUT=SWF?
>
> Subha Ramakrishnan wrote:
>> Hi All,
>>
>> I am trying to get flash output from mapserver. I have compliled my 
>> mapserver 5.2.2 with flash support.
>> But when i request for a layer, I am getting the following error:
>> "loadOutputFormat(): General error message. OUTPUTFORMAT clause 
>> references driver SWF, but this driver isn't configured. "
>>
>> This is my url:
>> "http://localhost/cgi-bin/mapserv?MAP=flashlayer.map&TRANSPARENT=true&LAYERS=flashlayer&FORMAT=image%2Fswf&PROJECTION=EPSG%3A4326&REPROJECT=false& 
>>
>> UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913& 
>>
>> BBOX=4235678.0892222235,859902.5737739494,13628260.123222224,4404134.700666138&WIDTH=1920&HEIGHT=724" 
>>
>>
>> Mapfile is as follows:(initial part with projection , extent etc 
>> truncated)
>>
>>  OUTPUTFORMAT
>>    NAME "swf"
>>    MIMETYPE "application/x-shockwave-flash"
>>    DRIVER "swf"
>>    IMAGEMODE PC256
>>    FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
>>  END
>>  
>>  layer
>>  name flashlayer
>>  connectiontype postgis
>>  connection "user= postgres dbname=flashtable host=localhost"
>>  type polygon
>>    group world
>>    dump true
>>    METADATA
>>      "RESULT_FIELDS" "__ibp__id"
>>      "SWFDUMPATTRIBUTES" "__ibp__id"
>>    END
>>    template "template.html"
>>    projection
>>      "init=epsg:4326"
>>    end
>>    transparency 65
>>    status on
>>    data "topology from flashtest using unique id using SRID = -1"
>>    classitem "country"
>>    class
>>        name "INDIA"
>>        expression "INDIA"
>>        style
>>            color 139 242 144
>>            outlinecolor 000 000 000
>>        end
>>    end
>> end
>>
>> Can some one please guide me as how to get the output in flash after 
>> enabling the support?
>>
>> Thanks a lot for any help.
>>
>> Subha
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>




More information about the MapServer-users mailing list