KML layer problem


#1

Hi all.

I’ve been having issues with KML layer not displaying in my local ushahidi installation. I’ve checked a few topics about KML layer issues and tried different approaches to solve the problem, without any success though.

I can upload the kml or kmz normally, but when I try to turn the layer on, it won’t display. And I get the following entry on the error log:

2014-09-22 17:11:29 +00:00 — error: Kohana_Exception not captured: Unknown Exception: Error number: 6
Error message: Could not resolve host: D:\apps\xampp\htdocs\ushahidi2\media; No data record of requested type
in file D:/apps/xampp/htdocs/ushahidi2/application/controllers/json.php line 665

line 665 of json.php is:
throw new Kohana_Exception($layer_request->get_error_msg());

Any ideas?
Thanks


Layer kml not displaying
#2

Hello, I don’t know if you’re referring to the 2.7.x or to the 3.x version; if the former there are some limitations about the file size limit; more it takes some seconds to display the layer when you click on its name in the front page.
For sure that feature is one that could give a quantum leap to the ushahidi platform (if easy implemented)
Try a wiki search; https://wiki.ushahidi.com/display/WIKI/KML+Best+Practices
it’ll give you several source of information.
I look forward to know if and how when you’ll fix it.
Regards,

Giuseppe


#3

Hi Giuseppe. Thanks for your reply!
I’m using version 2.7.4. I had checked a few topics and also the wiki page of KML Best Practices and made several test, including trying to display a very small file with only 1 feature.
I believe that the problem is not with the delay of the platform in displaying the layer, since there is this error message logged in the file.
If I manage to find the solution somehow, I’ll definitely post it here.
Thanks


#4

Hello, in one of my projects I had to add a KML layer to this crowdmap: https://urbanbiodiversity.crowdmap.com/main?l=it_IT
After having read this: https://wiki.ushahidi.com/pages/viewpage.action?pageId=5669057
and from my experience I’ve found that the key point are: the KML size and the way to get it: I had to convert it from a shape file;
I found the application that produced the KML the crowdmap was able to display.
Hopefully that would be of help.

Giuseppe


#5

I experienced a similar problem. I first tried the “upload” button on the layers page, and the KML layer didn’t show up. Next I tried manually uploading the KML file to the uploads folder on the server, and used the “link” filed instead of the upload button in order to attach the layer (I included the entire URL to the file, i.e. “http://…/media/uploads/mykml.kml”). Now the layer is showing up. Haven’t debugged, so not sure why.


#6

Hi jdeboy.
Thanks for the suggestion. It worked here too!


#7

Hi Everyone,

Is it possible to add another “OTHER LAYERS” panel to the frontend of ushahidi deployment?

Thanks!