Internal Server Error on queryByShape
Richard Barahona
richard at BARAHONA.CH
Fri Mar 18 06:30:10 PST 2005
Hi list,
I don't if the function queryByShape has a problem or i am doing something
wrong, but the result is an Internal Server Error (php crashes). He is the
piece of my code (php-mapscript):
$oshape = ms_newShapeObj(MS_SHAPE_POLYGON);
$oline = ms_newLineObj();
for($i=0; $i < sizeof($arXCoords)-1; $i++)
{
$opoint = ms_newPointObj();
$opoint->setXY($arXCoords[$i],$arYCoords[$i]);
$oline->add($opoint);
}
$oshape->add($oline);
$oshape->set('classindex',1);
$oshape->set('text','99');
$olayer = $_SESSION['oMap']->getlayerbyname("awp");
$brc = $olayer->querybyshape($oshape);
The shape object extent are set to -1, but the attribute numline is set to
1. Strange.
Any solution? Thanks for your help.
More information about the MapServer-users
mailing list