We need to get a "limit" keyword in place for just such an occasion. I have some other ideas though. It depends on where you want to limit the search results- in a template or in a query map.
- for a template you could load all points into javascript objects and then only display the first one (layer header defines the object, layer template populates objects, and layer footer displays the first). This is easy to do, let me know if you need an example. Actually for a query map you should be ok since the points are stacked anyway I would think the visual effect would be what you want (e.g. that location highlighted). Steve >>> "Hunter, David - St. Louis Park, MN" <[EMAIL PROTECTED]> 12/19/06 3:21 PM >>> I use mode=nquery because there are two polygon layers that may or may not have features at the same point, and those need to be listed in the query results also. If there is no other workaround, I will have to work out some compromises and use mode=query. -----Original Message----- From: Steve Lime [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 5:20 PM To: Hunter, David - St. Louis Park, MN; [email protected] Subject: Re: [UMN_MAPSERVER-USERS] querymap with stacked points CGI mode=query will return the first feature encountered within tolerance limits. Steve >>> "Hunter, David - St. Louis Park, MN" <[EMAIL PROTECTED]> 12/18/2006 10:01:15 AM >>> No mapscript, just CGI Mapserver. Data sources are shape files. _____ From: Hal Mueller [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2006 3:57 AM To: Hunter, David - St. Louis Park, MN Cc: [email protected] Subject: Re: querymap with stacked points Are you using Mapscript? What is the datastore--shapefile, database, other? There are lots of ways to do this, depending on how your app is structured. At 10:18 AM -0600 12/13/06, Hunter, David - St. Louis Park, MN wrote: My map application allows users to click on point features, which causes a popup that displays information about that feature. Due to reasons I won't go into here, we sometimes have multiple points stacked on top of each other. They are essentially the same feature, but with some slightly different attributes to each record. Is there a way that I can filter this, so that only the first feature found is returned in the query? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 " Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ' Phone: 952.542.1440 ext. 256 7 Fax: 952.542.3859
