[Mapserver-users] reprojected Layer returns no results on query
Eric Bridger
eric at gomoos.org
Tue Jun 24 03:44:32 PDT 2003
Hi Oliver,
Yes, I ran across the same problem and posted a fix here:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0305/msg00308.html
Since it's short I'll repost it.
============================
I ran across this problem back in Feb. 2003 but got no answer to my
question, so when it raised it's head again (and I spent 1/2 day
debugging it) I decided I better post the work around.
I noticed that $layer->queryByPoint() on my polygon layer with a
projection different than the overall map projection never returned any
results whenever the layer's TOLERANCE was set to 0 in the mapfile.
Setting TOLERANCE greater than or equal to 1 fixed the problem.
Alternatively, queryByPoint() with a buffer >= 1 also fixed the problem.
I'm using Perl mapscript 3.6 but suspect the problem is in the C code.
(msProjectRect() called in msQueryByPoint() when the layer is projected
on a rect with minx == maxx and miny == maxy ?)
Eric Bridger
www.gomoos.org
On Tue, 2003-06-24 at 13:04, Oliver Wesp wrote:
> Hi,
>
> just wondered if anybody stumbeled over the following problem. In my
> mapfile I have several layers with different projections. Map-Output works
> fine but if I try to work with the query mode it works only for those
> layers that have the same projection as the output projection. All other
> Layers are responding with
>
> 'msQueryByPoint(): Search returned no results. No matching record(s) found.'
>
> Any way to solve this? I tried to submit mapext and mapxy in the projection
> of the layer origin with no effect.
>
> I'm using
>
> mapserver 3.7 (CGI)
> proj 4.4.5
>
> best regards
> Oliver
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list