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

org.geolatte.geom.crs.LinearCoordinateReferenceSystem 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.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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy