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

Reply via email to