interactively select within polygon

Steve Lime Steve.Lime at DNR.STATE.MN.US
Wed Aug 30 17:59:44 EDT 2006


The MapServer CGI can accept an arbitrary shape as input for a query. I believe you set imgshape
or mapshape and then set mode=nquery or something like that. Bottom line, you don't need MapScript.

So, if you can get the coordinates out of jbox you're in business. You can probably extend, as Rich
suggests, the measure tool. Unlike the measuring you'd need a mechanism to know when you're
done drawing so you can submit the polygon. I suppose you could detect a keystroke (e.g. Esc) or
even show a 'Done' button when you enter drawing mode.

Steve 

>>> Richard Greenwood <richard.greenwood at GMAIL.COM> 8/30/2006 12:00:55 PM >>>
-------- Original Message --------
Subject:        helpme with jBox...
Date:   Wed, 30 Aug 2006 11:31:23 -0500
From:   Oscar Mauricio Murillo Suárez <oscmao at gmail.com>

Hi
My name is Oscar and I am working with jBox and Mapserver, but I have a
problem. I need to select same points, but it is'nt a select within box,
I need to be a select within polygon. I don't know how to modify the
applet for this action?. Can you help me ? Thanks and you excuse my bad
handling for english, good bye.

-------------------------------------------

Hello Oscar,

I have forwarded your question to the MapServer-Users mailing list. I
have changed the subject line to "interactively select within
polygon". You can (and should) join this very helpful list at:
   http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/ 

jBox does not support selecting points within a user-drawn polygon.
You could add the ability fairly easily (extend the measure tool) but
you would still need to have mapserver process the polygon because the
actual selection of points would take place on the server.

I think this would require the use of mapscript, I think there are
other on the MapServer-Users list who would be better able to answer
your question than me.

Regards,
Rich

--
Richard Greenwood
www.greenwoodmap.com 


-- 
Richard Greenwood
richard.greenwood at gmail.com 
www.greenwoodmap.com



More information about the mapserver-users mailing list