Help with Fatal Error: invalid_handle_property

BONNER S KARGER bskarger at STUDENTS.WISC.EDU
Tue Aug 17 16:21:33 EDT 2004


Hello listers,

perhaps someone knows what is going on here. I'm getting
the following error when trying to write a shapefile and dbf with
mapscript:

Fatal error: Object has an invalid _handle_ property in
/setpoint.php-cgi on line 6.

The "setpoint.php-cgi" file is included
inside another script that is designed to write a shapefile and dbf based
on a MySQL query. This is the file:

<?php
$objShape = ms_newShapeObj(MS_SHAPE_POINT);
$point = ms_newPointObj();
$point->setXY($value[20],$value[21]);



$objShape->add($point);
$point->free();
$newshapefile->addShape($objShape);
$objShape->free();


$val = array($value[0],$value[20],$value[21]);
dbase_add_record($objDbf, $val);
?>

$newshapefile is created outside this file, but above this code when processed.

What am I missing here?

Thanks!

-------------------------------------
Bonner Karger
Soils Extension, UW-Madison
1525 Observatory Drive
Madison, WI 53706
bskarger at wisc.edu



More information about the mapserver-users mailing list