Change in LGPL header does not apply to Apache SIS. Change in stop condition of the loop has been reverted.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r20599:20970 https://svn.osgeo.org/geotools/trunk/modules/library/coverage/src/main/java/org/geotools/coverage/GeophysicsCategoryList.java
Revision 20599 | Revision 20970 |
---|---|
/* * Geotools 2 - OpenSource mapping toolkit * (C) 2003, Geotools Project Management Committee (PMC) * (C) 2001, Institut de Recherche pour le Développement * * This library is free software; you can redistribute it and/or |
/* * GeoTools - OpenSource mapping toolkit * http://geotools.org * (C) 2003-2006, Geotools Project Management Committee (PMC) * (C) 2001, Institut de Recherche pour le Développement * * This library is free software; you can redistribute it and/or |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * This package contains documentation from OpenGIS specifications. * OpenGIS consortium's work is fully acknowledged here. */ |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * This package contains documentation from OpenGIS specifications. * OpenGIS consortium's work is fully acknowledged here. */ |
private static int getFractionDigitCount(final Category[] categories) {
int ndigits = 0;
final double EPS = 1E-6;
for (int i=0; i<categories.length; i++) {
final Category geophysics = categories[i].geophysics(true);
final Category samples = categories[i].geophysics(false);
final double ln = XMath.log10((geophysics.maximum - geophysics.minimum)/ |
private static int getFractionDigitCount(final Category[] categories) { int ndigits = 0; final double EPS = 1E-6; final int length=categories.length; for (int i=0; i<length; i++) { final Category geophysics = categories[i].geophysics(true); final Category samples = categories[i].geophysics(false); final double ln = XMath.log10((geophysics.maximum - geophysics.minimum)/ |