creating shape for querying
Fx Gamoy
fx.gamoy at GEOMATIKA.FR
Tue Nov 29 06:51:50 PST 2005
Hello everybody,
i would like to create a shape in order to querybyshape a layer.
I ve got two arrays xgeo and ygeo
<?
$oGeo = ms_newShapeObj(MS_SHAPE_POLYGON);
$part = ms_newLineObj();
for($v=0;$v<count($xgeo);$v++)
$part->addXY($xgeo[$i],$ygeo[$i]);
$oGeo->add($part);
$rep=@$oLayer->queryByRect($oGeo);
?>
the bounds of this shape are (-1,-1,-1,-1) but i can add it in a dynamic layer
and see it on the computed image.
but
when i use this shape into querybyshape, php fail
I ve read some posts dealing with this? the php_mapscript 4.6 don't provide the
$Shape->setbounds() function for setting the bounds of the shape.
is there un artefact to compute a querybyshape using a self created shape??
Thanks.....
have a nice day
fx
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the MapServer-users
mailing list