[mapguide-users] Suitable Database for MapGuide using FDO

Dhirendra Kumar dhirendra.mgos at gmail.com
Fri Mar 30 00:56:02 EDT 2007


Hi Paul spencer,

Thankyou for your replay, and right now i am studying MGOS Feature API. Paul
Spencer you mentioned in your message that you also  build two applications
like my Application. So,  if you don't mind then can you send me some PHP
Code sample for updating Attribute of SHP file Because to see code i can
understand better and Applay in my project fastly. I'll try to follow your
given Psuedo code. Thankyou

Regards 

Dhirendra Kumar





Paul Spencer-5 wrote:
> 
> Krunoslav, I don't think this is a particularly fair set of comments  
> to make.  Everyone has to start somewhere, and in open source we  
> (should try to be) particularly friendly to new users and help them  
> out.  In some cases, a little research is in order before coming to  
> the list (that is what FAQs are for).  I think this particular  
> question is valid for someone new to MapGuide OS.  New users become  
> experienced users and can help out ...  Also new users tend to ask  
> the 'obvious', 'dumb' questions that force you to think about things  
> in a different way and often improve a project :)
> 
> Dhirendra, MapGuide provides a rich API for editing feature sources  
> under MapGuide's management.  SHP and SDF files can easily be updated  
> if you are willing to spend some time learning the Feature API.
> 
> For your case, I would build two applications that point to the same  
> map.  The first would be public facing and just provide a view of the  
> data.  The second would be for entering new information into the  
> voting data source.  You can create a PHP page as a custom task and  
> add it to an application.  The PHP page would have (at least my first  
> idea of how to do this) a form with an input that is populated from  
> the voting station names and a series of input values that allow you  
> to enter in new values for each of the fields (i'm guessing number of  
> votes per candidate or something like that).
> 
> The psuedo code would look something like:
> 
> open map from session
> get voting layer from map
> get feature source id from voting layer
> if form was submitted:
>    get feature id from form variables
>    get field values from form variables
>    create new MgUpdateFeatures
>    execute MgUpdateFeatures
>    force refresh on voting layer
> output form header
> output voting station select:
>    open feature source id
>    select all features
>    loop over features:
>      output option with value = feature unique id (required above)  
> and station name
> close form
> 
> You could also output javascript and arrays of voting stations by  
> region and have two selects, one for regions that updates the voting  
> station select with the appropriate values if you have a lot to manage.
> 
> Cheers
> 
> Paul
> 
> On 29-Mar-07, at 2:35 AM, Krunoslav wrote:
> 
>>
>>
>>
>> Dhirendra Kumar wrote:
>>>
>>> Hi All,
>>>
>>> I am devleoping Election GIS System using MapGuide and my client
>>> requirment is to update data during run time. Example :- Suppose  
>>> today we
>>> have 30 booths in one district and next year it would increase by  
>>> 10. then
>>> how will i display on layer, right now i have only one solution of  
>>> this
>>> problem is that create new SHP file and place in MapGuide  
>>> manually. But my
>>> client requirment is updation should be Run time automatically. Is it
>>> possible using FDO ? if yes then which database will be suitable for
>>> MapGuide ? and please give me detail how will i use FDO in MapGuide.
>>> Please help me. I am
>>> waiting.....................................................
>>>
>>>
>>> Thankyou in Advance
>>>
>>> Dhirendra Kumar
>>>
>>
>> I don't mean to be offensive, but it seems to me like you took a  
>> task which
>> is too complicated for you. Election GIS system is not easy at all,  
>> and you
>> are newbie here just like me. To be honest, I would never accept  
>> such task
>> with so little knowledge about system I work with. You're asking  
>> every day
>> few questions and waiting, without reading the documentation, like  
>> someone
>> will do all the work for you. Again, I don't mean to be offensive,  
>> but I
>> think you should consider another solution, or give it to someone  
>> who knows
>> what he's doing.
>>
>> -- 
>> View this message in context: http://www.nabble.com/Suitable- 
>> Database-for-MapGuide-using-FDO-tf3484536s16610.html#a9727811
>> 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/ |
> +-----------------------------------------------------------------+
> 
> 
> 
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Suitable-Database-for-MapGuide-using-FDO-tf3484536s16610.html#a9747282
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list