org.opengis.referencing.cs.CoordinateSystemAxis Maven / Gradle / Ivy
Show all versions of geoapi Show documentation
/*
* GeoAPI - Java interfaces for OGC/ISO standards
* http://www.geoapi.org
*
* Copyright (C) 2004-2011 Open Geospatial Consortium, Inc.
* All Rights Reserved. http://www.opengeospatial.org/ogc/legal
*
* Permission to use, copy, and modify this software and its documentation, with
* or without modification, for any purpose and without fee or royalty is hereby
* granted, provided that you include the following on ALL copies of the software
* and documentation or portions thereof, including modifications, that you make:
*
* 1. The full text of this NOTICE in a location viewable to users of the
* redistributed or derivative work.
* 2. Notice of any changes or modifications to the OGC files, including the
* date changes were made.
*
* THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
* NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
* THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
* PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
*
* COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
* CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
*
* The name and trademarks of copyright holders may NOT be used in advertising or
* publicity pertaining to the software without specific, written prior permission.
* Title to copyright in this software and any associated documentation will at all
* times remain with copyright holders.
*/
package org.opengis.referencing.cs;
import javax.measure.unit.Unit;
import org.opengis.referencing.IdentifiedObject;
import org.opengis.annotation.UML;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
/**
* Definition of a coordinate system axis.
* See axis name constraints.
*
* @author Martin Desruisseaux (IRD)
* @version 3.0
* @since 1.0
*
* @see CoordinateSystem
* @see Unit
*
* @navassoc 1 - - AxisDirection
* @navassoc 1 - - RangeMeaning
* @navassoc 1 - - Unit
*/
@UML(identifier="CS_CoordinateSystemAxis", specification=ISO_19111)
public interface CoordinateSystemAxis extends IdentifiedObject {
/**
* The abbreviation used for this coordinate system axes. This abbreviation is also
* used to identify the ordinates in coordinate tuple. Examples are "X"
* and "Y".
*
* @return The coordinate system axis abbreviation.
*/
@UML(identifier="axisAbbrev", obligation=MANDATORY, specification=ISO_19111)
String getAbbreviation();
/**
* Direction of this coordinate system axis. In the case of Cartesian projected
* coordinates, this is the direction of this coordinate system axis locally.
* Examples:
* {@linkplain AxisDirection#NORTH north} or {@linkplain AxisDirection#SOUTH south},
* {@linkplain AxisDirection#EAST east} or {@linkplain AxisDirection#WEST west},
* {@linkplain AxisDirection#UP up} or {@linkplain AxisDirection#DOWN down}.
*
* Within any set of coordinate system axes, only one of each pair of terms
* can be used. For earth-fixed coordinate reference systems, this direction is often
* approximate and intended to provide a human interpretable meaning to the axis. When a
* geodetic datum is used, the precise directions of the axes may therefore vary slightly
* from this approximate direction.
*
* Note that an {@link org.opengis.referencing.crs.EngineeringCRS} often requires
* specific descriptions of the directions of its coordinate system axes.
*
* @return The coordinate system axis direction.
*/
@UML(identifier="axisDirection", obligation=MANDATORY, specification=ISO_19111)
AxisDirection getDirection();
/**
* Returns the minimum value normally allowed for this axis, in the
* {@linkplain #getUnit unit of measure for the axis}. If there is no minimum value, then
* this method returns {@linkplain Double#NEGATIVE_INFINITY negative infinity}.
*
* @return The minimum value, or {@link Double#NEGATIVE_INFINITY} if none.
*/
@UML(identifier="minimumValue", obligation=OPTIONAL, specification=ISO_19111)
double getMinimumValue();
/**
* Returns the maximum value normally allowed for this axis, in the
* {@linkplain #getUnit unit of measure for the axis}. If there is no maximum value, then
* this method returns {@linkplain Double#POSITIVE_INFINITY positive infinity}.
*
* @return The maximum value, or {@link Double#POSITIVE_INFINITY} if none.
*/
@UML(identifier="maximumValue", obligation=OPTIONAL, specification=ISO_19111)
double getMaximumValue();
/**
* Returns the meaning of axis value range specified by the {@linkplain #getMinimumValue
* minimum} and {@linkplain #getMaximumValue maximum} values. This element shall be omitted
* when both minimum and maximum values are omitted. It may be included when minimum and/or
* maximum values are included. If this element is omitted when minimum or maximum values are
* included, the meaning is unspecified.
*
* @return The range meaning, or {@code null} in none.
*/
@UML(identifier="rangeMeaning", obligation=CONDITIONAL, specification=ISO_19111)
RangeMeaning getRangeMeaning();
/**
* The unit of measure used for this coordinate system axis. The value of a
* coordinate in a coordinate tuple shall be recorded using this unit of measure,
* whenever those coordinates use a coordinate reference system that uses a
* coordinate system that uses this axis.
*
* @return The coordinate system axis unit.
*/
@UML(identifier="axisUnitID", obligation=MANDATORY, specification=ISO_19111)
Unit> getUnit();
}