public class EPSGCRSAuthorityFactory implements CRSAuthorityFactory(Code)
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.
version: $Id: EPSGCRSAuthorityFactory.java 27862 2007-11-12 19:51:19Z desruisseaux $ author: Jody Garnett author: Rueben Schulz
epsg The properties object for our properties file.
Constructor Summary
public
EPSGCRSAuthorityFactory() Loads from epsg.properties if the file exists, defaults to internal defintions
exported from postgis and cubeworks.
protected
EPSGCRSAuthorityFactory(CRSFactory factory) Loads from epsg.properties if the file exists, defaults to internal defintions
exported from postgis and cubeworks.
The properties object for our properties file. Keys are the EPSG
code for a coordinate reference system and the associated value is a
WKT string for the CRS.
Returns the set of authority codes of the given type. The type
argument specify the base class. For example if this factory is
an instance of CRSAuthorityFactory, then:
CoordinateReferenceSystem.class asks for all authority codes accepted
by createGeographicCRS, createProjectedCRS, createVerticalCRS, createTemporalCRS and their friends.
ProjectedCRS.class asks only for authority codes accepted by createProjectedCRS.
The following implementaiton filters the set of codes based on the
"PROJCS" and "GEOGCS" at the start of the WKT strings. It is assumed
that we only have GeographicCRS and ProjectedCRS's here.
Parameters: clazz - The spatial reference objects type (may be Object.class). The set of authority codes for spatial reference objects of the given type. If this factory doesn't contains any object of the given type, then this method returns an empty set. throws: FactoryException - if access to the underlying database failed.
getDefault
public static synchronized CRSAuthorityFactory getDefault()(Code)
Returns a default coordinate system factory backed by the EPSG property file.
The default factory. throws: SQLException - if the connection to the database can't be etablished.
getDescriptionText
public InternationalString getDescriptionText(String code) throws FactoryException(Code)