public class ProjectionRetriever extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROJECTIONS_PROPERTY_FILE_PREFIX
Projections property file name prefix
|
static String |
PROJECTIONS_PROPERTY_FILE_SUFFIX
Projections property file name suffix
|
| Constructor and Description |
|---|
ProjectionRetriever() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clear the properties for all authorities
|
static void |
clear(String authority)
Clear the properties for the authority
|
static void |
clear(String authority,
long code)
Clear the property for the authority code
|
static void |
clear(String authority,
String code)
Clear the property for the authority code
|
static Properties |
getOrCreateProjections(String authority)
Get or create the projection properties
|
static String |
getProjection(long epsg)
Get the proj4 projection string for the EPSG coordinate code
|
static String |
getProjection(String authority,
long code)
Get the proj4 projection string for the authority coordinate code
|
static String |
getProjection(String authority,
String code)
Get the proj4 projection string for the authority coordinate code
|
static Properties |
getProjections(String authority)
Get the projection properties for the authority
|
static String |
propertyFileName(String authority)
Get the property file name for the authority
Resulting File Name Format: "projections"
.lower_case_authority."properties"
|
static void |
setProjection(String authority,
long code,
String projection)
Set the projection for the authority and code, creating the authority if
needed
|
static void |
setProjection(String authority,
String code,
String projection)
Set the projection for the authority and code, creating the authority if
needed
|
static void |
setProjections(String authority,
File propertiesFile)
Set the projections for the authority with the properties file
|
static void |
setProjections(String authority,
InputStream propertiesStream)
Set the projections for the authority with the properties input stream
|
static void |
setProjections(String authority,
Properties authorityProperties)
Set the authority projections as the provided properties
|
public static final String PROJECTIONS_PROPERTY_FILE_PREFIX
public static final String PROJECTIONS_PROPERTY_FILE_SUFFIX
public static String getProjection(long epsg)
epsg - epsg codepublic static String getProjection(String authority, long code)
authority - coordinate authoritycode - coordinate codepublic static String getProjection(String authority, String code)
authority - coordinate authoritycode - coordinate codepublic static Properties getOrCreateProjections(String authority)
authority - coordinate authoritypublic static Properties getProjections(String authority)
authority - coordinate authoritypublic static void clear()
public static void clear(String authority)
authority - coordinate authoritypublic static void clear(String authority, long code)
authority - coordinate authoritycode - coordinate codepublic static void clear(String authority, String code)
authority - coordinate authoritycode - coordinate codepublic static String propertyFileName(String authority)
authority - coordinate authoritypublic static void setProjections(String authority, InputStream propertiesStream)
authority - coordinate authoritypropertiesStream - properties input streampublic static void setProjections(String authority, Properties authorityProperties)
authority - coordinate authorityauthorityProperties - authority projection propertiespublic static void setProjections(String authority, File propertiesFile) throws FileNotFoundException
authority - coordinate authoritypropertiesFile - properties fileFileNotFoundExceptionpublic static void setProjection(String authority, long code, String projection)
authority - coordinate authoritycode - coordinate codeprojection - proj4 projectionCopyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.