[UMN_MAPSERVER-USERS] Mapserver CGI or C API question
Skweda O'Bomsawin
sobomsawin at KASSINI.COM
Mon Nov 1 05:40:08 PST 2004
If your data are stored in a PostGIS database server, you can do a simple
SQL query to find the extends of the selected elements. I do that with a
CGI perl script but you can easily do that with PHP.
Skweda O'Bomsawin
-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de ANDY CANFIELD
Envoyé : 29 octobre 2004 17:06
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
For anyone who may know,
I am still working on my wireless app for using Mapserver from a Nextel
phone. So far so good except I'm starting to run into some things I don't
think the CGI was designed to do. At least not per the docs. Specifically I
need search functionality. I want to be able to pass in a layer, an
attribute and a value to search for and get back the bounding rectangle of
all the features returned. I'm pretty sure the CGI won't do that. Correct me
if I'm wrong so I don't waste time please. So what I'd like to do is write
my own CGI that does return this info. So these are my questions:
When you search a layer using mapserver's C api and it is searching a
shapefile and you want to search the whole shapefile regardless of bounds is
there any special searching that goes on or is it a straight loop through
all the records in the shape file looking for matches in the attribute field
specified? IE does it load a b-tree in memory and then search the tree or
anything like that?
Thanks,
Andy
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27
More information about the MapServer-users
mailing list