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

Pierre GIRAUD pierre.giraud3 at free.fr
Tue Sep 9 10:22:42 EDT 2003


The problem appears as I'm using Mapserver 3.6 version. I'll report a bug if
I still have the problem as soon as I update my server to 4.0
.
Regards.

Pierre

----- Original Message -----
From: "Daniel Morissette" <morissette at dmsolutions.ca>
To: "Pierre GIRAUD" <pierre.giraud3 at free.fr>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, September 09, 2003 4:16 PM
Subject: Re: [Mapserver-users] more than one map, multiple ms_newmapObject()


> If you want to render the same map multiple times then you can simply
> call $map->draw() multiple times on the same map object.
>
> About calling ms_newMapObj() twice like you did, this worked for me when
> I tried it with MapServer 4.0 two minutes ago.  If you have a systematic
> way to reproduce this with MapServer 4.0 then please file a bug in
> bugzilla with the full details to reproduce, including mapfile, system
> configuration information, etc.
>
> Daniel
>
>
> Pierre GIRAUD wrote:
> > 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 = ms_newMapObj($map_file);
> > $map2 = 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
>
>
>




More information about the mapserver-users mailing list