Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-11-01 Thread Knut Staring
I also think it is related to how you have opened your XML in a text editor or similar, with text wrapping etc. On Tue, Nov 1, 2016 at 9:00 AM, Juan Manuel Alcantara Acosta < jmalcanta...@gmail.com> wrote: > Hi Jose > This was probably introduced by formatting the XML. This has not been a >

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-11-01 Thread Juan Manuel Alcantara Acosta
Hi Jose This was probably introduced by formatting the XML. This has not been a problem in previous versions. JM > El 01/11/2016, a las 07:04, Jose Garcia Muñoz escribió: > > > Great!! we had to remove the '\n' characters and also the white spaces... now > it is working!

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Great!! we had to remove the '\n' characters and also the white spaces... now it is working! (I pay the beers next time in Oslo). Now, how '\n' and '\s' characters could be introduced in our database? It seems that our XMLs files are fine... (I can attach them if you want). Thanks guys! On

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks Lars, I definitily will try to remove the '\n'. It is strange because we have '\n' in the coordinates of all org. units. I have checked the XMLs we have used for import, and they seem to be ok. Would it be related to a problem within the import process? It seems that only happens in

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Lars Helge Øverland
Hi Jose, seems like you have a linebreak in your geojson, see: "\n" Likely not behaving well with json parsing. Try removing that. Lars On Mon, Oct 31, 2016 at 9:36 PM, Jose Garcia Muñoz wrote: > > Ok, I see, I think this is because of the blank

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Ok, I see, I think this is because of the blank spaces?? [{"id":"NC3WdxGafv5","code":"KH","na":"Cambodia","hcd":false,"hcu":true,"le":3,"pg":"/FvUGp8I75zV/aChOCLW4x6p","pi":"aChOCLW4x6p","pn":"Asia and Eastern Europe","ty":2,"co":"\n

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Bjørn Sandvik
Hi Jose, Could you send the the results of the geoFeatures query than your GIS app is requesting? The coordinate format should be similar to: https://play.dhis2.org/demo/api/25/geoFeatures.json?ou=ou:LEVEL-2;ImspTQPwCqd=NAME "co":

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks for the quick actions Jan, Bjorn, Almost there :). Now the GIS is being displayed, but whenver I want to display the bounderies of a country (or bounderies of any level) I'm getting the following error: The org. units have been imported from 2.22 to 2.25. It seems that everything is

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks Abyot, Bjorn, Abyot, the API didn't give us any error, so I really don't know what the problem may be Bjorn, thanks, will try your fix in the following hours and let you know Cheers Jose On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik wrote: > Hi Jose, > > I've

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Bjørn Sandvik
Hi Jose, I've applied a fix, so please check the latest version of DHIS 2.25. The error was due to missing infrastructural indicators and infrastructural data elements, which is no longer required for the GIS app to start. The functionality in GIS app is of course still limited if you have an

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Abyot Asalefew Gizaw
ok, may be then you have a different problem. I got same problem and assigning infrastructural elements fixed it... can you check into your browser console and look for any web api request that has failed? -- Abyot A. Gizaw. Senior Engineer, DHIS2 University of Oslo http://www.dhis2.org On Mon,

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks Abyott, I have created an infrastructural dataelements in the General Settings but still not working (I have clean the cache also). This the error I'm getting: /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse () at success

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Abyot Asalefew Gizaw
Hi Jose, The issue I think is about missing infrastructural data elements / indicators in Settings page. If you could fill something there, it will work. Of course, these items shouldn't be mandatory for GIS to run. -- Abyot A. Gizaw. Senior Engineer, DHIS2 University of Oslo

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-30 Thread Jose Garcia Muñoz
Thanks Bjorn, really appreciate that! The point is that I'm conducting a training in Vietnam this week, and we really need to show the maps by Wednesday. Do you think you can have a solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night). Otherwise, please let me know, because I

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-30 Thread Bjørn Sandvik
Hi Jose, I'll look into the issue in the next few days. It's probably related to these issues: https://github.com/dhis2/gis-app/issues/164 https://github.com/dhis2/gis-app/issues/163 -- Bjørn Sandvik GIS developer, DHIS 2 University of Oslo www.dhis2.org On Sun, Oct 30, 2016 at 11:44 AM,

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-30 Thread Jose Garcia Muñoz
Hi guys, I don't know the status of this? We have started to build using a new completely empty box in 2.25 (no dataelements, no optionsets...) just with some orgunits (country level). Whenever I go to the GIS, I get an error in the JavaScript console (attached at the end). All Network calls

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-24 Thread Calle Hedberg
Morten, Thanks - noted, Regards Calle On 24 October 2016 at 10:08, Morten Olav Hansen wrote: > Hi Calle > > No, this is just general Chrome Developer Tools stuff.. should be easy to > google for a guide :) > > I see that there are plenty videos on youtube also (search for

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-24 Thread Morten Olav Hansen
Hi Calle No, this is just general Chrome Developer Tools stuff.. should be easy to google for a guide :) I see that there are plenty videos on youtube also (search for "chrome developer tools"), this can be very useful in figuring these kinds of issues. -- Morten Olav Hansen Senior Engineer,

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-24 Thread Calle Hedberg
Morten, i was not aware of the "log XHR requests" feature. Is there a DHIS2-related guide to using advanced features of the Chrome console somewhere? Regards Calle On 24 October 2016 at 04:31, Morten Olav Hansen wrote: > Hi Sam > > This is caused by the metadata having some

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-23 Thread Morten Olav Hansen
Hi Sam This is caused by the metadata having some issues I'm guessing... I would try and have a look at the network panel (in the web inspector) to see exactly which request it stops on.. since you are using Chrome, you should be able to right click on the console and select "log XHR requests",

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-17 Thread Marc Garnica
Hi all, My GIS isn't loading also in 2.25. Dhis and tomcat logs don't write any error but the browser console gave me: *Uncaught SyntaxError: Unexpecte end of JSON INPUT /dhis-web-mapping/#:1* *Uncaught SyntaxError: Unexpected end of JSON input VM808:1* *success

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-17 Thread Lars Helge Øverland
On Mon, Oct 17, 2016 at 3:42 PM, Sam Kasozi wrote: > GIS is failing to load in a new instance of 2.25; not sure if this is a > bug or whether some pre-configuration needs to happen. > > regards, > > Hi Sam, we need some more info, can you check in the browser developer