[Mapserver-users] Re: query a shape using mapfile

woodbri at swoodbridge.com woodbri at swoodbridge.com
Tue Jul 29 05:16:38 PDT 2003


Pedro,

First, please send queries to the list as there are many people that 
can help and you al less likely to get ignored :)

Once you have done your query in mapscript you need to get the shape 
object from the result and read its extents, You can then use the 
$map->setextent(...);
to set the extants to the extents of your query results extents and 
redraw the map.

This is a high level how to, you will need to read the Mapscript 
reference and work out the details. If you get stuck ask the list, 
I'm sure one of us will be happy to help.

-Steve W.

On 29 Jul 2003 at 12:21, Pedro Brito wrote:

> Hi!!
> I see your mail in the mapserv mailing list and I am trying to 
> implement a map server. In this moment I am trying to do query to
> layers and see the image that results from that layer. Example if I
> search Lisbon I could be able to see Lisbon in a map. I have the shape
> with Lisbon, and I do a query to that shape has you do in your
> example. I´m wondering how can I see the result?? (a image) I hope you
> can help me. Thanks
> 
> --
> ---------------------------------------- 
> Pedro Brito 
> mail : pedro_brito at yahoo.com 
> arnaldo.brito at iscte.pt 
> url : http://www.pedro-brito.pt.vu 
> ----------------------------------------
> 
> 
> 
> ________________________________________________
> This mail was sent by UebiMiau 2.5






More information about the MapServer-users mailing list