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

org.geolatte.geom.crs.VerticalCoordinateReferenceSystem 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 org.geolatte.geom.V;

/**
 *
 * Created by Karel Maesen, Geovise BVBA on 29/11/14.
 */
public class VerticalCoordinateReferenceSystem extends SingleCoordinateReferenceSystem  implements OneDimensionCoordinateReferenceSystem {

    private final VerticalDatum datum;

    /**
     * Constructs an instance.
     *
     * @param crsId the authority and authority c
     * @param name
     */
    public VerticalCoordinateReferenceSystem(CrsId crsId, String name, VerticalDatum datum, VerticalStraightLineAxis axis) {
        super(crsId, name, new OneDimensionCoordinateSystem(axis, V.class));
        this.datum = datum;
    }

    public VerticalDatum getDatum() {
        return datum;
    }

    public VerticalStraightLineAxis getVerticalAxis() {
        return (VerticalStraightLineAxis)getCoordinateSystem().getAxis(0);
    }

    public LinearUnit getUnit() {
        return getVerticalAxis().getUnit();
    }

    @Override
    public CoordinateSystemAxis getStraightLineAxis() {
        return getVerticalAxis();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy