Re: [mapserver-users] Loadquery in MAPSERVER 5.6.1
2010/3/27 Daniel Morissette dmorisse...@mapgears.com MapServer 5.4 introduced a new test to require that query files use the .qy extension, for security reasons. Try changing your code to use the .qy query file extension. Daniel Alexandre Trindade wrote: Hi, After upgrade the MS4W 2.3.1 ( Mapserver 5.2.1 ) to MS4W 3.0 ( MAPSERVER 5.6.1 ) my aplication stop to run when try use the function LOADQUERY. Not have message error, but the map not render image with selection. I'm note that file (bin) generated by SAVEQUERY ( MS4W 2.3.1 ) is diferent to the file(txt) generated in MS4W 3.0. I searched for modifications in this functions, but i'm not found. The same aplication generated this two files with function savequery run in MS4W 2.3.1 ( Mapserver 5.2.1 ) test.mapqy $X ÎüêJÀçm¡ ×Y=À 4 Ý-HÀK !9™ô9À and run in MS4W 3.0 ( MAPSERVER 5.6.1 ) test.mapqy MapServer Query - Generated by msSaveQuery() 0 5 6 -1 -1 -1 0 0 -1 -1 -1 -1 23 -1 0 NULL NULL -1 0 any suggenstions ? -- Alexandre Trindade Programador PHP ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Daniel, Thanks for reply my question. You're right, using the file extension .qy solved this problem , really thanks. But appears a new problem, my routine accumulates results using successive queryByIndex() and saves in query file for read later ( works fine in MS 5.2.1 ). However in the Mapserver 5.6.1 her saved only last queryindex result. foreach ($shp as $indx) { @$this-mapa-querybyindex($indxlayer,-1,$indx,MS_TRUE); } $this-mapa-savequery($this-qyfile); Is no longer possible using this method this way, or I'm not setting right? best regards Alexandre Trindade Programador PHP ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Loadquery in MAPSERVER 5.6.1
Alexandre Trindade wrote: Thanks for reply my question. You're right, using the file extension .qy solved this problem , really thanks. But appears a new problem, my routine accumulates results using successive queryByIndex() and saves in query file for read later ( works fine in MS 5.2.1 ). However in the Mapserver 5.6.1 her saved only last queryindex result. foreach ($shp as $indx) { @$this-mapa-querybyindex($indxlayer,-1,$indx,MS_TRUE); } $this-mapa-savequery($this-qyfile); Is no longer possible using this method this way, or I'm not setting right? Alexandre, Please do not bottom-post at the end of a very long email... just a hint to increase your chances of getting a response. You're lucky that I scrolled all the way down the very long email to read your question... I usually don't. Back to your question: I don't know if cumulative queries were expected to be supported in the past, and should be now. Hopefully Steve will read this and comment. If he doesn't then I suggest you post the question again clearly in a new post. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Loadquery in MAPSERVER 5.6.1
Hi, In the post http://n2.nabble.com/php-mapscript-loadQuery-problem-td4496775.html is shown the .qy file structure (by Steve Lime): Line - Contents 0 - magic string 1 - mode, type (single or multiple), Qlaya, slayer 2 - point x, y point, buffer, max results (queryByPoint) 3 - query rect (minx, miny, maxx, maxy) (queryByRect) 4 - shp index, tile index, clear cache flag (queryByIndex) 5 - qitem or NULL (queryByAttribute) 6 - QString or NULL 7 - operator (used by WFS) 8 + - query shape (queryByShape) My question is: how to include more than one element using shp index? Daniel Morissette escreveu: Alexandre Trindade wrote: Thanks for reply my question. You're right, using the file extension .qy solved this problem , really thanks. But appears a new problem, my routine accumulates results using successive queryByIndex() and saves in query file for read later ( works fine in MS 5.2.1 ). However in the Mapserver 5.6.1 her saved only last queryindex result. foreach ($shp as $indx) { @$this-mapa-querybyindex($indxlayer,-1,$indx,MS_TRUE); } $this-mapa-savequery($this-qyfile); Is no longer possible using this method this way, or I'm not setting right? Alexandre, Please do not bottom-post at the end of a very long email... just a hint to increase your chances of getting a response. You're lucky that I scrolled all the way down the very long email to read your question... I usually don't. Back to your question: I don't know if cumulative queries were expected to be supported in the past, and should be now. Hopefully Steve will read this and comment. If he doesn't then I suggest you post the question again clearly in a new post. Daniel -- edmar.more...@terra.com.br Skype/MSN: edmar.moretti Twitter: @edmarmoretti Blogs: http://edmarmoretti.blogspot.com/ http://mapasnaweb.blogspot.com/ Ohloh: https://www.ohloh.net/accounts/edmarmoretti Geógrafos: http://geografos.ning.com/profile/EdmarMoretti ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Loadquery in MAPSERVER 5.6.1
MapServer 5.4 introduced a new test to require that query files use the .qy extension, for security reasons. Try changing your code to use the .qy query file extension. Daniel Alexandre Trindade wrote: Hi, After upgrade the MS4W 2.3.1 ( Mapserver 5.2.1 ) to MS4W 3.0 ( MAPSERVER 5.6.1 ) my aplication stop to run when try use the function LOADQUERY. Not have message error, but the map not render image with selection. I'm note that file (bin) generated by SAVEQUERY ( MS4W 2.3.1 ) is diferent to the file(txt) generated in MS4W 3.0. I searched for modifications in this functions, but i'm not found. The same aplication generated this two files with function savequery run in MS4W 2.3.1 ( Mapserver 5.2.1 ) test.mapqy $X ÎüêJÀçm¡ ×Y=À 4 Ý-HÀK !9™ô9À and run in MS4W 3.0 ( MAPSERVER 5.6.1 ) test.mapqy MapServer Query - Generated by msSaveQuery() 0 5 6 -1 -1 -1 0 0 -1 -1 -1 -1 23 -1 0 NULL NULL -1 0 any suggenstions ? -- Alexandre Trindade Programador PHP ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Loadquery in MAPSERVER 5.6.1
Hi, After upgrade the MS4W 2.3.1 ( Mapserver 5.2.1 ) to MS4W 3.0 ( MAPSERVER 5.6.1 ) my aplication stop to run when try use the function LOADQUERY. Not have message error, but the map not render image with selection. I'm note that file (bin) generated by SAVEQUERY ( MS4W 2.3.1 ) is diferent to the file(txt) generated in MS4W 3.0. I searched for modifications in this functions, but i'm not found. The same aplication generated this two files with function savequery run in MS4W 2.3.1 ( Mapserver 5.2.1 ) test.mapqy $X ÎüêJÀçm¡ ×Y=À 4 Ý-HÀK !9™ô9À and run in MS4W 3.0 ( MAPSERVER 5.6.1 ) test.mapqy MapServer Query - Generated by msSaveQuery() 0 5 6 -1 -1 -1 0 0 -1 -1 -1 -1 23 -1 0 NULL NULL -1 0 any suggenstions ? -- Alexandre Trindade Programador PHP ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users