This commit is contained in:
apriestman 2020-11-24 08:40:55 -05:00
parent 98f3d2a974
commit 821b733428
3 changed files with 7 additions and 6 deletions

View File

@ -118,12 +118,12 @@ abstract class AbstractWaypointFetcher implements WaypointBuilder.WaypointFilter
for (List<Waypoint> t : geoDataSet.getAreas()) {
areaSets.add(MapWaypoint.getWaypoints(t));
}
// TODO check for area errors too TODO TODO
handleFilteredWaypointSet(
pointSet, trackSets, areaSets,
(trackResults == null || trackResults.isSuccessfullyParsed())
&& (areaResults == null || areaResults.isSuccessfullyParsed())
&& waypointResults.isSuccessfullyParsed());
&& (areaResults == null || areaResults.isSuccessfullyParsed())
&& waypointResults.isSuccessfullyParsed());
}
/**
@ -296,6 +296,9 @@ abstract class AbstractWaypointFetcher implements WaypointBuilder.WaypointFilter
return -1L;
}
/**
* Utility class to collect filtered GPS objects.
*/
static class GeoDataSet {
private final List<Waypoint> waypoints;
private final List<List<Waypoint>> tracks;

View File

@ -1,6 +1,4 @@
CTL_RunIngestAction=Run Ingest
CustomGPSIngestModule_Description=Just makes a few custom artifacts with GPS data
CustomGPSIngestModule_Name=Custom GPS Module
IngestJobSettingsPanel.IngestModulesTableRenderer.info.message=A previous version of this ingest module has been run before on this data source.
IngestJobSettingsPanel.IngestModulesTableRenderer.warning.message=This ingest module has been run before on this data source.
IngestJobSettingsPanel.noPerRunSettings=The selected module has no per-run settings.

View File

@ -747,7 +747,7 @@ public final class KMLReport implements GeneralReportModule {
Element altitudeMode = new Element("altitudeMode", ns).addContent("clampToGround"); //NON-NLS
polygon.addContent(altitudeMode);
// KML uses lon, lat. Deliberately reversed.1
// KML uses lon, lat. Deliberately reversed.
Element coordinates = new Element("coordinates", ns);
for (Waypoint wp : waypoints) {
coordinates.addContent(wp.getLongitude() + "," + wp.getLatitude() + ",0 "); //NON-NLS