#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)
Change History (8)
by , 10 years ago
by , 10 years ago
| Attachment: | test-export.kml added |
|---|
by , 10 years ago
comment:1 by , 10 years ago
| Summary: | Malformed KML on survey, names and walls export → Malformed KML on survey, names and passages export |
|---|
comment:2 by , 9 years ago
| Status: | new → assigned |
|---|---|
| Version: | → 1.2.30 |
comment:3 by , 9 years ago
| Milestone: | → 1.2.33 |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
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.
comment:4 by , 9 years ago
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.

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.