org.geolatte.geom.crs.VerticalCoordinateReferenceSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
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();
}
}