org.geotools.referencing.factory
Class HTTP_AuthorityFactory
Object
AbstractFactory
ReferencingFactory
AbstractAuthorityFactory
AuthorityFactoryAdapter
HTTP_AuthorityFactory
- All Implemented Interfaces:
- RegisterableService, Factory, OptionalFactory, AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory
public class HTTP_AuthorityFactory
- extends AuthorityFactoryAdapter
- implements CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory
Wraps all factories in a "http://www.opengis.net/"
name space. An exemple of complete URL is "http://www.opengis.net/gml/srs/epsg.xml#4326".
Implementation note: this class requires some cooperation from the
ManyAuthoritiesFactory.getSeparator(java.lang.String) method, since the separator is not the usual
58 character.
- Author:
- Martin Desruisseaux
|
Field Summary |
static String |
BASE_URL
The base URL, which is "http://www.opengis.net/gml/srs/". |
| Methods inherited from class AuthorityFactoryAdapter |
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getAuthorityCodes, getAuthorityFactory, getBackingStoreDescription, getCoordinateOperationAuthorityFactory, getCRSAuthorityFactory, getCSAuthorityFactory, getDatumAuthorityFactory, getDescriptionText, getIdentifiedObjectFinder, getVendor, isAvailable |
BASE_URL
public static final String BASE_URL
- The base URL, which is "http://www.opengis.net/gml/srs/".
- See Also:
- Constant Field Values
HTTP_AuthorityFactory
public HTTP_AuthorityFactory()
- Creates a default wrapper.
HTTP_AuthorityFactory
public HTTP_AuthorityFactory(Hints userHints)
- Creates a wrapper using the specified hints. For strict compliance with OGC
definition of CRS defined by URL, the supplied hints should contains at least the
FORCE_LONGITUDE_FIRST_AXIS_ORDER hint
with value FALSE.
- Parameters:
userHints - The hints to be given to backing factories.
HTTP_AuthorityFactory
public HTTP_AuthorityFactory(AllAuthoritiesFactory factory)
- Creates a wrapper around the specified factory. The supplied factory is given unchanged
to the super class constructor.
getAuthority
public Citation getAuthority()
- Returns the authority, which contains the
"http://www.opengis.net" identifier.
- Specified by:
getAuthority in interface AuthorityFactory- Overrides:
getAuthority in class AuthorityFactoryAdapter
- Returns:
- The organization reponsible for definition of the database.
toBackingFactoryCode
protected String toBackingFactoryCode(String code)
throws FactoryException
- Removes the URL base ("http://www.opengis.net/gml/srs/") from the specified code
before to pass it to the wrapped factories.
- Overrides:
toBackingFactoryCode in class AuthorityFactoryAdapter
- Parameters:
code - The code given to this factory.
- Returns:
- The code to give to the underlying factories.
- Throws:
FactoryException - if the code can't be converted.
Copyright © 1996-2013 Geotools. All Rights Reserved.