I don't have an example but I think you can just use index queries to build a 
larger result set:


-          Do a query that returns a single feature.

-          Use that features result index to do a series of layer 
queryByIndex() queries. There's an optional last argument that preserves the 
existing result set.

-          Process result set as you normally would using templates or just 
writing code against it.

Steve


From: Weisbender, Eric [mailto:weisb...@wapa.gov]
Sent: Wednesday, April 24, 2013 8:24 AM
To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org
Subject: RE: Query one return multiple

Do you have a quick example in MapScript that I might be able to use?

Thanks,

Eric Weisbender
Western Area Power Administration
Corporate Service Office
U.S. Dept. of Energy
office: (720) 962-7280
email: weisb...@wapa.gov<mailto:weisb...@wapa.gov>

From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Sent: April 23, 2013 11:07 AM
To: Weisbender, Eric; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: RE: Query one return multiple

I don't think so. If feature ids are sequential you might be able to link to a 
query that would get you the next feature. Depends on what client environment 
you're using.

You could do this with MapScript though.

Steve

From: 
mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Wednesday, April 17, 2013 11:40 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Query one return multiple

Hello list,

I was wondering if there is a way to query a point and return not only 
attributes for that point but the next points attribute in order in the dbf.  
Thanks in advance.

Thanks,
EW
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to