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
Deprecated. This class will move in a org.geotools.referencing.factory.web
package in Geotools 2.5, in order to put together other web-related factories.
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 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.
- Since:
- 2.4
- Author:
- Martin Desruisseaux
- Module:
modules/library/referencing (gt-referencing.jar)
Field Summary |
static String |
BASE_URL
Deprecated. 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, getAuthorityCodes, getAuthorityFactory, getBackingStoreDescription, getCoordinateOperationAuthorityFactory, getCRSAuthorityFactory, getCSAuthorityFactory, getDatumAuthorityFactory, getDescriptionText, getIdentifiedObjectFinder, getVendor, isAvailable |
BASE_URL
public static final String BASE_URL
- Deprecated.
- The base URL, which is "http://www.opengis.net/gml/srs/".
- See Also:
- Constant Field Values
HTTP_AuthorityFactory
public HTTP_AuthorityFactory()
- Deprecated.
- Creates a default wrapper.
HTTP_AuthorityFactory
public HTTP_AuthorityFactory(Hints userHints)
- Deprecated.
- 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)
- Deprecated.
- Creates a wrapper around the specified factory. The supplied factory is given unchanged
to the super class constructor.
getAuthority
public Citation getAuthority()
- Deprecated.
- Returns the authority, which contains the
"http://www.opengis.net"
identifier.
- Specified by:
getAuthority
in interface AuthorityFactory
- Overrides:
getAuthority
in class AuthorityFactoryAdapter
toBackingFactoryCode
protected String toBackingFactoryCode(String code)
throws FactoryException
- Deprecated.
- 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-2009 Geotools. All Rights Reserved.