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

org.geolatte.geom.M 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;

/**
 * Created by Karel Maesen, Geovise BVBA on 29/11/14.
 */
public class M extends Position {

    /**
     * Constructs an empty instance
     */
    public M() {
        super();
    }

    /**
     * Constructs an instance with the specified longitude and latitude
     *
     * @param value the vertical value
     */
    public M(double value) {
        super(value);
    }

    /**
     * Constructs an instance from the specified coordinates.
     *
     * It expects first the longitude, then the latitude coordinate
     *
     * @param coords
     */
    protected M(double... coords) {
        super(coords);
    }

    public double getValue() {
        return getCoordinate(0);
    }

    @Override
    public int getCoordinateDimension() {
        return 1;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy