giantchen2012 / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Patch to add strings for KmlDomType printing #164

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Quick patch to kml22.h that generates an array of strings that correspond to 
the types in the KmlDomType enum. The global array, named KmlDomTypeString, can 
be used like this:

KmlDomType type;
type = feature->Type();
cout << KmlDomTypeString[type] << endl;

It was helpful for me, so I thought I would submit it. 

Thanks for making such a useful library!

Will

Original issue reported on code.google.com by hawki...@gmail.com on 8 Mar 2011 at 8:10

Attachments: