org.geolatte.geom.crs.OneDimensionCoordinateSystem Maven / Gradle / Ivy
Show all versions of geolatte-geom Show documentation
package org.geolatte.geom.crs;
import org.geolatte.geom.Position;
/**
*
* Created by Karel Maesen, Geovise BVBA on 29/11/14.
*/
public class OneDimensionCoordinateSystem extends CoordinateSystem
{
private final Class
posType;
public OneDimensionCoordinateSystem(StraightLineAxis axis, Class
posType){
super(axis);
this.posType = posType;
}
/**
* Returns the single axis in the coordinate system.
* @return
*/
public CoordinateSystemAxis getAxis() {
return getAxis(0);
}
@Override
public Class
getPositionClass() {
return posType;
}
@Override
public CoordinateSystem> merge(OneDimensionCoordinateSystem> coordinateSystem) {
throw new UnsupportedOperationException();
}
@Override
public CoordinateSystem> extend(CoordinateSystemAxis axis) {
throw new UnsupportedOperationException();
}
@Override
public boolean hasZ() {
return getAxis().getNormalOrder() == 2;
}
@Override
public boolean hasM() {
return getAxis().getNormalOrder() == 3;
}
}