org.geolatte.geom.crs.LinearCoordinateReferenceSystem 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.M;
/**
* A 1-Dimensional Linear Coordinate Ssytem that consists of the points that lie on the axis of a linear
* feature, for example a pipeline or a road.
*
* Created by Karel Maesen, Geovise BVBA on 29/11/14.
*/
public class LinearCoordinateReferenceSystem extends SingleCoordinateReferenceSystem implements OneDimensionCoordinateReferenceSystem {
public LinearCoordinateReferenceSystem(String name, MeasureStraightLineAxis axis) {
super(CrsId.UNDEFINED, name, new OneDimensionCoordinateSystem(axis, M.class));
}
public MeasureStraightLineAxis getLinearAxis(){
return (MeasureStraightLineAxis)getCoordinateSystem().getAxis(0);
}
@Override
public CoordinateSystemAxis getStraightLineAxis() {
return getLinearAxis();
}
}