From commits-return-3460-apmail-sis-commits-archive=sis.apache.org@sis.apache.org Fri Jan 17 18:40:29 2014
Return-Path: Consider this field as final!
- * This field is modified only at unmarshalling time by {@link Names#add(ReferenceIdentifier)}.
*
*
@@ -83,10 +80,8 @@ public enum Convention {
*
*
*
*
* @see Citations#EPSG
@@ -304,19 +299,11 @@ public enum Convention {
* and the new (ISO 19111) directions. Those directions are:
*
*
- *
+ *
- * ISO 19111
- * OGC 01-009
- *
- * {@linkplain DefaultCoordinateSystemAxis#GEOCENTRIC_X Geocentric X}
- * Other
- *
- * {@linkplain DefaultCoordinateSystemAxis#GEOCENTRIC_Y Geocentric Y}
- * {@linkplain DefaultCoordinateSystemAxis#EASTING Easting}
- *
- * {@linkplain DefaultCoordinateSystemAxis#GEOCENTRIC_Z Geocentric Z}
- * {@linkplain DefaultCoordinateSystemAxis#NORTHING Northing}
- *
+ * ISO 19111 OGC 01-009
+ * Geocentric X Other
+ * Geocentric Y Easting
+ *
*
* @param cs The coordinate system.
* @return A coordinate system equivalent to the given one but with conform axis names,
Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java?rev=1559213&r1=1559212&r2=1559213&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java [UTF-8] (original)
+++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java [UTF-8] Fri Jan 17 18:39:50 2014
@@ -828,8 +828,8 @@ public class Formatter {
/**
* Returns {@code true} if the WKT written by this formatter is not strictly compliant to the
* WKT
- * specification. This method returns {@code true} if {@link #setInvalidWKT(String)} has
- * been invoked at least once. The action to take regarding invalid WKT is caller-dependent.
+ * specification. This method returns {@code true} if {@link #setInvalidWKT(IdentifiedObject)}
+ * has been invoked at least once. The action to take regarding invalid WKT is caller-dependent.
* For example {@link FormattableObject#toString()} will accepts loose WKT formatting and ignore
* this flag, while {@link FormattableObject#toWKT()} requires strict WKT formatting and will
* thrown an exception if this flag is set.
Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/UnformattableObjectException.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/UnformattableObjectException.java?rev=1559213&r1=1559212&r2=1559213&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/UnformattableObjectException.java [UTF-8] (original)
+++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/UnformattableObjectException.java [UTF-8] Fri Jan 17 18:39:50 2014
@@ -16,6 +16,8 @@
*/
package org.apache.sis.io.wkt;
+import org.opengis.referencing.IdentifiedObject;
+
/**
* Thrown by {@link FormattableObject#toWKT()} when an object can not be formatted as WKT.
@@ -33,7 +35,7 @@ package org.apache.sis.io.wkt;
* @version 0.4
* @module
*
- * @see Formatter#setInvalidWKT(String)
+ * @see Formatter#setInvalidWKT(IdentifiedObject)
*/
public class UnformattableObjectException extends UnsupportedOperationException {
/**
Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/AbstractIdentifiedObject.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/AbstractIdentifiedObject.java?rev=1559213&r1=1559212&r2=1559213&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/AbstractIdentifiedObject.java [UTF-8] (original)
+++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/AbstractIdentifiedObject.java [UTF-8] Fri Jan 17 18:39:50 2014
@@ -138,7 +138,7 @@ public class AbstractIdentifiedObject ex
* The name for this object or code. Shall never be {@code null}.
*
* Geocentric Z Northing
Consider this field as final! - * This field is modified only at unmarshalling time by {@link Names#add(ReferenceIdentifier)}.
+ * This field is modified only at unmarshalling time by {@link #addName(ReferenceIdentifier)}. */ private CollectionThis default CRS is assigned to + * {@linkplain org.apache.sis.geometry.GeneralEnvelope#GeneralEnvelope(org.opengis.metadata.extent.GeographicBoundingBox) + * envelopes created from a geographic bounding box}. + * Since ISO 19115 {@link org.opengis.metadata.extent.GeographicBoundingBox} is approximative by definition, + * their datum can be arbitrary.
+ * + * @return The default two-dimensional geographic CRS with (longitude, latitude) axis order. + */ + public static GeographicCRS defaultGeographic() { + return WGS84.normalizedGeographic(); + } + + /** * Returns a two-dimensional geographic CRS with axes in the non-standard but computationally convenient * (longitude, latitude) order. The coordinate system axes will be oriented toward * {@linkplain AxisDirection#EAST East} and {@linkplain AxisDirection#NORTH North} respectively, with units Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/datum/DefaultEllipsoid.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/datum/DefaultEllipsoid.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/datum/DefaultEllipsoid.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/referencing/datum/DefaultEllipsoid.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -423,7 +423,7 @@ public class DefaultEllipsoid extends Ab * and we can not convert from one to the other. * * @see #setSecondDefiningParameter(SecondDefiningParameter) - * @see #afterUnmarshal(Object, Object) + * @see #afterUnmarshal() */ private void setSemiMajorAxisMeasure(final Measure measure) throws ConversionException { if (semiMajorAxis != 0) { @@ -526,7 +526,7 @@ public class DefaultEllipsoid extends Ab * and we can not convert from one to the other. * * @see #setSemiMajorAxisMeasure(Measure) - * @see #afterUnmarshal(Object, Object) + * @see #afterUnmarshal() */ private void setSecondDefiningParameter(SecondDefiningParameter second) throws ConversionException { while (second.secondDefiningParameter != null) { Modified: sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/AbstractIdentifiedObjectTest.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/AbstractIdentifiedObjectTest.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/AbstractIdentifiedObjectTest.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/AbstractIdentifiedObjectTest.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -130,8 +130,8 @@ public final strictfp class AbstractIden /** * Tests the {@link AbstractIdentifiedObject#AbstractIdentifiedObject(Map)} constructor - * with more than one identifier. This method tries a different identifier implementation - * than the {@link #testCreateWithSingleIdentifier()} one. + * with more than one identifier. This method also tries a different identifier implementation + * than the one used by {@link #testWithSingleIdentifier()}. */ @Test @DependsOnMethod("testWithSingleIdentifier") Modified: sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/crs/HardCodedCRS.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/crs/HardCodedCRS.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/crs/HardCodedCRS.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-referencing/src/test/java/org/apache/sis/referencing/crs/HardCodedCRS.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -130,7 +130,7 @@ public final strictfp class HardCodedCRS * By default, this CRS has no transformation path to any other CRS (i.e. a map using * this CS can't be reprojected to a geographic coordinate reference system for example). * - *The {@code PixelInCell} attribute of the associated {@link ImageDatum} + *
The {@code PixelInCell} attribute of the associated {@code ImageDatum} * is set to {@link PixelInCell#CELL_CENTER}.
*/ public static final DefaultImageCRS IMAGE = new DefaultImageCRS( Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/measure/Units.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/measure/Units.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/measure/Units.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/measure/Units.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -294,8 +294,7 @@ public final class Units extends Static * * The above is exact for {@linkplain javax.measure.converter.LinearConverter linear converters}, * which is the case of the vast majority of unit converters in use. It may not be exact for a - * few unusual converter like the one from {@link #SEXAGESIMAL_DMS} to decimal degrees for - * example. + * few unusual converter like the one from sexagesimal degrees to decimal degrees for example. * * @param converter The converter for which we want the derivative at a given point. * @param value The point at which to compute the derivative. Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/Locales.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/Locales.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/Locales.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/Locales.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -141,8 +141,7 @@ public final class Locales extends Stati public static final Locales ALL = new Locales(); /** - * Only locales available in the Apache SIS library. They are the locales for which localized - * resources are provided in the {@link org.apache.sis.util.resources} package. + * Only locales available in the Apache SIS library. */ public static final Locales SIS = new Locales(); @@ -156,7 +155,7 @@ public final class Locales extends Stati /** * Returns the languages known to the JavaVM ({@link #ALL}) or to the Apache SIS library * ({@link #SIS}). In the later case, this method returns only the languages for which - * localized resources are provided in the {@link org.apache.sis.util.resources} package. + * localized resources are provided in the {@code org.apache.sis.util.resources} package. * * @return The list of supported languages. */ @@ -173,7 +172,7 @@ public final class Locales extends Stati /** * Returns the locales known to the JavaVM ({@link #ALL}) or to the Apache SIS library * ({@link #SIS}). In the later case, this method returns only the locales for which - * localized resources are provided in the {@link org.apache.sis.util.resources} package. + * localized resources are provided in the {@code org.apache.sis.util.resources} package. * * @return The list of supported locales. */ Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/StringBuilders.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -86,7 +86,7 @@ public final class StringBuilders extend * @throws IllegalArgumentException If the {@code toSearch} argument is empty. * * @see String#replace(char, char) - * @see CharSequences#replace(CharSequence, String, String) + * @see CharSequences#replace(CharSequence, CharSequence, CharSequence) * @see StringBuilder#replace(int, int, String) */ public static void replace(final StringBuilder buffer, final String toSearch, final String replaceBy) { Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/iso/ResourceInternationalString.java URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/iso/ResourceInternationalString.java?rev=1559213&r1=1559212&r2=1559213&view=diff ============================================================================== --- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/iso/ResourceInternationalString.java [UTF-8] (original) +++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/iso/ResourceInternationalString.java [UTF-8] Fri Jan 17 18:39:50 2014 @@ -69,7 +69,7 @@ import static org.apache.sis.util.Argume * with the addition of type safety and optional arguments to be formatted in the localized string. * Those resource bundles provide {@code formatInternational(int, …)} static methods for creating * international strings with the same functionality than this {@code ResourceInternationalString}. - * See {@link org.apache.sis.util.resources} for more information. + * See {@code org.apache.sis.util.resources} for more information. * * {@section Immutability and thread safety} * This class is immutable and thus inherently thread-safe if the bundles created by {@link #getBundle(Locale)}