All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geolatte.geom.crs.CrsExtendedId Maven / Gradle / Ivy

Go to download

This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL specification.

The newest version!
package org.geolatte.geom.crs;

import java.util.Objects;

/**
 * Created by Karel Maesen, Geovise BVBA on 11/09/2018.
 */
public class CrsExtendedId extends CrsId {

    final private Unit verticalUnit;
    final private Unit measureUnit;

    /**
     * Creates an instance having the specified authority and code.
     *
     * 

If authority EPSG and 0 or -1 is passed for the code parameter, a value equal to CrsId.UNDEFINED is returned. * * param base base CrsId * @return a CrsId for the specified authority and code. */ CrsExtendedId(CrsId base, Unit verticalUnit, Unit measureUnit) { super(base.getAuthority(), base.getCode()); this.verticalUnit = verticalUnit; this.measureUnit = measureUnit; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; CrsExtendedId that = (CrsExtendedId) o; return Objects.equals(verticalUnit, that.verticalUnit) && Objects.equals(measureUnit, that.measureUnit); } @Override public int hashCode() { return Objects.hash(super.hashCode(), verticalUnit, measureUnit); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy