📄 directposition.java
字号:
/*$************************************************************************************************ ** ** $Id: DirectPosition.java,v 1.11.2.2 2004/05/18 11:20:28 desruisseaux Exp $ ** ** $Source: /cvsroot/geoapi/src/org/opengis/spatialschema/geometry/DirectPosition.java,v $ ** ** Copyright (C) 2003 Open GIS Consortium, Inc. All Rights Reserved. http://www.opengis.org/Legal/ ** *************************************************************************************************/package org.opengis.spatialschema.geometry;// OpenGIS direct dependenciesimport org.opengis.util.Cloneable;import org.opengis.referencing.crs.CoordinateReferenceSystem;/** * Holds the coordinates for a position within some coordinate reference system. Since * <code>DirectPosition</code>s, as data types, will often be included in larger objects * (such as {@linkplain org.opengis.spatialschema.geometry.Geometry geometries}) that have * references to {@link CoordinateReferenceSystem}, the {@link #getCoordinateReferenceSystem} * method may returns <code>null</code> if this particular <code>DirectPosition</code> is * included in a larger object with such a reference to a {@linkplain CoordinateReferenceSystem * coordinate reference system}. In this case, the cordinate reference system is implicitly * assumed to take on the value of the containing object's {@link CoordinateReferenceSystem}. * * @UML datatype DirectPosition * @author ISO/DIS 19107 * @author <A HREF="http://www.opengis.org">OpenGIS® consortium</A> * @version 2.0 */public interface DirectPosition extends Cloneable { /** * The length of coordinate sequence (the number of entries). * This may be less than or equal to the dimensionality of the * {@linkplain #getCoordinateReferenceSystem() coordinate reference system}. * * @return The dimensionality of this position. * @UML mandatory dimension */ public int getDimension(); /** * Returns a sequence of numbers that hold the coordinate of this position in its * reference system. * * @return The coordinates * @UML mandatory coordinates */ public double[] getCoordinates(); /** * Returns the ordinate at the specified dimension. * * @param dimension The dimension in the range 0 to {@linkplain #getDimension dimension}-1. * @return The coordinate at the specified dimension. * @throws IndexOutOfBoundsException if the specified dimension is out of bounds. */ public double getOrdinate(int dimension) throws IndexOutOfBoundsException; /** * Sets the ordinate value along the specified dimension. * * @param dimension the dimension for the ordinate of interest. * @param value the ordinate value of interest. * @throws IndexOutOfBoundsException if the specified dimension is out of bounds. */ public void setOrdinate(int dimension, double value) throws IndexOutOfBoundsException; /** * The coordinate reference system in which the coordinate is given. * May be <code>null</code> if this particular <code>DirectPosition</code> is included * in a larger object with such a reference to a {@linkplain CoordinateReferenceSystem * coordinate reference system}. In this case, the cordinate reference system is implicitly * assumed to take on the value of the containing object's {@linkplain CoordinateReferenceSystem * coordinate reference system}. * * @return The coordinate reference system, or <code>null</code>. * @UML association coordinateReferenceSystem */ public CoordinateReferenceSystem getCoordinateReferenceSystem(); /** * Makes an exact copy of this coordinate. */// public Object clone();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -