shptreetst problems -- mapserver 4.6.2

Frank Warmerdam warmerdam at POBOX.COM
Fri Jan 20 06:17:43 PST 2006


On 1/20/06, Warren Freitag <warren at place-base.com> wrote:
> result of rectangle search was
>  400, 606, 607, 2415, 2595, 2596, 4279, 4357, 4359, 4377, 4382, 4394,
> 4444, 4446, 4502, 4570, 4588, 4638, 4643, 40451, 74431, 75359, 81934,
> 94864, 94874, 94916, 94918, 95277, 95418, 95904, 96178, 96348, 96349,
> 96350, 99862, 99944, 99955, 100015,
>
> Now, if I read this correctly, it's telling me that this single point
> intersects with some 3 dozen bodies of water. I know that can't be the
> case! I was expecting to see no matches at all.

Warren,

What this tells you is that this point falls into quadtree nodes
that contain 3 dozen bodies of water.  In normal processing in
mapserver, each of these shapes would be read and then the
bounding rectangle of the shapes tested again against the
point before they were considered "selected".

> How do these numbers match up to shape IDs in the shapefile's
> corresponding DBF? or do they match at all?

They should be the shape indexes (zero based # of shape).
This is the same as the zero based dbf record index.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the MapServer-users mailing list