Changes in this commit seem to be the result of some "auto reformat" tool execution. The Java - GeoAPI - GeoTools import ordering is altered, imports used only in Javadoc are lost and the encoding of non-ASCII characters is broken. This commit has been reverted, except for the removal of really unused imports which are kept removed.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r10795:10796 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/measure/CoordinateFormat.java
Revision 10795 | Revision 10796 |
---|---|
/* * Geotools 2 - OpenSource mapping toolkit * (C) 2003, Geotools Project Managment Committee (PMC) * (C) 2001, Institut de Recherche pour le Développement * (C) 1998, Pêches et Océans Canada * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public |
/* * Geotools 2 - OpenSource mapping toolkit * (C) 2003, Geotools Project Managment Committee (PMC) * (C) 2001, Institut de Recherche pour le D�veloppement * (C) 1998, P�ches et Oc�ans Canada * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public |
package org.geotools.measure; // J2SE dependencies import java.util.Date; import java.util.Locale; import java.util.TimeZone; import java.text.Format; import java.text.DateFormat; import java.text.NumberFormat; import java.text.DecimalFormat; import java.text.FieldPosition; import java.text.ParsePosition; import java.text.SimpleDateFormat; import javax.units.Unit; import javax.units.SI; import javax.units.NonSI; import javax.units.Converter; // OpenGIS dependencies import org.opengis.referencing.datum.Datum; import org.opengis.referencing.datum.TemporalDatum; import org.opengis.referencing.cs.AxisDirection; import org.opengis.referencing.cs.CoordinateSystem; import org.opengis.referencing.cs.CoordinateSystemAxis; import org.opengis.referencing.crs.CoordinateReferenceSystem; import org.opengis.spatialschema.geometry.DirectPosition; import org.opengis.spatialschema.geometry.MismatchedDimensionException; // Geotools dependencies import org.geotools.resources.CRSUtilities; import org.geotools.resources.cts.Resources; import org.geotools.resources.cts.ResourceKeys; import org.geotools.referencing.crs.TemporalCRS; /** * Format a {@linkplain org.geotools.geometry.GeneralDirectPosition direct position} in an * arbitrary {@linkplain org.geotools.referencing.crs.CoordinateReferenceSystem coordinate |
package org.geotools.measure; // J2SE dependencies import java.text.DateFormat; import java.text.DecimalFormat; import java.text.FieldPosition; import java.text.Format; import java.text.NumberFormat; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; import javax.units.Converter; import javax.units.NonSI; import javax.units.SI; import javax.units.Unit; import org.geotools.referencing.crs.TemporalCRS; import org.geotools.resources.CRSUtilities; import org.geotools.resources.cts.ResourceKeys; import org.geotools.resources.cts.Resources; import org.opengis.referencing.crs.CoordinateReferenceSystem; import org.opengis.referencing.cs.AxisDirection; import org.opengis.referencing.cs.CoordinateSystem; import org.opengis.referencing.cs.CoordinateSystemAxis; import org.opengis.referencing.datum.Datum; import org.opengis.referencing.datum.TemporalDatum; import org.opengis.spatialschema.geometry.DirectPosition; import org.opengis.spatialschema.geometry.MismatchedDimensionException; /** * Format a {@linkplain org.geotools.geometry.GeneralDirectPosition direct position} in an * arbitrary {@linkplain org.geotools.referencing.crs.CoordinateReferenceSystem coordinate |
/////////////////
if (NonSI.DEGREE_ANGLE.equals(unit)) {
if (angleFormat == null) {
angleFormat = new AngleFormat("DD°MM.m'", locale);
}
formats[i] = angleFormat;
final AxisDirection axis = cs.getAxis(i).getDirection().absolute(); |
/////////////////
if (NonSI.DEGREE_ANGLE.equals(unit)) {
if (angleFormat == null) {
angleFormat = new AngleFormat("DD�MM.m'", locale);
}
formats[i] = angleFormat;
final AxisDirection axis = cs.getAxis(i).getDirection().absolute(); |