Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#90 closed defect (fixed)

Malformed KML on survey, names and passages export

Reported by: Erin Lynch Owned by: Olly Betts
Priority: minor Milestone: 1.2.33
Component: aven Version: 1.2.30
Keywords: KML Cc:

Description

If I exporting the attached file to KML with the Underground Survey, Station Names, and Passage Walls options all selected, it produces malformed KML. (This does not happen if you use a different combination of export options).

I've attached the data (test.svx), the output KML (test.kml), and the result of opening the KML in Google Earth and then saving the result as a KML (test-export.kml). When open in Google Earth, test.kml has some lines which appear in middle of the ocean, etc. The final element in test-export.kml contains:

<coordinates> 110.54017826,25.19636597,-213.09 110.54017978,25.1963312,-212.19 110.54017978,25.1963312,-211.34 25.19749535,-217.56,25.19749535 -217.56,25.19744036,-216.11 25.19741833000001,-215.82,25.1975296 -216.37,25.19764738,-213.47 25.19742375,-215.5,25.19742375 -215.75,25.19750557,-212.54 25.19726891,-214.4,25.19727652 -215.46,25.19722549,-215.04 25.19732882,-214.71,25.19742 -213.71,25.19712107,-215.84 25.19697584,-215.28,25.19673831 -214.7,25.19669255000001,-216.68 25.19666739,-213.49,25.19648383 -214.75,25.19641432,-215.59 25.19633302,-215.19,25.19633302 -215.39,25.19636597,-213.09 25.19639576,-212.28,25.1963312 -212.19,25.1963312,-211.34 </coordinates>

Cheers, Erin

Attachments (4)

test.kml (7.8 KB) - added by Erin Lynch 8 years ago.
test-export.kml (4.8 KB) - added by Erin Lynch 8 years ago.
test.svx (2.0 KB) - added by Erin Lynch 8 years ago.
ticket90.kml (10.2 KB) - added by Olly Betts 7 years ago.
fixed output

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by Erin Lynch

Attachment: test.kml added

Changed 8 years ago by Erin Lynch

Attachment: test-export.kml added

Changed 8 years ago by Erin Lynch

Attachment: test.svx added

comment:1 Changed 8 years ago by Erin Lynch

Summary: Malformed KML on survey, names and walls exportMalformed KML on survey, names and passages export

comment:2 Changed 7 years ago by Olly Betts

Status: newassigned
Version: 1.2.30

It's actually broken with just survey and names on (though maybe that case doesn't trigger the same issue in google earth) - this got broken in 1.2.30 when KML exports of walls and passages was added, and the order of the existing passes changed.

comment:3 Changed 7 years ago by Olly Betts

Milestone: 1.2.33
Resolution: fixed
Status: assignedclosed

Fixed in [f03d89e2cddf049584402dcb5dbe2cee72f1bfa5/git].

I'll attach the output with the fixed version so you can check, but I tried it in google maps and it seems to be under a village in China, which seems plausible.

Changed 7 years ago by Olly Betts

Attachment: ticket90.kml added

fixed output

comment:4 Changed 7 years ago by Olly Betts

BTW, I've also fixed the KML export to consistently use 2 dp for altitudes (i.e. nearest cm) instead of 2 in some places and 8 in others, so you should find the exported files are significantly smaller with passage info.

Note: See TracTickets for help on using tickets.