Class OrderedAxisAuthorityFactory

    • Constructor Detail

      • OrderedAxisAuthorityFactory

        public OrderedAxisAuthorityFactory​(String authority,
                                           Hints userHints,
                                           AxisDirection... axisOrder)
                                    throws FactoryRegistryException,
                                           IllegalArgumentException
        Creates a factory which will reorder the axis of all objects created by the default authority factories. The factories are fetched using ReferencingFactoryFinder. This constructor accepts the following hints:

        Parameters:
        authority - The authority to wraps (example: "EPSG"). If null, then all authority factories must be explicitly specified in the set of hints.
        userHints - An optional set of hints, or null if none.
        axisOrder - An array of axis directions that determine the axis order wanted, or null for the default axis order.
        Throws:
        FactoryRegistryException - if at least one factory can not be obtained.
        IllegalArgumentException - If at least two axis directions are colinear.
        Since:
        2.3
      • OrderedAxisAuthorityFactory

        public OrderedAxisAuthorityFactory​(AbstractAuthorityFactory factory,
                                           Hints userHints,
                                           AxisDirection... axisOrder)
                                    throws IllegalArgumentException
        Creates a factory which will reorder the axis of all objects created by the supplied factory. This constructor accepts the following optional hints:

        Parameters:
        factory - The factory that produces objects using arbitrary axis order.
        userHints - An optional set of hints, or null if none.
        axisOrder - An array of axis directions that determine the axis order wanted, or null for the default axis order.
        Throws:
        IllegalArgumentException - If at least two axis directions are colinear.
        Since:
        2.3