mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Fixed bug in KMLReport
This commit is contained in:
parent
20469bf719
commit
4b5447cc4a
@ -730,9 +730,9 @@ class KMLReport implements GeneralReportModule {
|
|||||||
*
|
*
|
||||||
* @param route
|
* @param route
|
||||||
*
|
*
|
||||||
* @return
|
* @return A HTML formatted list of the Route attributes
|
||||||
*/
|
*/
|
||||||
private String getFormattedDetails(Route route) {
|
private String getFormattedDetails(Route route) {
|
||||||
List<Waypoint> points = route.getRoute();
|
List<Waypoint> points = route.getRoute();
|
||||||
StringBuilder result = new StringBuilder(); //NON-NLS
|
StringBuilder result = new StringBuilder(); //NON-NLS
|
||||||
|
|
||||||
@ -749,13 +749,20 @@ class KMLReport implements GeneralReportModule {
|
|||||||
Waypoint end = points.get(1);
|
Waypoint end = points.get(1);
|
||||||
|
|
||||||
result.append(formatAttribute("Start Latitude", start.getLatitude().toString()))
|
result.append(formatAttribute("Start Latitude", start.getLatitude().toString()))
|
||||||
.append(formatAttribute("Start Longitude", start.getLongitude().toString()))
|
.append(formatAttribute("Start Longitude", start.getLongitude().toString()));
|
||||||
.append(formatAttribute("End Latitude", end.getLatitude().toString()))
|
|
||||||
|
Double altitude = start.getAltitude();
|
||||||
|
if(altitude != null) {
|
||||||
|
result.append(formatAttribute("Start Altitude", altitude.toString()));
|
||||||
|
}
|
||||||
|
|
||||||
|
result.append(formatAttribute("End Latitude", end.getLatitude().toString()))
|
||||||
.append(formatAttribute("End Longitude", end.getLongitude().toString()));
|
.append(formatAttribute("End Longitude", end.getLongitude().toString()));
|
||||||
}
|
|
||||||
|
altitude = end.getAltitude();
|
||||||
if (route.getAltitude() != null) {
|
if(altitude != null) {
|
||||||
result.append(formatAttribute("Altitude", route.getAltitude().toString()));
|
result.append(formatAttribute("End Altitude", altitude.toString()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Waypoint.Property> list = route.getOtherProperties();
|
List<Waypoint.Property> list = route.getOtherProperties();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user