Class ManyAuthoritiesFactory

All Implemented Interfaces:
AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, Factory, CoordinateOperationAuthorityFactory, Factory, OptionalFactory, RegistrableFactory
Direct Known Subclasses:
AllAuthoritiesFactory

An authority factory that delegates the object creation to an other factory determined from the authority name in the code. This factory requires that every codes given to a createFoo method are prefixed by the authority name, for example "EPSG:4326". This is different from using a factory from a known authority, in which case the authority part was optional (for example when using the EPSG authority factory, the "EPSG:" part in "EPSG:4326" is optional).

This class parses the authority name and delegates the work the corresponding factory. For example if any createFoo(...) method in this class is invoked with a code starting by "EPSG:", then this class delegates the object creation to one of the authority factories provided to the constructor.

This class is not registered in ReferencingFactoryFinder, because it is not a real authority factory. There is not a single authority name associated to this factory, but rather a set of names determined from all available authority factories.

Since:
2.4
Author:
Martin Desruisseaux (IRD)