[Mapserver-users] mapswf.c extent problem
Yewondwossen Assefa
assefa at dmsolutions.ca
Wed Feb 4 08:03:35 PST 2004
Hi There,
Thanks for reporting the bug. It is now fixed in Mapserver cvs version.
As for the sencond problem, I have not actually upgraded my lib to
0.3 and still using 0.2. I will try to do an upgrade and see the results.
Later,
raz wrote:
> Hi everyone
>
> I have set up mapserver to be used with php and ming. This is my first
> post in this list.
>
> I am trying to write a web application with a flash interface that
> handles GIS data. I compiled php-4.3.4 and mapserver-4.0.1 with
> ming-0.3a. I must say it works great but I noticed 2 problems.
>
> The first thing is about the file mapswf.c. From line 2614, you can find
> this code :
>
> sprintf(szAction, "mapObj.extent=\"%f,%f,%f,%f\";",
> image->img.swf->map->extent.minx,
> image->img.swf->map->extent.maxx,
> image->img.swf->map->extent.maxx,
> image->img.swf->map->extent.maxy);
> oAction = compileSWFActionCode(szAction);
> SWFMovie_add(image->img.swf->sMainMovie, oAction);
>
> As you can see, extent.maxx appears twice and extent.miny does not
> appear at all. I guess it is a minor bug and I can change it myself but
> I thought I should tell you.
>
> The second thing is about raster handling in SWF output. To compile
> mapserver with ming-0.3a, mapswf.c needs to be modified a little bit as
> the SWFMovie_save function needs to be passed three parameters instead
> of two. I just add 0 (zero) as the third parameter and mapserver
> compiles without any problem.
>
> Now the application can handle all types of layer except one. If the map
> does not include a raster layer everything works fine. But if I add a
> raster layer, the map is empty with a flash 6 client but shows every
> layer expected (including the raster) with flash 7 client.
>
> I don't know where the problem comes from but I managed, many weeks ago,
> to make it work without any flash client version compatibility problem.
> I kept this precious php_mapscript.so version but I cannot remember the
> compilation options or the libraries versions I used that day. Now each
> time I try to compile from recent releases, I have this flash client
> version compatibility problem.
>
> I thought I should report about the first bug and ask to see if anyone
> knows how to resolve the flash client version compatibility second bug.
>
> Thanks,
>
> Raz.
--
----------------------------------------------------------------
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