[Mapserver-users] mapswf.c extent problem

raz raz at no-log.org
Wed Feb 4 08:40:55 EST 2004


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.
-- 
. Ramzi Oueslati
. Tout GNU et tout bronzé




More information about the mapserver-users mailing list