[mapserver-users] Problem with rectangular queries
dmorissette at mapgears.com
Thu Jul 1 11:50:16 EDT 2010
You didn't specify in which way your method 1 results were wrong, but I
suspect you must be using MapServer 5.6, and if that's the case then you
need to use $oLayer->resultsGetShape() instead of GetShape() for method 1.
tschobber tschöbbi wrote:
> Hi userlist,
> could anyone help me on a mapserver issue? I've written a little php mapscript application (see complete code here http://pastebin.ca/1892318) that makes a rectangular query on a layer using the "querybyrect" method (method 1 --> see code) and addtional the same is done by using the "whichshapes" function (method 2). The problem is that method 1 (querybyrect) returns the wrong results whereas the results of method 2 are correct. Why is this? Do I need to define a real template file for method 1? If yes, how it has to look like to make the layer queryable the right way? Additional I should mention that the DATA for the layer is correct too.
> Here's the mapfile for this application:
> Thank you for any answers.
More information about the mapserver-users