Bug 349114 - Marble silently fails to import valid kml. Does not signal error
Summary: Marble silently fails to import valid kml. Does not signal error
Status: CONFIRMED
Alias: None
Product: marble
Classification: Applications
Component: data (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR major
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-13 19:49 UTC by Ernesto
Modified: 2023-04-23 16:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Polygon surrounding Taveuni (440 bytes, application/xml)
2018-02-07 03:54 UTC, phma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernesto 2015-06-13 19:49:09 UTC
When importing bookmarks from the sample, valid kml file below, Marble neither imports the bookmarks nor signals an error. 

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
    <Document id="feat_1">
        <Placemark id="feat_2">
            <name>cmu</name>
            <Point id="geom_0">
                <coordinates>40.4424925,-79.9425528,0.0</coordinates>
            </Point>
        </Placemark>
    </Document>
</kml>


Reproducible: Always

Steps to Reproduce:
1. Create a sample.kml file with the contents described above
2.  Open marble->import bookmarks-> import that file
3. Nothing happens

Actual Results:  
Nothing

Expected Results:  
Either succesful import of bookmars or error explaining why they couldn't be loaded


<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
    <Document id="feat_1">
        <Placemark id="feat_2">
            <name>cmu</name>
            <Point id="geom_0">
                <coordinates>40.4424925,-79.9425528,0.0</coordinates>
            </Point>
        </Placemark>
    </Document>
</kml>
Comment 1 Friedrich W. H. Kossebau 2016-12-17 20:45:59 UTC
Still fails with latest Marble from master, v2.1.20
Comment 2 phma 2018-02-07 03:54:01 UTC
Created attachment 110384 [details]
Polygon surrounding Taveuni

The attached file is a squarish region surrounding Taveuni produced by Bezitopo as a test of crossing the antimeridian. Reading KML works in Marble 1.12.20 (Xenial Xerus) but not 2.2.1 (Artful Aardvark). In 1.12, I get a map of Fiji and surrounding ocean, with Taveuni at the center, surrounded by this boundary. In 2.2, I get a view of the earth, with Europe in the center, and Taveuni on the backside. Turning the globe around to see Fiji, I find no evidence of the boundary. The command is "marble tvu150.kml&".

I've published screenshots of Marble on http://bezitopo.org/bezitopo-0.1.1.html . Anyone trying to replicate this with current Marble will find it doesn't work.
Comment 3 Torsten Rahn 2023-04-23 16:39:27 UTC
Importing Bookmarks indeed still doesn't seem to work.

phma@bezitopo.org : The thing missing in the "Polygon surrounding Taveuni is the actual xml namespace.

<kml xmlns="http://www.opengis.net/kml/2.2">