← Back to team overview

dhis2-devs team mailing list archive

Re: Importing GML files - SOLVED

 

Yeah..its finally working, there was a typo in one of the ogr:Name tagging!

-----

* Blessings & regards*

*Martin Namutso | IT Specialist | Mob: +256 782 006 662*

*----- If you think education is expensive try ignorance! -----
**
"To oppose CORRUPTION in government is the highest obligation of
patriotism." -- G. Edward Griffin
*


On Thu, Jan 3, 2013 at 4:26 PM, Jan Henrik Øverland <
janhenrik.overland@xxxxxxxxx> wrote:

> Does it work now? You are not supposed to get districts when you select
> regions..
>
>
> On Thu, Jan 3, 2013 at 2:19 PM, Martin Namutso <mnamutso@xxxxxxxxx> wrote:
>
>> Thanks Jan & Knut for the insightful replies...
>>
>> Jan, i actually matched them correctly and there was nothing in the New
>> column when importing - the # to update was exact as was in the DB. My
>> under-sight was - "*You get districts when selecting regions*"...*can't
>> stop :-) *
>>
>> A lunch break may get me back to shape!
>>
>> Thanks once again.
>>
>> *SOLVED - THREAD CLOSED!*
>>
>> -----
>>
>> * Blessings & regards*
>>
>> *Martin Namutso | IT Specialist | Mob: +256 782 006 662*
>>
>> *----- If you think education is expensive try ignorance! -----
>> **
>> "To oppose CORRUPTION in government is the highest obligation of
>> patriotism." -- G. Edward Griffin
>> *
>>
>>
>> On Thu, Jan 3, 2013 at 3:53 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>
>>> Guess my reply was too fast ;)
>>> But the issue may also be with the naming of OU levels?
>>>
>>> Sent from my mobile
>>> On Jan 3, 2013 7:48 AM, "Jan Henrik Øverland" <
>>> janhenrik.overland@xxxxxxxxx> wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> you don't need to pay attention to levels when you import coordinates,
>>>> the names just have to match. My guess is that even though you imported a
>>>> district shapefile (GML) the names probably did not match. Make sure that
>>>> the names in your <ogr:Name> tags in the GML file are matching exactly the
>>>> orgunit names in the database.
>>>>
>>>> You get districts when selecting regions. Are you sure you chose the
>>>> correct name tags when you renamed to <ogr:Name> ? District shapefiles
>>>> often have the region name as well.
>>>>
>>>> Knut, he selected the district level.
>>>>
>>>> Jan
>>>>
>>>> On Thu, Jan 3, 2013 at 1:46 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>>
>>>>> Martin,
>>>>> We normally dont bother to put in the coordinates for the whole
>>>>> country, because the map will then just show one polygon with a color,
>>>>> which is not so interesting. Thats why the top level is not showing a
>>>>> boundary. Google maps will have the national boundary anyway in the
>>>>> background map. But of course it is possible to add it.
>>>>>
>>>>> Sent from my mobile
>>>>> On Jan 3, 2013 7:32 AM, "Martin Namutso" <mnamutso@xxxxxxxxx> wrote:
>>>>>
>>>>>> Friends - i have a local DHIS2 setup on my laptop and i am trying to
>>>>>> import GML files.
>>>>>>
>>>>>> There were no shape files earlier on my system. I imported  Districts
>>>>>> of Uganda using the user guide on the dhis2 site - successfully. When i go
>>>>>> to Services -> GIS and Select the Boundary Layer; when i select District
>>>>>> from the drop down of level and click on Uganda under the Parent
>>>>>> organisation unit and click Update, the map doesn't appear.
>>>>>>
>>>>>> To my surprise when i change the Level to Region and click update, i
>>>>>> get the map showing districts. Its giving me a thought that i probably need
>>>>>> to import GML files according to the level's; is that correct?
>>>>>> The level's as set in my system are:-
>>>>>>
>>>>>>    1. Uganda
>>>>>>    2. Region
>>>>>>    3. District
>>>>>>    4. County
>>>>>>    5. Sub-County
>>>>>>
>>>>>> Does that mean that i need to import the GML files according to the
>>>>>> set levels? Or is something wrong with my earlier imported GML file?
>>>>>>
>>>>>> -----
>>>>>>
>>>>>> * Blessings & regards*
>>>>>>
>>>>>> *Martin Namutso | IT Specialist | Mob: +256 782 006 662*
>>>>>>
>>>>>> *----- If you think education is expensive try ignorance! -----
>>>>>> **
>>>>>> "To oppose CORRUPTION in government is the highest obligation of
>>>>>> patriotism." -- G. Edward Griffin
>>>>>> *
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>
>

Follow ups

References