org.geotools.referencing.factory.web
package in a future Geotools version, in order to put together other web-related
factories defined outside the WMS specification. Don't use this class directly. You should
not need to anyway - use ReferencingFactoryFinder
instead,
which will continue to work no matter where this class is located.public class WebCRSFactory extends DirectAuthorityFactory implements CRSAuthorityFactory
CRS
space.factories
LOGGER
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
WebCRSFactory()
Deprecated.
Constructs a default factory for the
CRS authority. |
WebCRSFactory(Hints hints)
Deprecated.
Constructs a factory for the
CRS authority using the specified hints. |
Modifier and Type | Method and Description |
---|---|
CoordinateReferenceSystem |
createCoordinateReferenceSystem(String code)
Deprecated.
Creates a coordinate reference system from the specified code.
|
IdentifiedObject |
createObject(String code)
Deprecated.
Creates an object from the specified code.
|
Citation |
getAuthority()
Deprecated.
Returns the authority for this factory, which is
CRS . |
Set |
getAuthorityCodes(Class type)
Deprecated.
Provides a complete set of the known codes provided by this authority.
|
InternationalString |
getDescriptionText(String code)
Deprecated.
Returns the CRS name for the given code.
|
getImplementationHints
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getBackingStoreDescription, getIdentifiedObjectFinder, noSuchAuthorityCode, trimAuthority
ensureNonNull, getVendor
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
createCompoundCRS, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
public WebCRSFactory()
CRS
authority.public WebCRSFactory(Hints hints)
CRS
authority using the specified hints.public Citation getAuthority()
CRS
.getAuthority
in interface AuthorityFactory
getAuthority
in class AbstractAuthorityFactory
public Set getAuthorityCodes(Class type) throws FactoryException
"84"
, "27"
, etc. The
authority name ("CRS"
) is not included. This is consistent with the codes returned by
the EPSG factory and avoid duplication, since the authority is the same for every codes
returned by this factory. It also make it easier for clients to prepend whatever authority
name they wish, as for example in the all authorities
factory.getAuthorityCodes
in interface AuthorityFactory
type
- The spatial reference objects type.FactoryException
- if access to the underlying database failed.public InternationalString getDescriptionText(String code) throws FactoryException
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 IdentifiedObject createObject(String code) throws FactoryException
createCoordinateReferenceSystem(code)
.createObject
in interface AuthorityFactory
createObject
in class AbstractAuthorityFactory
code
- Value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractAuthorityFactory.createCoordinateReferenceSystem(java.lang.String)
,
AbstractAuthorityFactory.createDatum(java.lang.String)
,
AbstractAuthorityFactory.createEllipsoid(java.lang.String)
,
AbstractAuthorityFactory.createUnit(java.lang.String)
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException
createCoordinateReferenceSystem
in interface CRSAuthorityFactory
createCoordinateReferenceSystem
in class AbstractAuthorityFactory
code
- Value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractAuthorityFactory.createGeographicCRS(java.lang.String)
,
AbstractAuthorityFactory.createProjectedCRS(java.lang.String)
,
AbstractAuthorityFactory.createVerticalCRS(java.lang.String)
,
AbstractAuthorityFactory.createTemporalCRS(java.lang.String)
,
AbstractAuthorityFactory.createCompoundCRS(java.lang.String)
Copyright © 1996–2019 Geotools. All rights reserved.