← Back to team overview

dhis2-users team mailing list archive

Re: GML Files

 

Thanks Sushil,

I will surely get back to you with feedback and my queries if I will have
any.

On Wed, Apr 15, 2015 at 3:12 PM, Sushil Chitrakar <sushilchitr@xxxxxxxxx>
wrote:

> Hello Neeraj,
> yes you are right. With this email I am sending you the app. I hope this
> will head start the work.
>
> So features and key notes:
> 1. remove digits from the coordinates, ie. coordinates will have only 4
> digits after .(eg: 23.33333333 -> 23.3333)
> 2. display the dbf values
> 3. allow user to map the columns with the columns in the DHIS2 database.
> 4. automatically try to find the parent of each organisation units from
> the db, if not all user to select the parent.
> 5. import the organisation units into the db with coordinates.
>
> Things you need:
> 1. Shaper files(.dbf and .shp) for each layer
> 2. coordinates in the .shp file must be of projection EPSG:4326 in case
> of DHIS2
>
> I have included the steps to follow after installing the app for importing:
>
> 1. open the app.
> 2. choose the level*.shp file. level*.shp file is the shape file that you
> have. First(zero level) is country
> 3. now drag the corresponding .dbf file into the browser. ie dbf file of
> the country ( you can drag or upload both files at once aswell)
> 4. after dragging the .dbf , adjust the detail of map you want to be
> imported using the slider in the browser. You can see slight changes in the
> map detail.
> 5.  now use the button Org Unit to display the list of org units in the
> .dbf file.
> 6. in the same page, you choose column with the id of the org unit, its
> parent, name and short name and level of the organisation units. The
> columns for corresponding data  are listed in the select box on top of
> table.  For  country since its a zero level, it does not have a parent, so
> do not choose anything. For other level like in the first level,
>  development region , you need to choose the id of country or its parent
> there. After choosing all the mandatory fields the Map field button will be
> enabled.
>
> 7. Use the map fields button to map the fields with the database and find
> the parent automatically on the basis of  code.
>
> 8. If the app finds the matching parent it will show up in the parent
> column. If not you will be allowed to choose the parent from the select box.
> 9. Then choose the organisations units that you want to import. After
> choosing the at least one row from the list, import button will be
> displayed.
> 10. then use import button to import the data into the dhis.
>
> 11. If you want to see the GML data, please choose the "show GML text"
> check box.  It will also display the GML data at the right side in a text
> box.
> 12. now follow the same process again.
>
> I hope that you can provided me some feedback on this app and help me work
> on this more and also for my thesis.  Let me know if you have any issues
> installing the app or using it. One link that can be helpful for installing
> the app is:
> https://www.dhis2.org/doc/snapshot/en/developer/html/ch02s03.html
>
> Please take a look on the work and also please send me some feedback how
> this app worked for you. What are the issues that you find with the GML,
> how this solved your problem if it did and your other remarks.
>
>
> Regards,
> Sushil
>
> On 15 April 2015 at 15:22, Neeraj Gupta <neeraj.hisp@xxxxxxxxx> wrote:
>
>> Thanks Sushil for your commitment.
>>
>> Actually, to use GIS in any of the application we are working with shape
>> files and converting shape files to GML files and then we are importing to
>> DHIS2 which needs a number of tools but as per my understanding with Knut's
>> mail, with your app we can cut down the processes and tools.
>>
>> I am eager to know about your app and would definitely like to use the
>> app for future.
>>
>> On Wed, Apr 15, 2015 at 2:58 PM, Sushil Chitrakar <sushilchitr@xxxxxxxxx>
>> wrote:
>>
>>> Hello Neeraj,
>>> yeah sure. Just let me know what you need, and the we can move ahead.
>>>
>>> Regards,
>>> Sushil
>>>
>>> On 15 April 2015 at 15:11, Neeraj Gupta <neeraj.hisp@xxxxxxxxx> wrote:
>>>
>>>> Hi Sushil,
>>>>
>>>> It will be very interesting to work with such an app. Can you please
>>>> guide us for the app.
>>>>
>>>> On Fri, Apr 10, 2015 at 1:25 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>>
>>>>> Hi Muhammad,
>>>>>
>>>>> Actually, the GML route is not strictly necessary, and quite
>>>>> cumbersome, as it involves a number of tools. I strongly suggest you rather
>>>>> work with Sushil Chitrakar (copied) and try his App which takes care of
>>>>> both properly formatting and importing shapefiles directly. Sushil can
>>>>> guide you through all the steps, and will also be grateful for any feedback
>>>>> on the App and the process.
>>>>>
>>>>> Regards,
>>>>> Knut
>>>>>
>>>>> On Fri, Apr 10, 2015 at 9:32 AM, Muhammad Bilal Siddqui <
>>>>> m.bilalsiddqui@xxxxxxxxxxxxxxx> wrote:
>>>>>
>>>>>> Can i get some GML file sample that can import in DHIS2. I want to
>>>>>> make a GML file for my country OUs but i dont know how to make one? Is GML
>>>>>> file is some .gml file like that or else?
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Knut Staring
>>>>> Dept. of Informatics, University of Oslo
>>>>> Norway: +4791880522
>>>>> Skype: knutstar
>>>>> http://dhis2.org
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks,
>>>> Neeraj Gupta
>>>>
>>>
>>>
>>
>>
>> --
>> Thanks,
>> Neeraj Gupta
>>
>
>


-- 
Thanks,
Neeraj Gupta

References