[mapguide-users] Search feature of two Layer (Overlapped)

Paul Spencer pagameba at gmail.com
Thu Mar 22 06:43:16 EDT 2007


Dhirendra,

there is no built in function to do this, but the web api is rich and  
you can accomplish this with some scripting in your favourite  
scripting language.

You can create a custom command in the task pane that has a single  
button 'find'.  You need to set up the task in Studio to pass the  
selection.  In your server-side code, you can get the selection  
object from the current map, get the feature (polygon) of the  
selection, then open the feature source associated with the voting  
booth layer and query it using the polygon as a spatial filter.  Then  
you can output whatever you like about the voting booths and it will  
show up in the task pane again.

There are many examples of this kind of thing, but nothing that does  
specifically what you are looking for.

I would guess this would be about 100 lines of code in PHP and a  
couple of hours of effort for an experienced mapguide developer.  For  
someone who is experienced in PHP but not with the mapguide API, it  
will take several days to understand how the API works and implement  
this properly.

Cheers

Paul

On 22-Mar-07, at 12:50 AM, Dhirendra Kumar wrote:

>
> Hi All,
>
> I am devloping Election GIS Application. I want to write query that  
> if user
> want to know how many Booth's are in specified village then query  
> retrive
> all booth's those are under specified village. i can search any  
> feature on
> one layer but here village layer and booth layer's are different  
> so, i'll
> have to first select specified village and on the basis of village  
> i have to
> search all Booth's. Is this possible to fire query on two layer at  
> a time ?
> If yes then how. Please
> suggest me. I am
> waiting............................................................... 
> ......................................................
>
> thankyou in Advance
> Dhirendra Kumar
> -- 
> View this message in context: http://www.nabble.com/Search-feature- 
> of-two-Layer-%28Overlapped%29-tf3445472s16610.html#a9608435
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users

+-----------------------------------------------------------------+
|Paul Spencer                          pspencer at dmsolutions.ca    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+






More information about the mapguide-users mailing list