Skip to content

Simple-KML unable to find gx:coord for a KML file #11

@phileo

Description

@phileo

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++;
                    }
                    ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions