Re: [MAPSERVER-USERS] Highlighting query results

2008-09-04 Thread Ящик на mail . ru
Yes! After query has been performed I have a_layer.getResults() > 0 and imageObj img = m_map.drawQuery(); // here img is not null I've saved img into file and noticed that selection is exists! img.save("query1234.gif", m_map); // Here selected object has been highlighted! So I finally have decided

Re: [MAPSERVER-USERS] Highlighting query results

2008-09-03 Thread Steve Lime
Are you sure the search is returning something? (e.g. it worked) Steve >>> On 9/3/2008 at 7:54 AM, in message <[EMAIL PROTECTED]>, shurhen <[EMAIL PROTECTED]> wrote: > Thank you, Steve! > > I tried your way, but I have not got result - selected object still remains > same as others. > I've add

Re: [MAPSERVER-USERS] Highlighting query results

2008-09-03 Thread shurhen
Thank you, Steve! I tried your way, but I have not got result - selected object still remains same as others. I've added these lines in map-file but there are no results: QUERYMAP COLOR 0 0 255 STATUS ON STYLE HILITE END What I've missed? 2BrainDrain: Thank you, I'll try and your way t

Re: [MAPSERVER-USERS] Highlighting query results

2008-09-02 Thread BrainDrain
Instead of draw query I use map.saveQuery to file and then 'queryFile' param of mapserv cgi. I think it is useful too (C# mapscript slower then cgi on windows). Steve Lime wrote: > > MapServer supports what's called a query map. It basically replaces the > color of the top-most > style for a lay

Re: [mapserver-users] Highlighting query results

2008-09-02 Thread Steve Lime
MapServer supports what's called a query map. It basically replaces the color of the top-most style for a layer with one defined in the query map object (default is yellow). Typically in MapScript you'd do: a_layer.queryByAttributes(m_map, null, a_query, 1); img = m_map.drawQuery(); You can

[mapserver-users] Highlighting query results

2008-09-02 Thread shurhen
Hi! I'm newbie in mapserver :) I need to highlight query results. I wanna select object by attribute and then highlight it. But I've not found any information how can I do this. Most of GIS have possibility to highlight selected objects, therefore I suppose what MapServer has this ability to