Package org.opengis.referencing

Examples of org.opengis.referencing.AuthorityFactory


     */
    @Override
    final <T extends AuthorityFactory> T fromFactoryRegistry(final String authority, final Class<T> type)
            throws FactoryRegistryException
    {
        final AuthorityFactory f;
        if (CRSAuthorityFactory.class.equals(type)) {
            f = ReferencingFactoryFinder.getCRSAuthorityFactory(authority, getHints());
        } else if (CSAuthorityFactory.class.equals(type)) {
            f = ReferencingFactoryFinder.getCSAuthorityFactory(authority, getHints());
        } else if (DatumAuthorityFactory.class.equals(type)) {
View Full Code Here


     * Make sure that a singleton instance is registered.
     */
    @Test
    public void testRegistration() {
        String authority = "URN:OGC:DEF";
        final AuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory(authority, null);
        assertSame(factory, ReferencingFactoryFinder.getCRSAuthorityFactory  (authority, null));
        assertSame(factory, ReferencingFactoryFinder.getCSAuthorityFactory   (authority, null));
        assertSame(factory, ReferencingFactoryFinder.getDatumAuthorityFactory(authority, null));
        /*
         * Tests the X-OGC namespace, which should be synonymous.
View Full Code Here

     * Make sure that a singleton instance is registered.
     */
    @Test
    public void testRegistration() {
        String authority = "http://www.opengis.net/def";
        AuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory(authority, null);
        assertSame(factory, ReferencingFactoryFinder.getCRSAuthorityFactory(authority, null));
        assertSame(factory, ReferencingFactoryFinder.getCSAuthorityFactory(authority, null));
        assertSame(factory, ReferencingFactoryFinder.getDatumAuthorityFactory(authority, null));
    }
View Full Code Here

TOP

Related Classes of org.opengis.referencing.AuthorityFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.