# Uses of Class
org.opengis.geometry.MismatchedDimensionException

Packages that use MismatchedDimensionException
Package
Description
org.apache.sis.geometry
Basic geometric objects (envelopes and direct positions).
org.apache.sis.referencing.crs
Coordinate Reference System (CRS) definitions as coordinate systems related to the earth through datum.
org.apache.sis.referencing.operation.builder
Helper classes for creating Math Transforms from a set of points.
org.apache.sis.referencing.operation.matrix
Matrix implementations for spatiotemporal referencing.
org.apache.sis.referencing.operation.transform
Conversions or transformations of multi-dimensional coordinate tuples.
org.apache.sis.util
Simple data objects and miscellaneous utilities.
org.opengis.referencing.operation
Coordinate operations (relationship between any two coordinate reference systems).

- ## Uses of MismatchedDimensionException in org.apache.sis.geometry

  Methods in org.apache.sis.geometry that throw MismatchedDimensionException
  Modifier and Type
  Method
  Description
  `void`
  GeneralEnvelope.`add(DirectPosition position)`
  Adds a point to this envelope.
  `void`
  GeneralEnvelope.`add(Envelope envelope)`
  Adds an envelope object to this envelope.
  `boolean`
  AbstractEnvelope.`contains(DirectPosition position)`
  Tests if a specified coordinate is inside the boundary of this envelope.
  `boolean`
  AbstractEnvelope.`contains(Envelope envelope)`
  Returns `true` if this envelope completely encloses the specified envelope.
  `boolean`
  AbstractEnvelope.`contains(Envelope envelope, boolean edgesInclusive)`
  Returns `true` if this envelope completely encloses the specified envelope.
  `void`
  GeneralEnvelope.`intersect(Envelope envelope)`
  Sets this envelope to the intersection of this envelope with the specified one.
  `boolean`
  AbstractEnvelope.`intersects(Envelope envelope)`
  Returns `true` if this envelope intersects the specified envelope.
  `boolean`
  AbstractEnvelope.`intersects(Envelope envelope, boolean touch)`
  Returns `true` if this envelope intersects or (optionally) touches the specified envelope.
  `void`
  GeneralDirectPosition.`setCoordinateReferenceSystem(CoordinateReferenceSystem crs)`
  Sets the coordinate reference system in which the coordinates are given.
  `void`
  GeneralEnvelope.`setCoordinateReferenceSystem(CoordinateReferenceSystem crs)`
  Sets the coordinate reference system in which the coordinate are given.
  `void`
  GeneralDirectPosition.`setCoordinates(double... coordinates)`
  Sets the coordinate values in all dimensions.
  `void`
  GeneralEnvelope.`setEnvelope(Envelope envelope)`
  Sets this envelope to the same coordinate values as the specified envelope.
  `void`
  AbstractDirectPosition.`setLocation(DirectPosition position)`
  Sets this direct position to the given position.
  `void`
  DirectPosition1D.`setLocation(DirectPosition position)`
  Sets this coordinate to the specified direct position.
  `void`
  GeneralDirectPosition.`setLocation(DirectPosition position)`
  Sets this coordinate to the specified direct position.
  Constructors in org.apache.sis.geometry that throw MismatchedDimensionException
  Modifier
  Constructor
  Description
  ``
  `DirectPosition2D(DirectPosition position)`
  Constructs a position initialized to the same values as the specified point.
  ``
  `Envelope2D(DirectPosition lowerCorner, DirectPosition upperCorner)`
  Constructs a two-dimensional envelope defined by the specified coordinates.
  ``
  `Envelope2D(Envelope envelope)`
  Constructs a two-dimensional envelope defined by another `Envelope`.
  ``
  `Envelope2D(CoordinateReferenceSystem crs, double x, double y, double width, double height)`
  Constructs two-dimensional envelope defined by the specified coordinates.
  ``
  `Envelope2D(CoordinateReferenceSystem crs, Rectangle2D rect)`
  Constructs two-dimensional envelope defined by another `Rectangle2D`.
  ``
  `GeneralEnvelope(double[] lowerCorner, double[] upperCorner)`
  Constructs an envelope defined by two corners given as sequences of coordinate values.
  ``
  `GeneralEnvelope(DirectPosition lowerCorner, DirectPosition upperCorner)`
  Constructs an envelope defined by two corners given as direct positions.
  ``
  `ImmutableDirectPosition(CoordinateReferenceSystem crs, double... coordinates)`
  Constructs a position defined by a sequence of coordinate values.
  ``
  `ImmutableEnvelope(double[] lowerCorner, double[] upperCorner, CoordinateReferenceSystem crs)`
  Constructs an envelope defined by two corners given as sequences of coordinate values.
  ``
  `ImmutableEnvelope(DirectPosition lowerCorner, DirectPosition upperCorner)`
  Constructs an envelope defined by two corners given as direct positions.
  ``
  `ImmutableEnvelope(CoordinateReferenceSystem crs, CharSequence wkt)`
  Constructs a new envelope initialized to the values parsed from the given string in `BOX` or Well Known Text (WKT) format.
  ``
  `ImmutableEnvelope(CoordinateReferenceSystem crs, Envelope envelope)`
  Creates an immutable envelope with the coordinate values of the given envelope but a different CRS.

- ## Uses of MismatchedDimensionException in org.apache.sis.referencing.crs

  Methods in org.apache.sis.referencing.crs that throw MismatchedDimensionException
  Modifier and Type
  Method
  Description
  `static DefaultDerivedCRS`
  DefaultDerivedCRS.`create(Map<String,?> properties, SingleCRS baseCRS, Conversion baseToDerived, CoordinateSystem derivedCS)`
  Creates a derived CRS from a defining conversion and a type inferred from the given arguments.
  Constructors in org.apache.sis.referencing.crs that throw MismatchedDimensionException
  Modifier
  Constructor
  Description
  `protected`
  `DefaultDerivedCRS(Map<String,?> properties, SingleCRS baseCRS, Conversion conversion, CoordinateSystem derivedCS)`
  Creates a derived CRS from a defining conversion.
  ``
  `DefaultProjectedCRS(Map<String,?> properties, GeographicCRS baseCRS, Conversion baseToDerived, CartesianCS derivedCS)`
  Creates a projected CRS from a defining conversion.

- ## Uses of MismatchedDimensionException in org.apache.sis.referencing.operation.builder

  Methods in org.apache.sis.referencing.operation.builder that throw MismatchedDimensionException
  Modifier and Type
  Method
  Description
  `void`
  LinearTransformBuilder.`setControlPoints(Map<? extends Position, ? extends Position> sourceToTarget)`
  Sets all control point (source, target) pairs, overwriting any previous setting.

- ## Uses of MismatchedDimensionException in org.apache.sis.referencing.operation.matrix

  Subclasses of MismatchedDimensionException in org.apache.sis.referencing.operation.matrix
  Modifier and Type
  Class
  Description
  `class`
  `MismatchedMatrixSizeException`
  Thrown when two matrices cannot be added or multiplied because the sizes do not match.

- ## Uses of MismatchedDimensionException in org.apache.sis.referencing.operation.transform

  Methods in org.apache.sis.referencing.operation.transform that throw MismatchedDimensionException
  Modifier and Type
  Method
  Description
  `static MathTransform1D`
  MathTransforms.`concatenate(MathTransform1D tr1, MathTransform1D tr2)`
  Concatenates the given one-dimensional transforms.
  `static MathTransform1D`
  MathTransforms.`concatenate(MathTransform1D tr1, MathTransform1D tr2, MathTransform1D tr3)`
  Concatenates the three given one-dimensional transforms.
  `static MathTransform2D`
  MathTransforms.`concatenate(MathTransform2D tr1, MathTransform2D tr2)`
  Concatenates the given two-dimensional transforms.
  `static MathTransform2D`
  MathTransforms.`concatenate(MathTransform2D tr1, MathTransform2D tr2, MathTransform2D tr3)`
  Concatenates the three given two-dimensional transforms.
  `static MathTransform`
  MathTransforms.`concatenate(MathTransform tr1, MathTransform tr2)`
  Concatenates the two given transforms.
  `static MathTransform`
  MathTransforms.`concatenate(MathTransform tr1, MathTransform tr2, MathTransform tr3)`
  Concatenates the three given transforms.

- ## Uses of MismatchedDimensionException in org.apache.sis.util

  Methods in org.apache.sis.util that throw MismatchedDimensionException
  Modifier and Type
  Method
  Description
  `static void`
  ArgumentChecks.`ensureDimensionMatches(String name, int expected, double[] vector)`
  Ensures that the given vector, if non-null, has the expected number of dimensions (taken as its length).
  `static void`
  ArgumentChecks.`ensureDimensionMatches(String name, int expected, int[] indices)`
  Ensures that the given array of indices, if non-null, has the expected number of dimensions (taken as its length).
  `static void`
  ArgumentChecks.`ensureDimensionMatches(String name, int expected, DirectPosition position)`
  Ensures that the given direct position, if non-null, has the expected number of dimensions.
  `static void`
  ArgumentChecks.`ensureDimensionMatches(String name, int expected, Envelope envelope)`
  Ensures that the given envelope, if non-null, has the expected number of dimensions.
  `static void`
  ArgumentChecks.`ensureDimensionMatches(String name, int expected, CoordinateReferenceSystem crs)`
  Ensures that the given CRS, if non-null, has the expected number of dimensions.
  `static void`
  ArgumentChecks.`ensureDimensionMatches(String name, int expected, CoordinateSystem cs)`
  Ensures that the given coordinate system, if non-null, has the expected number of dimensions.
  `static void`
  ArgumentChecks.`ensureDimensionsMatch(String name, int expectedSource, int expectedTarget, MathTransform transform)`
  Ensures that the given transform, if non-null, has the expected number of source and target dimensions.

- ## Uses of MismatchedDimensionException in org.opengis.referencing.operation

  Methods in org.opengis.referencing.operation that throw MismatchedDimensionException
  Modifier and Type
  Method
  Description
  `Matrix`
  MathTransform.`derivative(DirectPosition point)`
  Gets the derivative of this transform at a point.
  `DirectPosition`
  MathTransform.`transform(DirectPosition ptSrc, DirectPosition ptDst)`
  Transforms the specified `ptSrc` and stores the result in `ptDst`.