public class EPSGCRSAuthorityFactory extends AbstractFactory implements CRSAuthorityFactory
Modifier and Type | Field and Description |
---|---|
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.
|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Modifier | Constructor and Description |
---|---|
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
public static final String AUTHORITY
public static final String AUTHORITY_PREFIX
protected static EPSGCRSAuthorityFactory DEFAULT
protected Properties epsg
protected CRSFactory crsFactory
public EPSGCRSAuthorityFactory()
protected EPSGCRSAuthorityFactory(CRSFactory factory)
protected EPSGCRSAuthorityFactory(CRSFactory factory, URL definition) throws FactoryException
FactoryException
protected void loadDefault() throws IOException
IOException
public 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 CRSAuthorityFactory
code
- 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
AuthorityFactory
Datum
, 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 AuthorityFactory
code
- 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 CRSAuthorityFactory
code
- 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 CRSAuthorityFactory
code
- 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 AuthorityFactory
clazz
- 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 AuthorityFactory
code
- 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 CRSAuthorityFactory
str
- 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 CRSAuthorityFactory
str
- 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 CRSAuthorityFactory
str
- 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 CRSAuthorityFactory
str
- 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 CRSAuthorityFactory
str
- 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 CRSAuthorityFactory
str
- 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 CRSAuthorityFactory
str
- 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)
Copyright © 1996–2019 Geotools. All rights reserved.