|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractFactory
EPSGCRSAuthorityFactory
public class EPSGCRSAuthorityFactory
Default implementation for a coordinate reference system authority factory backed by the EPSG property file. This gives most of the benifits of using the EPSG database backed authority factory, in a nice, portable property file.
| Field Summary | |
|---|---|
static String |
AUTHORITY
Deprecated. |
static String |
AUTHORITY_PREFIX
Deprecated. |
protected CRSFactory |
crsFactory
Deprecated. |
protected static EPSGCRSAuthorityFactory |
DEFAULT
Deprecated. The default coordinate system authority factory. |
protected Properties |
epsg
Deprecated. The properties object for our properties file. |
| Fields inherited from class AbstractFactory |
|---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
| Constructor Summary | |
|---|---|
|
EPSGCRSAuthorityFactory()
Deprecated. Loads from epsg.properties if the file exists, defaults to internal defintions exported from postgis and cubeworks. |
protected |
EPSGCRSAuthorityFactory(CRSFactory factory)
Deprecated. Loads from epsg.properties if the file exists, defaults to internal defintions exported from postgis and cubeworks. |
protected |
EPSGCRSAuthorityFactory(CRSFactory factory,
URL definition)
Deprecated. |
| Method Summary | |
|---|---|
CompoundCRS |
createCompoundCRS(String str)
Deprecated. Creates a 3D coordinate reference system from a code. |
CoordinateReferenceSystem |
createCoordinateReferenceSystem(String code)
Deprecated. Returns an arbitrary coordinate reference system from a code. |
DerivedCRS |
createDerivedCRS(String str)
Deprecated. Creates a derived coordinate reference system from a code. |
EngineeringCRS |
createEngineeringCRS(String str)
Deprecated. Create a engineering coordinate reference system from a code. |
GeocentricCRS |
createGeocentricCRS(String str)
Deprecated. Returns a geocentric coordinate reference system from a code. |
GeographicCRS |
createGeographicCRS(String code)
Deprecated. Returns a geographic coordinate reference system from a code. |
ImageCRS |
createImageCRS(String str)
Deprecated. Create a image coordinate reference system from a code. |
IdentifiedObject |
createObject(String code)
Deprecated. Returns an arbitrary object from a code. |
ProjectedCRS |
createProjectedCRS(String code)
Deprecated. Returns a projected coordinate reference system from a code. |
TemporalCRS |
createTemporalCRS(String str)
Deprecated. Create a temporal coordinate reference system from a code. |
VerticalCRS |
createVerticalCRS(String str)
Deprecated. Create a vertical coordinate reference system from a code. |
Citation |
getAuthority()
Deprecated. Returns the organization or party responsible for definition and maintenance of the database. |
Set |
getAuthorityCodes(Class clazz)
Deprecated. Returns the set of authority codes of the given type. |
static CRSAuthorityFactory |
getDefault()
Deprecated. Returns a default coordinate system factory backed by the EPSG property file. |
InternationalString |
getDescriptionText(String code)
Deprecated. Gets a description of the object corresponding to a code. |
ObjectFactory |
getObjectFactory()
Deprecated. |
Citation |
getVendor()
Deprecated. Returns the vendor responsible for creating this factory implementation. |
protected void |
loadDefault()
Deprecated. Loads from epsg.properties if the file exists, defaults to internal defintions exported from postgis and cubeworks. |
| Methods inherited from class AbstractFactory |
|---|
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String AUTHORITY
public static final String AUTHORITY_PREFIX
protected static EPSGCRSAuthorityFactory DEFAULT
protected Properties epsg
protected CRSFactory crsFactory
| Constructor Detail |
|---|
public EPSGCRSAuthorityFactory()
protected EPSGCRSAuthorityFactory(CRSFactory factory)
protected EPSGCRSAuthorityFactory(CRSFactory factory,
URL definition)
throws FactoryException
FactoryException| Method Detail |
|---|
protected void loadDefault()
throws IOException
IOExceptionpublic static CRSAuthorityFactory getDefault()
SQLException - if the connection to the database can't be etablished.
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code)
throws FactoryException
CRSAuthorityFactory createGeographicCRS(code)
instead of createCoordinateReferenceSystem(code) if the caller
know he is asking for a geographic coordinate reference system).
createCoordinateReferenceSystem in interface CRSAuthorityFactorycode - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.CRSAuthorityFactory.createGeographicCRS(java.lang.String),
CRSAuthorityFactory.createProjectedCRS(java.lang.String),
CRSAuthorityFactory.createVerticalCRS(java.lang.String),
CRSAuthorityFactory.createTemporalCRS(java.lang.String),
CRSAuthorityFactory.createCompoundCRS(java.lang.String)
public IdentifiedObject createObject(String code)
throws FactoryException
AuthorityFactoryDatum, CoordinateSystem,
ReferenceSystem or CoordinateOperation.
If the type of the object is know at compile time, it is recommended to invoke the
most precise method instead of this one (for example
createCoordinateReferenceSystem(code) instead of createObject(code)
if the caller know he is asking for a coordinate
reference system).
createObject in interface AuthorityFactorycode - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.DatumAuthorityFactory.createDatum(java.lang.String),
CRSAuthorityFactory.createCoordinateReferenceSystem(java.lang.String)
public ProjectedCRS createProjectedCRS(String code)
throws FactoryException
CRSAuthorityFactory
createProjectedCRS in interface CRSAuthorityFactorycode - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.DatumAuthorityFactory.createGeodeticDatum(java.lang.String)
public GeographicCRS createGeographicCRS(String code)
throws FactoryException
CRSAuthorityFactory
createGeographicCRS in interface CRSAuthorityFactorycode - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.DatumAuthorityFactory.createGeodeticDatum(java.lang.String)public Citation getAuthority()
AuthorityFactory
getAuthority in interface AuthorityFactory
public Set getAuthorityCodes(Class clazz)
throws FactoryException
getAuthorityCodes in interface AuthorityFactoryclazz - The spatial reference objects type (may be Object.class).
FactoryException - if access to the underlying database failed.public ObjectFactory getObjectFactory()
public Citation getVendor()
Factory
public InternationalString getDescriptionText(String code)
throws FactoryException
AuthorityFactory
getDescriptionText in interface AuthorityFactorycode - Value allocated by authority.
null if the object
corresponding to the specified code has no description.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the query failed for some other reason.
public CompoundCRS createCompoundCRS(String str)
throws FactoryException
CRSAuthorityFactory
createCompoundCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.
public DerivedCRS createDerivedCRS(String str)
throws FactoryException
CRSAuthorityFactory
createDerivedCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.
public EngineeringCRS createEngineeringCRS(String str)
throws FactoryException
CRSAuthorityFactory
createEngineeringCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.
public GeocentricCRS createGeocentricCRS(String str)
throws FactoryException
CRSAuthorityFactory
createGeocentricCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed.DatumAuthorityFactory.createGeodeticDatum(java.lang.String)
public ImageCRS createImageCRS(String str)
throws FactoryException
CRSAuthorityFactory
createImageCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.
public TemporalCRS createTemporalCRS(String str)
throws FactoryException
CRSAuthorityFactory
createTemporalCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.DatumAuthorityFactory.createTemporalDatum(java.lang.String)
public VerticalCRS createVerticalCRS(String str)
throws FactoryException
CRSAuthorityFactory
createVerticalCRS in interface CRSAuthorityFactorystr - Value allocated by authority.
NoSuchAuthorityCodeException - if the specified code was not found.
FactoryException - if the object creation failed for some other reason.DatumAuthorityFactory.createVerticalDatum(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||