final int dimension = getDimension();
for (int i=0; i<points.length; i++) {
final DirectPosition point = points[i];
final int pointDim = point.getDimension();
if (pointDim != dimension) {
throw new MismatchedDimensionException(Errors.format(
ErrorKeys.MISMATCHED_DIMENSION_$3, label + '[' + i + ']', pointDim, dimension));
}
crs = getCoordinateReferenceSystem(point, crs);
}
if (crs != null) {