Update OGR KML driver to use libkml
|Reported by:||condit||Owned by:||condit|
Because the original KML driver was stream based, OGR cannot correctly write out some of the new OGC KML 2.2 constructs (ie writing out the schemas for layers before they are written out). The accommodate the new schema we need to switch the underlying library for writing / reading KML. libkml (http://code.google.com/p/libkml/) is an ideal candidate to accomplish this.