public class NITFHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAMERA_FLASH |
static java.lang.String |
CAMERA_FOCAL |
static java.lang.String |
CAMERA_MAKE |
static java.lang.String |
CAMERA_MODEL |
static java.lang.String |
COORDINATE_STRING |
static java.lang.String |
COORDINATE_SYSTEM |
static java.lang.String |
DATE_TIME |
static java.lang.String |
FILE_TITLE |
static java.lang.String |
GPS_ALTITUDE |
static java.lang.String |
GPS_DATETIME |
static java.lang.String |
GPS_DIRECTION |
static java.lang.String |
GPS_LOCATION |
static java.lang.String |
HORIZONTAL_FOV |
static int |
TRE_KEY_LEN |
Constructor and Description |
---|
NITFHelper() |
Modifier and Type | Method and Description |
---|---|
static GeoPoint |
getCenterLocation(Dataset nitf) |
static GeoPoint |
getCenterLocation(java.lang.String repStr,
java.lang.String coordStr)
Get center point of NITF image coordinates
|
static java.lang.String |
getDateTime(Dataset nitf)
Get NITF date time as a colon/space separated string
|
static TiffOutputSet |
getExifOutput(Dataset nitf) |
static TiffOutputSet |
getExifOutput(Dataset nitf,
int outWidth,
int outHeight)
Convert NITF metadata to EXIF output set
|
static boolean |
getExtra(Dataset nitf,
java.lang.String key,
boolean defValue) |
static double |
getExtra(Dataset nitf,
java.lang.String key,
double defValue) |
static float |
getExtra(Dataset nitf,
java.lang.String key,
float defValue) |
static int |
getExtra(Dataset nitf,
java.lang.String key,
int defValue) |
static java.lang.String |
getExtra(Dataset nitf,
java.lang.String key,
java.lang.String defValue)
Retrieve string data from user-defined metadata
|
static java.lang.String |
getTitle(Dataset nitf)
Retrieve the file title for this dataset
|
static GeoPoint |
readCoordinate(java.lang.String repStr,
java.lang.String coord) |
static void |
setTitle(Dataset nitf,
java.lang.String title)
Set the file title for this dataset
|
public static final int TRE_KEY_LEN
public static final java.lang.String DATE_TIME
public static final java.lang.String FILE_TITLE
public static final java.lang.String COORDINATE_SYSTEM
public static final java.lang.String COORDINATE_STRING
public static final java.lang.String GPS_DATETIME
public static final java.lang.String GPS_LOCATION
public static final java.lang.String GPS_DIRECTION
public static final java.lang.String GPS_ALTITUDE
public static final java.lang.String HORIZONTAL_FOV
public static final java.lang.String CAMERA_MAKE
public static final java.lang.String CAMERA_MODEL
public static final java.lang.String CAMERA_FOCAL
public static final java.lang.String CAMERA_FLASH
public static java.lang.String getExtra(Dataset nitf, java.lang.String key, java.lang.String defValue)
nitf
- NITF datasetkey
- The field keypublic static int getExtra(Dataset nitf, java.lang.String key, int defValue)
public static float getExtra(Dataset nitf, java.lang.String key, float defValue)
public static double getExtra(Dataset nitf, java.lang.String key, double defValue)
public static boolean getExtra(Dataset nitf, java.lang.String key, boolean defValue)
public static java.lang.String getDateTime(Dataset nitf)
nitf
- NITF datasetpublic static java.lang.String getTitle(Dataset nitf)
nitf
- NITF datasetpublic static void setTitle(Dataset nitf, java.lang.String title)
nitf
- NITF datasettitle
- File titlepublic static GeoPoint getCenterLocation(java.lang.String repStr, java.lang.String coordStr)
repStr
- Coordinate representation ("U" = MGRS, "G"/"C" = DMS, "D" = DD)coordStr
- 4-point Coordinate string (see NITF 2.0 spec for formatting)public static GeoPoint getCenterLocation(Dataset nitf)
public static TiffOutputSet getExifOutput(Dataset nitf, int outWidth, int outHeight)
nitf
- NITF datasetoutWidth
- Output width (optional)outHeight
- Output height (optional)public static TiffOutputSet getExifOutput(Dataset nitf)
public static GeoPoint readCoordinate(java.lang.String repStr, java.lang.String coord)