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

org.geolatte.geom.crs.OneDimensionCoordinateSystem 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.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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy