creating shape for querying

Ethan Alpert ealpert at DIGITALGLOBE.COM
Tue Nov 29 11:20:11 EST 2005


Are you getting an error message or is it just not returning you
expected restuls?

e

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Fx Gamoy
Sent: Tuesday, November 29, 2005 9:06 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] creating shape for querying


Yes, sorry,
you must read querybyshape of course :-)
$rep=@$oLayer->queryByShape($oGeo);

but php fails anyway with querybyshape
thanks
fx

Selon Ethan Alpert <ealpert at digitalglobe.com>:

>
>
> queryByRect takes a rectObj not a shapeObj. You need to either use 
> queryByShape or create a rectObj.
>
> -e
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> On Behalf Of Fx Gamoy
> Sent: Tuesday, November 29, 2005 7:52 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] creating shape for querying
>
>
> 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.
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the mapserver-users mailing list