[Mapserver-west] Bounding Box and Selection
Doug Renwick
dug at copia.net
Mon May 30 18:27:31 EDT 2005
Thanks Matt.
Doug
On 5/30/05 11:12 AM, "Matthew Perry" <perrygeo at gmail.com> wrote:
> Dean,
>
> You wrote:
>> Is there any code out there for a bounding box? And once the box has been
>> drawn, the items are selected?
>>
>
> The call to mapserver is relatively simple: Just use a mode=nquery
> which selects multiple featuers. Then give it the mapfile, the imgext
> (image extents in real coordinates), the imgbox (coordinates of the
> query box in pixels), the imgsize (map image size in pixels) and the
> layers you want to query. Here's an example:
>
> http://localhost/cgi-bin/mapserv.cgi?mode=nquery&map=/maps/atlas.map&imgext=33
> 8729.35560859187+4471600+673170.6443914081+4701700&imgbox=545+213+591+253&imgs
> ize=610+420&layers=major_rivers
>
> Now the real trick is getting the interface to construct this query
> for you. What client software (ie HTML interface) are you using to
> talk to mapserver? This will largely be a javascript issue and will
> vary depending on your interface.
More information about the Mapserver-west
mailing list