php mapscript draw() error

Ernesto Vega ernesvega at GMAIL.COM
Mon Jan 22 16:45:07 EST 2007


Ups.... wrong URL

Here is the right one:

http://mapserver.gis.umn.edu/docs/reference/mapfile

hope you can find your way

Ernesto

On 1/22/07, Ernesto Vega <ernesvega at gmail.com> wrote:
> you should start here:
>
> http://mapserver.gis.umn.edu/docs/reference/mapfile/map
>
> Look for parameter DEBUG, that allows you to turn debugging on. Be
> aware of permissions. Your mapserv cgi should be allowed to write to
> the path that you have to set for it.
>
> hope it helps
>
> Ernesto Vega
>
> On 1/22/07, James Tuthill <techie at omlet.co.uk> wrote:
> > Hi,
> >
> > I am just starting out with php mapscript but can't work out what errors
> > are causing my maps not to draw().  I started out with simple maps work
> > just fine. However, the more complex map data that I purchase don't
> > appear to work. These map files renders fine with a normal mapserv.cgi -
> > but fails silently at the draw() stage of php mapscript.
> >
> > This is the simple set of commands that I am using:
> >
> >     // Create a map object
> >     $map_object=ms_newMapObj($map_path.$map_filename);
> >
> >     // Render the map into an image object
> >     $map_img=$map_object->draw();
> >
> >     // Save the map to an image file
> >     $map_img->saveImage($img_path.$img_filename);
> >
> > The program fails are draw() - but there is no debug output. Can anyone
> > tell me how to start debugging this?
> >
> > Thanks,
> >
> > James
> >
>



More information about the mapserver-users mailing list