creating shape for querying

Fx Gamoy fx.gamoy at GEOMATIKA.FR
Tue Nov 29 08:29:03 PST 2005


hello Ethan

i get "[Tue Nov 29 15:27:49 2005] [error] [client 127.0.0.1] Premature end of
script headers: php.exe"

but when i use the shape $oGeo and add it into a dynamic layer, it is well
computed so i think it is in a good form enven if the bounds of the shape are
disabled (-1)

did you already query a layer by shape using such manually created shape?


thanks
best regards
fx




Selon Ethan Alpert <ealpert at DIGITALGLOBE.COM>:

> 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.
>




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



More information about the MapServer-users mailing list