org.geotools.referencing.factory
Class HTTP_AuthorityFactory
java.lang.Object
org.geotools.factory.AbstractFactory
org.geotools.referencing.factory.ReferencingFactory
org.geotools.referencing.factory.AbstractAuthorityFactory
org.geotools.referencing.factory.AuthorityFactoryAdapter
org.geotools.referencing.factory.HTTP_AuthorityFactory
- All Implemented Interfaces:
- javax.imageio.spi.RegisterableService, Factory, OptionalFactory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, org.opengis.referencing.operation.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 org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, org.opengis.referencing.operation.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
- Version:
- $Id: HTTP_AuthorityFactory.java 30641 2008-06-12 17:42:27Z acuster $
- Author:
- Martin Desruisseaux
Field Summary |
static java.lang.String |
BASE_URL
Deprecated. The base URL, which is "http://www.opengis.net/gml/srs/". |
Method Summary |
org.opengis.metadata.citation.Citation |
getAuthority()
Deprecated. Returns the authority, which contains the "http://www.opengis.net" identifier. |
protected java.lang.String |
toBackingFactoryCode(java.lang.String code)
Deprecated. Removes the URL base ("http://www.opengis.net/gml/srs/") from the specified code
before to pass it to the wrapped factories. |
Methods inherited from class org.geotools.referencing.factory.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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.crs.CRSAuthorityFactory |
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS |
Methods inherited from interface org.opengis.referencing.cs.CSAuthorityFactory |
createCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCS |
Methods inherited from interface org.opengis.referencing.datum.DatumAuthorityFactory |
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatum |
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperationAuthorityFactory |
createCoordinateOperation, createFromCoordinateReferenceSystemCodes |
Methods inherited from interface org.opengis.referencing.AuthorityFactory |
createObject, getAuthorityCodes, getDescriptionText |
Methods inherited from interface org.opengis.referencing.Factory |
getVendor |
BASE_URL
public static final java.lang.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 org.opengis.metadata.citation.Citation getAuthority()
- Deprecated.
- Returns the authority, which contains the
"http://www.opengis.net"
identifier.
- Specified by:
getAuthority
in interface org.opengis.referencing.AuthorityFactory
- Overrides:
getAuthority
in class AuthorityFactoryAdapter
toBackingFactoryCode
protected java.lang.String toBackingFactoryCode(java.lang.String code)
throws org.opengis.referencing.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:
org.opengis.referencing.FactoryException
- if the code can't be converted.
Copyright © 1996-2010 Geotools. All Rights Reserved.