libkml code