You need to log in before you can comment on or make changes to this bug.
Using the query tool in the MapBrowser window generates a PHP fatal error. To reproduce that just follow the tutorial in the "MapBrowser/Adding a Layer When the Projection has been Set" step 5. Mozilla 1.6 and IE 6 Windows XP home MapLab 2.2 20040716 ------------- MS error Fatal error: [MapServer Error]: msQueryByRect(): No matching record(s) found. in E:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_query.php on line 376
couldn't recreate this on any of my browsers; the feature works as it should. Can someone verify on windows?
Steps to reproduce: 1. Load MapLab. 2. Select MapEdit. 3. Open the tutorial map. 4. Save this map under a new name. 5. Add a projection object to this map with the following information: "init=epsg:42304". 6. Save this map. 7. Select MapBrowser. 8. In the "Data Stores" section, click the link to add a server. 9. Add this server: "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?". 10. Close the "Servers manager" window. 11. Add the "Parks" layer. 12. Click on the "Query" tool. 13. Click in the map preview. 14. Fatal errors is displayed.
I think this bug is related to the WMS connection because when I do a query with the tutorial map as is, it works as expected.
Created an attachment (id=45) [details] projects.zip-Application with query tool that causes a fatal error
removed the metadata deletion operation that was causing this problem and it avoids the fatal error, allowing queries to proceed. Need to look into this more carefully so I'm leaving it open but please comment on whether this solves the problem under win xp.
The error is still there in the 20040721 maplab 2.2 version and ms4w 0.9.
Created an attachment (id=46) [details] projectsv2.zip-Fatal error with query (20040721 version).
I checked in the code and the following line "$oLayer->removemetadata( 'wms_sld_body' );" is still active. I commented that line and error message disappear.
which package did you use? Maybe I missed a step in packaging
fixed the second occurence in the wrapper map_query.php file
Verified on Windows XP ms4w 0.9 and maplab 2.2 20040720.