Class XConstants
- java.lang.Object
-
- org.opensextant.extractors.xcoord.XConstants
-
public final class XConstants extends java.lang.Object
- Author:
- ubaldino
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_PATTERNS
static int
CONTEXT_FILTERS_ON
RUNTIME FLAGS: filter out coordinate matches that appear embedded in other text, e.g., ABC45.44,77.1Wstatic int
DD_FILTERS_ON
RUNTIME FLAGS: filter Decimal Degree coordinates -- primarily for bare floating point numbers w/out hemisphere or other symbolsstatic int
DD_PATTERN
static int
DM_PATTERN
static int
DMS_FILTERS_ON
RUNTIME FLAGS: filter DMS coordinatesstatic int
DMS_PATTERN
static java.util.Map<java.lang.String,java.lang.Integer>
familyInt
static java.util.Map<java.lang.Integer,java.lang.String>
familyLabel
static int
FILTERED_IN
static int
FILTERED_OUT
static int
FLAG_ALL_FILTERS
RUNTIME FLAGS: filter all coordinate patterns that have filtersstatic int
FLAG_EXTRACT_CONTEXT
RUNTIME FLAGS: extract context or notstatic int
MGRS_FILTERS_ON
RUNTIME FLAGS: filter MGRS coordinates -- date patterns and NUM PER NUM patterns e.g., the ratio "4 per 4000" is not MGRSstatic int
MGRS_PATTERN
static int
UNFILTERED
static int
UNK_PATTERN
static int
UTM_PATTERN
-
Constructor Summary
Constructors Constructor Description XConstants()
-
Method Summary
Modifier and Type Method Description static java.lang.String
get_CCE_family(int id)
Get the CCE family for the given XConstants enum idstatic int
get_CCE_family(java.lang.String nm)
Get the CCE family for the given string/key
-
-
-
Field Detail
-
UNK_PATTERN
public static final int UNK_PATTERN
- See Also:
- Constant Field Values
-
DD_PATTERN
public static final int DD_PATTERN
- See Also:
- Constant Field Values
-
DM_PATTERN
public static final int DM_PATTERN
- See Also:
- Constant Field Values
-
DMS_PATTERN
public static final int DMS_PATTERN
- See Also:
- Constant Field Values
-
MGRS_PATTERN
public static final int MGRS_PATTERN
- See Also:
- Constant Field Values
-
UTM_PATTERN
public static final int UTM_PATTERN
- See Also:
- Constant Field Values
-
ALL_PATTERNS
public static final int ALL_PATTERNS
- See Also:
- Constant Field Values
-
UNFILTERED
public static final int UNFILTERED
- See Also:
- Constant Field Values
-
FILTERED_OUT
public static final int FILTERED_OUT
- See Also:
- Constant Field Values
-
FILTERED_IN
public static final int FILTERED_IN
- See Also:
- Constant Field Values
-
DMS_FILTERS_ON
public static final int DMS_FILTERS_ON
RUNTIME FLAGS: filter DMS coordinates- See Also:
- Constant Field Values
-
DD_FILTERS_ON
public static final int DD_FILTERS_ON
RUNTIME FLAGS: filter Decimal Degree coordinates -- primarily for bare floating point numbers w/out hemisphere or other symbols- See Also:
- Constant Field Values
-
MGRS_FILTERS_ON
public static final int MGRS_FILTERS_ON
RUNTIME FLAGS: filter MGRS coordinates -- date patterns and NUM PER NUM patterns e.g., the ratio "4 per 4000" is not MGRS- See Also:
- Constant Field Values
-
CONTEXT_FILTERS_ON
public static final int CONTEXT_FILTERS_ON
RUNTIME FLAGS: filter out coordinate matches that appear embedded in other text, e.g., ABC45.44,77.1W- See Also:
- Constant Field Values
-
FLAG_ALL_FILTERS
public static final int FLAG_ALL_FILTERS
RUNTIME FLAGS: filter all coordinate patterns that have filters- See Also:
- Constant Field Values
-
FLAG_EXTRACT_CONTEXT
public static final int FLAG_EXTRACT_CONTEXT
RUNTIME FLAGS: extract context or not- See Also:
- Constant Field Values
-
familyInt
public static final java.util.Map<java.lang.String,java.lang.Integer> familyInt
-
familyLabel
public static final java.util.Map<java.lang.Integer,java.lang.String> familyLabel
-
-
Method Detail
-
get_CCE_family
public static int get_CCE_family(java.lang.String nm)
Get the CCE family for the given string/key- Parameters:
nm
-- Returns:
-
get_CCE_family
public static java.lang.String get_CCE_family(int id)
Get the CCE family for the given XConstants enum id- Parameters:
id
-- Returns:
-
-