[Mapserver-users] more than one map, multiple ms_newmapObject()

Pierre GIRAUD pierre.giraud3 at free.fr
Tue Sep 9 05:36:27 PDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C376DF.C0647720
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I didn't find any message corresponding to my question in the archive =
but this problem might have been discussed many times.

To render several maps, how can I create more than one map object in php =
Mapscript ?

Using this script,
------------------------------------------------------------
//create the map objects
$map1 =3D ms_newMapObj($map_file);
$map2 =3D ms_newMapObj($map_file);
------------------------------------------------------------
I get the following errors : "MapServer Error in msLoadMap(): ...", =
"Unable to open map file...".

Is it possible to avoid those errors.

Thanks.

Pierre GIRAUD

------=_NextPart_000_0022_01C376DF.C0647720
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2483.1" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I didn't find any message corresponding =
to my=20
question in the archive but this problem might have been =
discussed many=20
times.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>To render several maps, how can I =
create more than=20
one map object in php Mapscript ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Using this script,</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>------------------------------------------------------------</FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2>//create the map objects<BR>$map1 =3D=20
ms_newMapObj($map_file);<BR>$map2 =3D =
ms_newMapObj($map_file);</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>------------------------------------------------------------</FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2>I get the following errors : "<FONT=20
face=3D"Times New Roman" size=3D3>MapServer Error in msLoadMap(): ...", =
"Unable to=20
open map file...".</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Is it possible to avoid those =
errors.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Pierre =
GIRAUD</FONT></DIV></BODY></HTML>

------=_NextPart_000_0022_01C376DF.C0647720--




More information about the MapServer-users mailing list