QueryByRect Problems on shp point

Lowell Filak lfilak at MEDINACO.ORG
Tue Jan 18 12:13:18 EST 2005


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