QueryByRect Problems on shp point

Francesco Sozzi fsozzi at INTERCAD.CH
Wed Jan 19 04:07:52 EST 2005


Hi Lowell,

No I haven't any logging.
At the moment I solved the problem by converting rectangle into a shape
object and issuing a QueryByShape: in this way it works.
Strange...

Francesco

----- Original Message -----
From: "Lowell Filak" <lfilak at MEDINACO.ORG>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Tuesday, January 18, 2005 6:13 PM
Subject: Re: [UMN_MAPSERVER-USERS] QueryByRect Problems on shp point


> The following message was sent by Francesco Sozzi <fsozzi at INTERCAD.CH>
> on Mon, 17 Jan 2005 11:55:02 +0100.
>
> > Hi all,
> >
> > I am having problems on querying a shapfile layer of type point.
> >
> > The code I use is:
> > $qresult = $layer->queryByRect($rectDrawnedMapCoord);
> > where $rectDrawnedMapCoord is a rectangle with map coordinates that
> contains
> > several points.
> >
> > The problem is that I get an empty result.
> >
> > Here you are some notes:
> > - I have problems only on shapefile layers of type point; queryByRect
> works
> > properly on shapefile polygon and line
> > - I an Oracle Spatial copy (exatly the same point objects and data) an
it
> > works: I get right resul on queryByRect
> >
> > Anybody have any suggestions?
>
> Francesco,
>
> Do you have any logging turned on that could point to a problem possibly
> accessing the shapefile?
>
> Lowell
>



More information about the mapserver-users mailing list