QUERYRESULT QUESTION

Steve Lime Steve.Lime at DNR.STATE.MN.US
Thu Nov 29 10:48:53 PST 2007


In a querymap or ??? Sorta depends on how you are using the image in your application. You could,
for example, setup a special layer that is not normally drawn for this purpose. In your mapfile you'd
have:

  # normal polygon layer
  LAYER
    ...
  END

  # layer to hilite a polygon
  LAYER
    NAME 'hilite'
    ...    
    CLASSITEM 'primary_key'
    CLASS
       EXPRESSION '[primary_key_value]'
    END
  END

Then in your query results instead of using a query map you'd call mapserver, turning on the hilite layer
and passing in the primary key value for the selected polygon, for example:

  <img src=".../cgi-bin/mapserv?...&layer=hilite&primary_key_value=[primary_key]&...">

That would work if you're using query templates. You could also query the hilite layer specifically, only
turning it on for queries and using a standard querymap. You get more flexibility in symbolization with
the first approach. Make sense?

Steve


>>> On 11/28/2007 at 9:27 AM, in message
<593449.506.qm at web38207.mail.mud.yahoo.com>, Carlos Ruiz
<boolean10001 at YAHOO.COM> wrote:
> Hello to all, 
>    
>   I have a polygon layer, and i do a query by point operation, it's possible 
> just to show the 
>   polygon's perimeter as selected instead the whole polygon ?
>    
>   Thanks in advance
> 
> 
> IC Carlos Ruiz
>  
> 
>        
> ---------------------------------
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it 
> now.



More information about the MapServer-users mailing list