Are you getting an error message or is it just not returning you expected restuls?
e -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Fx Gamoy Sent: Tuesday, November 29, 2005 9:06 AM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] creating shape for querying Yes, sorry, you must read querybyshape of course :-) [EMAIL PROTECTED]>queryByShape($oGeo); but php fails anyway with querybyshape thanks fx Selon Ethan Alpert <[EMAIL PROTECTED]>: > > > 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:[EMAIL PROTECTED] > On Behalf Of Fx Gamoy > Sent: Tuesday, November 29, 2005 7:52 AM > To: [email protected] > 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); > [EMAIL PROTECTED]>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.
