[mapserver-users] Querying

Vinko Vrsalovic B. v at w.cl
Thu Jul 26 20:44:48 EDT 2001


Hi again.

I'm getting this error:

Fatal error: Object has an invalid '_map_handle_' property in /file/path 
on line 157

and it happens on this line of code:

    $l_click->draw($imag);

the l_click layer in the map file is:

 LAYER
    NAME clicks
    TYPE POINT
    STATUS ON
    DATA theme3
    CLASS
      NAME "Clicks"
      SYMBOL 2
      SIZE 8
      OUTLINECOLOR 0 0 0
      COLOR 255 0 255
      LABEL
        OUTLINECOLOR 0 0 0
        COLOR 0 0 255
        SIZE MEDIUM
        POSITION AUTO
        PARTIALS TRUE
      END
    END
  END

$imag is the return value of $map->prepareImage();

The layer has data added through $l_click->addFeature($shape);

$shape is valid (i write it to a file through a shapefileObj and
I can visualize it in ArcView)

And if I draw a point on the layer through $point->draw(...) it works
too.

What am I doing wrong?
-- 
V. <v at w.cl>



More information about the mapserver-users mailing list