Package org.opengis.referencing

Examples of org.opengis.referencing.ReferenceSystem


     * @return The metadata to be marshalled.
     */
    @XmlElementRef
    public ReferenceSystemMetadata getElement() {
        if (skip()) return null;
        final ReferenceSystem metadata = this.metadata;
        if (metadata instanceof ReferenceSystemMetadata) {
            return (ReferenceSystemMetadata) metadata;
        } else {
            return new ReferenceSystemMetadata(metadata);
        }
View Full Code Here


    /**
     * Tests {@link FrenchProfile#toAFNOR(ReferenceSystem, boolean)}.
     */
    @Test
    public void testReferenceSystemToAFNOR() {
        ReferenceSystem std, fra;

        std = new ReferenceSystemMetadata(new ImmutableIdentifier(null, "EPSG", "4326"));
        fra = FrenchProfile.toAFNOR(std, false);
        assertInstanceOf("Expected AFNOR instance.", DirectReferenceSystem.class, fra);
        assertSame("Already an AFNOR instance.", fra, FrenchProfile.toAFNOR(fra));
View Full Code Here

                final AbstractReferenceSystem that = (AbstractReferenceSystem) object;
                return Objects.equals(domainOfValidity, that.domainOfValidity) &&
                       Objects.equals(scope,            that.scope);
            }
            case BY_CONTRACT: {
                final ReferenceSystem that = (ReferenceSystem) object;
                return deepEquals(getDomainOfValidity(), that.getDomainOfValidity(), mode) &&
                       deepEquals(getScope(),            that.getScope(), mode);
            }
            default: {
                // Domain of validity and scope are metadata, so they can be ignored.
                return true;
            }
View Full Code Here

     *
     * @return The metadata to be marshalled.
     */
    @XmlElementRef
    public ReferenceSystemMetadata getElement() {
        final ReferenceSystem metadata = this.metadata;
        if (metadata == null) {
            return null;
        } else if (metadata instanceof ReferenceSystemMetadata) {
            return (ReferenceSystemMetadata) metadata;
        } else {
View Full Code Here

TOP

Related Classes of org.opengis.referencing.ReferenceSystem

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.