[Mapserver-users] search by attributes

Janeks Kamerovskis janeks.kamerovskis at silva.lv
Mon May 24 03:13:53 PDT 2004


As I understood from
http://mapserver.gis.umn.edu/doc40/cgi-reference.html#cgi-variables

it is possible even with cgi exe but I would like to look in an example or
tutor.
Of course if I will not find any I'll start to go throught dummy testing cgi
variabales and
results, probably making some php scripts.

If I'll have success with fast results perhaps I will have a time to make an
example with short desciptions
for other beginers.

thanks a lot
Janeks

> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of
> Norbert Thieme
> Sent: Monday, May 24, 2004 11:27 AM
> To: Janeks Kamerovskis
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] search by attributes
>
>
> Janeks Kamerovskis schrieb:
> > Hi, MapServer users!
> >
> > I am beginner in Mapserver.
> > I successfully created my first mapserver app. with my own data.
> >
> > One of things that I am interested  to implement in next version
> > of my map is possibility to make some kind of feature search by
> attributes
> > and select or/and zoom to found features.
> >
> > Is it possible in MapServer and if is, than could somebody post
> some info
> > about how to do it or drop a link to an example!
> >
> > Looking forward for your replay,
> > Janeks Kamerovskis
> > forestry consultant
> > Lat-Fin Joint venture SILVA Ltd
> > tel.+371-7804352
> > fax.+371-7804340
> > mob.+371-9191109
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> >
>
>
> Hi,
>
> I use php/mapscript. If you want to use only CGI this won't help you.
>
> With the querybyattributes method in mapscript you can select the the
> searched features and draw them hilited if you want.
>
> I'm also looking for a method to zoom to a selected feature but I
> haven't found an easy way yet. The only way I see at the moment with
> mapscript is to use the shapeindex of the query result. With the
> shapeindex you can use getshape on the layer to get a shape object. You
> can then use the bounds of the shape object to set a new extent and draw
> an image with that.
>
> I haven't tried it out so I can't tell you how the performance will be.
>
> I hope someone can give a better way to do it.
>
> Regards,
> Norbert
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list