Examples of IdentifiedObject


Examples of org.opengis.referencing.IdentifiedObject

                HardCodedCitations.OGP, "EPSG", "4326", "8.2", null)));
        assertNull(properties.put(DOMAIN_OF_VALIDITY_KEY, new DefaultExtent("Netherlands offshore.",
                new DefaultGeographicBoundingBox(2.54, 6.40, 51.43, 55.77),
                new DefaultVerticalExtent(10, 1000, VerticalCRSMock.DEPTH),
                new DefaultTemporalExtent()))); // TODO: needs sis-temporal module for testing that one.
        final IdentifiedObject object = new AbstractReferenceSystem(properties);

        assertWktEquals(Convention.WKT1,
                // Closing quote conservatively omitted for WKT 1.
                "ReferenceSystem[“My “object.”, AUTHORITY[“EPSG”, “4326”]]",
                object);
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

         *         <previous text>,
         *           PROJCS["NAD27 / Idaho Central",
         *             GEOGCS[...etc...],
         *             ...etc...
         */
        final IdentifiedObject info = (object instanceof IdentifiedObject) ? (IdentifiedObject) object : null;
        String keyword = object.formatTo(this);
        if (keyword == null) {
            if (info != null) {
                setInvalidWKT(info, null);
                keyword = getName(info.getClass());
            } else {
                setInvalidWKT(object.getClass(), null);
                keyword = invalidElement;
            }
        } else if (toUpperCase) {
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

            }
            case BY_CONTRACT: {
                if (!implementsSameInterface(object)) {
                    return false;
                }
                final IdentifiedObject that = (IdentifiedObject) object;
                return deepEquals(getName(),        that.getName(),        mode) &&
                       deepEquals(getAlias(),       that.getAlias(),       mode) &&
                       deepEquals(getIdentifiers(), that.getIdentifiers(), mode) &&
                       deepEquals(getRemarks(),     that.getRemarks(),     mode);
            }
            case IGNORE_METADATA:
            case APPROXIMATIVE:
            case DEBUG: {
                return implementsSameInterface(object);
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

                final SimpleIdentifiedObject that = (SimpleIdentifiedObject) object;
                return Objects.equals(referenceSystemIdentifier, that.referenceSystemIdentifier);
            }
        } else {
            if (object instanceof IdentifiedObject) {
                final IdentifiedObject that = (IdentifiedObject) object;
                return Utilities.deepEquals(referenceSystemIdentifier, that.getName(), mode);
            }
        }
        return false;
    }
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

        finder.setFullScanAllowed(false);
        assertNull("Should not find the CRS without a scan.",
                   finder.find(DefaultGeographicCRS.WGS84));

        finder.setFullScanAllowed(true);
        IdentifiedObject find = finder.find(DefaultGeographicCRS.WGS84);
        assertNotNull("With scan allowed, should find the CRS.", find);
        assertTrue(CRS.equalsIgnoreMetadata(DefaultGeographicCRS.WGS84, find));
        assertEquals("Expected a right-handed CS.", +90, getAngle((CoordinateReferenceSystem) find), EPS);
        /*
         * Search a CRS using (latitude,longitude) axis order. The IdentifiedObjectFinder
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

        assertNull("Should not find without a full scan, because the WKT contains no identifier " +
                   "and the CRS name is ambiguous (more than one EPSG object have this name).",
                   finder.find(crs));

        finder.setFullScanAllowed(true);
        IdentifiedObject find = finder.find(crs);

        assertNotNull("With full scan allowed, the CRS should be found.", find);

        assertTrue("Should found an object equals (ignoring metadata) to the requested one.",CRS.equalsIgnoreMetadata(crs, find));
        ReferenceIdentifier found = AbstractIdentifiedObject.getIdentifier(find, factory.getAuthority());
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

        finder.setFullScanAllowed(false);
        assertNull("Should not find the CRS without a full scan.", finder.find(crs));

        finder.setFullScanAllowed(true);
        IdentifiedObject find = finder.find(crs);
        assertNotNull("With full scan allowed, the CRS should be found.", find);

        assertTrue("Should found an object equals (ignoring metadata) to the requested one.",
                   CRS.equalsIgnoreMetadata(crs, find));
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

        assertNull("Should not find without a full scan, because the WKT contains no identifier " +
                   "and the CRS name is ambiguous (more than one EPSG object have this name).",
                   finder.find(crs));

        finder.setFullScanAllowed(true);
        IdentifiedObject find = finder.find(crs);

        assertNotNull("With full scan allowed, the CRS should be found.", find);

        assertTrue("Should found an object equals (ignoring metadata) to the requested one.",CRS.equalsIgnoreMetadata(crs, find));
        String code = AbstractIdentifiedObject.getIdentifier(find, factory.getAuthority()).getCode();
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

        finder.setFullScanAllowed(false);
        assertNull("Should not find the CRS without a full scan.", finder.find(crs));

        finder.setFullScanAllowed(true);
        IdentifiedObject find = finder.find(crs);
        assertNotNull("With full scan allowed, the CRS should be found.", find);

        assertTrue("Should found an object equals (ignoring metadata) to the requested one.",
                   CRS.equalsIgnoreMetadata(crs, find));
        String code = AbstractIdentifiedObject.getIdentifier(find, factory.getAuthority()).getCode();
View Full Code Here

Examples of org.opengis.referencing.IdentifiedObject

        assertNull("Should not find without a full scan, because the WKT contains no identifier " +
                   "and the CRS name is ambiguous (more than one EPSG object have this name).",
                   finder.find(crs));

        finder.setFullScanAllowed(true);
        IdentifiedObject find = finder.find(crs);
       
        assertNotNull("With full scan allowed, the CRS should be found.", find);
       
        assertTrue("Should found an object equals (ignoring metadata) to the requested one.",CRS.equalsIgnoreMetadata(crs, find));
        ReferenceIdentifier found = AbstractIdentifiedObject.getIdentifier(find, factory.getAuthority());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.