[mapserver-users] getlayer
Rob Martinson
cathode at nichebox.com
Thu Jul 12 16:13:04 PDT 2001
Another confirmation of this and to expand on my earlier problem about
using dynamic maps...
I am unable to add any new layer to any new or existing map via
PHP/Mapscript. In short, if I create a layer using $layer =
ms_newlayerobj($mapObj); on a map object using a new or existing map, no
matter the number of or lack of properties and/or classes I set for the
layer, the next call to ANY sub object, property, or method of the
mapobject fails with "Object has an invalid _handle_ property.
This has been listed in the MapServer bugs database by Daniel
Morissette, but I thought I would expand on the problem here.
Rob Martinson
Nichebox - http://www.nichebox.com
Development - http://dev.nichebox.com
> -----Original Message-----
> From: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of
> Vladimir Guzmán
> Sent: Thursday, July 12, 2001 11:50 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] getlayer
>
>
> Hello.
> Please, if someone can help me.
> I've got an error when I try to get a layer object, it seems
> that the first time i use the method it works fine, but the
> next time the object map is kind of corrupted, so I get the error :
> "Fatal error: Object has an invalid _handle_ property in
> /usr/local/httpd/htdocs/mapserver/test_draw_map.phtml on line
> 47" I'm working with php, and I have the same error in the
> example map gmap. The only way I currently make it work is:
> every time i call getlayer() I use the instruction: $map =
> ms_newMapObj("demo.map"); But this is not the correct
> solution. ¿suggestions?
>
> Thank you,
>
> Vladimir G
>
More information about the MapServer-users
mailing list