/** * Returns an immutable copy of this geometry. The returned Geometry is guaranteed to have an * {@code isMutable()} value of false. Moreover, as per the contract of {@code isMutable()}, its * values will never change. Any attempts to change the values of the returned object will * result in a {@code UnmodifiableGeometryException}. * * <p>Implementors are free to return {@code this} if this object is already immutable. * * @return An immutable copy of this geometry. */ @Extension Geometry toImmutable();
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * Returns the point at the given row and column index. This is equivalent to <code> * {@linkplain #getRow getRow}(row).{@linkplain PointArray#get get}(column)</code>. * * @param row The row index from 0 inclusive to {@link #height} exclusive. * @param column The column index from 0 inclusive to {@link #width} exclusive. * @return The point at the given index. * @throws IndexOutOfBoundsException if an index is out of bounds. */ @Extension DirectPosition get(int row, int column) throws IndexOutOfBoundsException;
/** * Returns the number of columns in this matrix. * * @return The number of columns in this matrix. */ @Extension int getNumCol(); // Same signature than GMatrix, for straightforward implementation.
/** * Modifies the value at the specified row and column of this matrix. * * @param row The row number to be retrieved (zero indexed). * @param column The column number to be retrieved (zero indexed). * @param value The new matrix element value. */ @Extension void setElement(int row, int column, double value);
/** * Returns the Coordinate Reference System in which the coordinates are given. May be {@code * null} if this particular {@code PointArray} is included in a larger object with such a * reference to a coordinate reference system}. In this case, the cordinate reference system is * implicitly assumed to take on the value of the containing object's coordinate reference * system. * * @return The coordinate reference system, or {@code null}. * @see DirectPosition#getCoordinateReferenceSystem */ @Extension CoordinateReferenceSystem getCoordinateReferenceSystem();
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * Returns {@code this} since this object is already a local name. * * @since GeoAPI 2.1 */ /// @Override @Extension LocalName tip();
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * Returns the unit for {@linkplain #getDefaultValue default}, {@linkplain #getMinimumValue * minimum} and {@linkplain #getMaximumValue maximum} values. This attribute apply only if the * values is of numeric type (usually an instance of {@link Double}). * * @return The unit for numeric value, or {@code null} if it doesn't apply to the value type. */ @Extension Unit<?> getUnit(); }
/** * Accepts a visitor. Subclasses must implement with a method whose content is the following: * * <pre>return visitor.{@linkplain ExpressionVisitor#visit visit}(this, extraData);</pre> */ @Extension Object accept(ExpressionVisitor visitor, Object extraData); }
/** * Returns the coordinate value at the specified dimension. This method is equivalent to <code> * {@linkplain #getCoordinateValues()}[<var>i</var>]</code>. It is provided for efficienty. * * @param dimension The dimension for which to obtain the coordinate value. * @return The coordinate value at the given dimension. * @throws IndexOutOfBoundsException If the given index is negative or is equals or greater than * the {@linkplain #getDimension grid dimension}. */ @Extension int getCoordinateValue(int dimension) throws IndexOutOfBoundsException;
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * Returns the number of rows in this matrix. * * @return The number of rows in this matrix. */ @Extension int getNumRow(); // Same signature than GMatrix, for straightforward implementation.
/** * Returns {@code true} if this matrix is an identity matrix. * * @return {@code true} if this matrix is an identity matrix. */ @Extension boolean isIdentity();
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ @Extension Object accept(StyleVisitor visitor, Object extraData); }
/** * Creates a point at the specified location specified by coordinates. * * @throws MismatchedDimensionException If geometric objects given in argument don't have the * expected dimension. */ @Extension Point createPoint(double[] coordinates) throws MismatchedDimensionException;