Simple-KML
Simple-KML copied to clipboard
Simple-KML unable to find gx:coord for a KML file
I have this kml file: https://drive.google.com/file/d/0B6n-0chrqAAMbHhwRmwzSWFxNUU/edit?usp=sharing
When I run Simple-KML to parse it, I can the track and the schemaUrl, but not the gx:coord and timestamps. Any ideas why this is happening ?
Here is my code:
Document feature = (Document)kmlResult.getFeature();
for (Feature f : feature.getFeatureList()) {
Placemark placemark = (Placemark)f;
for (Geometry g : placemark.getGeometryList()) {
if (g instanceof MultiTrack) {
try {
MultiTrack thisTrackSet = (MultiTrack)g;
Log.d(TAG, thisTrackSet.getAltitudeMode());
Log.i(TAG, "number of tracks: " +thisTrackSet.getTrackList().size() );
for (Track t: thisTrackSet.getTrackList() ) {
Log.i(TAG, "number of schemaUrl: " + t.getExtendedData().getSchemaDataList().size());
for (SchemaData url:t.getExtendedData().getSchemaDataList() ) {
Log.d(TAG, "url: "+url.getSchemaUrl() );
}
Log.i(TAG, t.getCoord() );
Log.i(TAG, t.getWhen());
counter++;
}
....