Last modified: 2013-01-09 01:31:08 UTC
When exporting semantic query of a list of coordinates to KML, results are empty if list of values is less than 10. Somehow, "offset" value is set to 10, and cannot be changed by specifying another "offset" value in the query. I resolved this issue by adding the following to SM_KMLPrinter.php at line 136 (though I do not code in PHP, so someone should review this): if ( array_key_exists( 'offset', $this->m_params ) ) { $link->setParameter( $this->m_params['offset'], 'offset' ); }
Thanks for your report :) This code no longer exists in the latest version (2.0 alpha) of Semantic Maps as it has been replaced by more generic handling which should not have the reported issue. So assuming this is fixed.
Please see http://semantic-mediawiki.org/wiki/Talk:Semantic_Maps#problem_with_KML_export_218 -- I am still experiencing this issue in new version of Semantic Maps
Just had a look and apparently I was wrong earlier that the code no longer exists. I suspect your earlier patch will still work. You can also just try to remove the getLink method altogether from the KMLPrinter. Anyway, I will try to have this old code be moved out in the next release.
Hello, earlier patch works OK for now.
It IS gone now :)