Opened 7 years ago

Closed 6 years ago

#89 closed defect (fixed)

Negative altitudes in KML export

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

Description (last modified by Olly Betts)

If I open the following example in aven and export underground survey legs as KML, the resulting KML files has negative altitude values.


*cs out UTM49N
*cs UTM49N
*fix	gps	0453838	2786895	217.5557
gps	1	10	0	0

Output: ...



Change History (5)

comment:1 Changed 7 years ago by Olly Betts

Milestone: 1.2.30
Version: 1.2.29

Well, they are underground!

It looks like the sine tilt angle correction has the wrong sign (KML doesn't actually allow you to export the survey tilted, but the same routine is used to adjust the coordinates regardless of the export format), so this is probably globally wrong (at least for formats which care about Z).

comment:2 Changed 7 years ago by Olly Betts


comment:3 Changed 6 years ago by Olly Betts

Milestone: 1.2.311.2.32

Ticket retargeted after milestone closed

comment:4 Changed 6 years ago by Olly Betts

Description: modified (diff)

comment:5 Changed 6 years ago by Olly Betts

Resolution: fixed
Status: newclosed

Fixed in [bfa604833d4d457f02e6f3986dbbf93ae9af0f80/git]. It's actually simply that the sign of Z in the exported coordinate system is flipped.

Looks like the bug was introduced in 1.2.27 by fixes for export of rotated plans and tilted elevations, so using an older version would be a workaround (though I'll probably do another release fairly soon with a few things I didn't get done in time for 1.2.31).

Note: See TracTickets for help on using tickets.