Package videoRangePanel
Class LocationManager
java.lang.Object
videoRangePanel.LocationManager
When taking photos users may have been at one location, on a boat, or at multiple different static locations. There are multiple ways PAMGUARD could provide position data, a user may upload a GPS track, or maybe a user wants to write a list of co-ordinates that can be selected for different photographs.
The photos could even be geo-tagged. We need a manager for this which brings all these elements together and allows users to easily select exactly how they want to define their position.
- Author:
- Jamie Macaulay
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intGoes through the array manager and determines a location of the 'boat'.static final intGet the GPS location from a landmark group.static final intGets GPS from a table or other source of manually inputted data.static final intFlag to indicate no GPS datastatic final intLook for a geo-tag in the current photo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]An array of all the methodsint[]Get the current array of methods for determining a location.intgetLocation(long timeMillis) Get the Location based on the set priority for methods.intgetPriority(int type) Get the priority of the location type.getTypeString(int type) searchGPSDataBlock(long timeMillis) Deprecated.voidsetCurrentMethods(int[] currentMethods) voidsetLastSearch(int lastSearch)
-
Field Details
-
NO_GPS_DATA_FOUND
public static final int NO_GPS_DATA_FOUNDFlag to indicate no GPS data- See Also:
-
ARRAY_MANAGER
public static final int ARRAY_MANAGERGoes through the array manager and determines a location of the 'boat'. This is the automatic method and will select GPS position from datablock or array manager input if static.- See Also:
-
PHOTO_TAG
public static final int PHOTO_TAGLook for a geo-tag in the current photo- See Also:
-
MANUAL_INPUT
public static final int MANUAL_INPUTGets GPS from a table or other source of manually inputted data.- See Also:
-
LANDMARK_GROUP
public static final int LANDMARK_GROUPGet the GPS location from a landmark group. If doing this we assume that all the origin latlongs of the landmarks are the same. Hence just find the origin of the first landmark.- See Also:
-
-
Constructor Details
-
LocationManager
-
-
Method Details
-
getPriority
public int getPriority(int type) Get the priority of the location type. Returns -1 if location type is not included in list.- Parameters:
the- location method- Returns:
- the priority of this method. 0 means this method is tried first, 1 tried seconds etc.
-
getCurrentMethods
public int[] getCurrentMethods()Get the current array of methods for determining a location. The order the array indicates the priority methods should be attempted.- Returns:
- an array of the current methods selected by the user in order of priority.
-
getLocation
Get the Location based on the set priority for methods.- Parameters:
timeMillis- - time of GPS location- Returns:
- latlong at timeMillis
-
getTypeString
-
searchGPSDataBlock
Deprecated. -
getLastSearch
public int getLastSearch() -
setLastSearch
public void setLastSearch(int lastSearch) -
getAllMethods
public static int[] getAllMethods()An array of all the methods- Returns:
-
setCurrentMethods
public void setCurrentMethods(int[] currentMethods)
-