Topic on User talk:Jeroen De Dauw

Jump to navigation Jump to search
Tetrao (talkcontribs)

Hi Jeroen, I've tried your extension kml export, but it doesn't seems to work on my wiki ! I can publish googlemaps (so it seems working well) with Maps and Semantic-Maps. I even tried with adding 'kml' format in the array in the settings of result formats or adding $srfgFormats[] = 'kml'; in the localsettings.php

on the page you give two examples of queries for coords, how do we get the kml export file?

Thanks for answer and continue working in Wikipedia !!!

Jeroen De Dauw (talkcontribs)
Acnetj (talkcontribs)

There was a problem for "/Maps/includes/Maps_KMLFormatter.php" line 157. The parser tries to get the altitude value from the database that doesn't exist. (KML file has altitude values besides lat/long, and is supposed to be zero if there's no value). I basically changed that line to: "$coordinates->getLongitude() . ',' . $coordinates->getLatitude() . ',0'" and the problem goes away. There might be a better way to do this, but if the geo coordinate property is not designed to hold altitude, then have the altitude value hard coded as zero may still be suitable. (talkcontribs)

Thanks for pointing this out. This is fixed now, in the 3.2.2 release.

Reply to "Kml export"