E
- public class CrsFactory<E> extends Object implements ICRSFactory
FORMAT_PROJ4, FORMAT_WKT, FORMAT_WKT_ESRI
Constructor and Description |
---|
CrsFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
doesRigurousTransformations() |
String |
export(String format,
IProjection proj) |
IProjection |
get(String name)
Devuelve una proyeccion a partir de una cadena.
|
IProjection |
get(String format,
String value)
Devuelve una proyección a partir de una cadena en uno de los formatos admitidos.
|
ICrs |
getCRS(int epsg_code,
String code) |
ICrs |
getCRS(int epsg_code,
String code,
String params) |
ICrs |
getCRS(String code)
Obtiene un CRS a partir de su código (p.e.
|
ICrs |
getCRS(String code,
String theSourceParams,
String theTargetParams) |
static File |
getDataBaseFolder() |
static File |
getEpsgDatabaseFile() |
static File |
getProjLibFolder() |
int |
identifyEPSG(SpatialReference sr,
boolean bProj4) |
int |
identifyESRI(SpatialReference sr) |
static void |
initializeDatabase() |
static void |
initializeDatabaseInbackground() |
static boolean |
isEnableMemoryCacheOfCRS() |
String |
normalizeEPSG(String sr_name) |
String |
normalizeESRI(String sr_name) |
static void |
setDataBaseFolder(File folder) |
static void |
setEnableMemoryCacheOfCRS(boolean enableMemoryCache) |
static void |
setEpsgDatabaseFile(File databaseFile) |
static void |
setProjLibFolder(File folder) |
public ICrs getCRS(String code) throws CrsException
code
- CrsException
public ICrs getCRS(String code, String theSourceParams, String theTargetParams) throws CrsException
CrsException
public ICrs getCRS(int epsg_code, String code) throws CrsException
epsg_code
- code
- CrsException
public ICrs getCRS(int epsg_code, String code, String params) throws CrsException
epsg_code
- code
- params
- CrsException
public IProjection get(String name)
ICRSFactory
get
in interface ICRSFactory
name
- abreviatura de la proyecccion (i.e. EPSG:23030)public boolean doesRigurousTransformations()
doesRigurousTransformations
in interface ICRSFactory
public static File getDataBaseFolder()
public static void setDataBaseFolder(File folder)
public static File getProjLibFolder()
public static void setProjLibFolder(File folder)
public static void setEnableMemoryCacheOfCRS(boolean enableMemoryCache)
public static boolean isEnableMemoryCacheOfCRS()
public static File getEpsgDatabaseFile()
public static void setEpsgDatabaseFile(File databaseFile)
public static void initializeDatabase()
public static void initializeDatabaseInbackground()
public IProjection get(String format, String value)
ICRSFactory
get
in interface ICRSFactory
public int identifyEPSG(SpatialReference sr, boolean bProj4) throws SQLException
SQLException
public int identifyESRI(SpatialReference sr) throws SQLException
SQLException
public String export(String format, IProjection proj)