sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1457773 [2/2] - in /sis/ip-review: ./ rev/10796/ rev/20874/ rev/24925/ rev/24973/ rev/24990/
Date Mon, 18 Mar 2013 14:07:43 GMT
Added: sis/ip-review/rev/24990/DefaultSource.xhtml
URL: http://svn.apache.org/viewvc/sis/ip-review/rev/24990/DefaultSource.xhtml?rev=1457773&view=auto
==============================================================================
--- sis/ip-review/rev/24990/DefaultSource.xhtml (added)
+++ sis/ip-review/rev/24990/DefaultSource.xhtml Mon Mar 18 14:07:43 2013
@@ -0,0 +1,97 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="UTF-8"/>
+    <title>DefaultSource changes for revisions 24867:24990</title>
+    <style type="text/css" media="all">
+      @import url("../../reports.css");
+    </style>
+  </head>
+  <body>
+    <div>
+      <h1>DefaultSource changes for revisions 24867:24990</h1>
+<p>Replacement of <code>long</code> primitive type by <code>RepresentativeFraction</code>.
+This change has been forced by a GeoAPI change. Reverting this change causes a compilation
failure,
+which is resolved by restoring the <code>RepresentativeFraction</code> values
as required by GeoAPI interfaces.
+So rewriting this contribution produces identical result regarding this type.</p>
+
+<p>The <code>setScaleDenominator(int)</code> method has been removed.</p>
+
+<p><b>Command line:</b></p>
+<blockquote><code>svn diff --extensions "--unified --ignore-space-change --ignore-all-space
--ignore-eol-style" -r24867:24990 http://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/lineage/SourceImpl.java</code></blockquote>
+<table class="changes">
+<tr><th>Revision 24867</th><th>Revision 24990</th></tr>
+<tr><td><pre>// OpenGIS dependencies
+import org.opengis.metadata.citation.Citation;
+import org.opengis.metadata.extent.Extent;
+import org.opengis.metadata.lineage.Source;
+import org.opengis.metadata.lineage.ProcessStep;
+import org.opengis.referencing.ReferenceSystem;</pre></td>
+<td><pre>// OpenGIS dependencies
+import org.opengis.metadata.citation.Citation;
+import org.opengis.metadata.extent.Extent;
+<span class="add">import org.opengis.metadata.identification.RepresentativeFraction;</span>
+import org.opengis.metadata.lineage.Source;
+import org.opengis.metadata.lineage.ProcessStep;
+import org.opengis.referencing.ReferenceSystem;</pre></td></tr>
+<tr><td><pre>// Geotools dependencies
+import org.geotools.metadata.iso.MetadataEntity;
+import org.geotools.resources.Utilities;</pre></td>
+<td><pre>// Geotools dependencies
+import org.geotools.metadata.iso.MetadataEntity;
+<span class="add">import org.geotools.metadata.iso.identification.RepresentativeFractionImpl;</span>
+import org.geotools.resources.Utilities;</pre></td></tr>
+<tr><td><pre>/**
+ * Denominator of the representative fraction on a source map.
+ */
+<span class="del">private long scaleDenominator;</span>
+
+/**
+ * Spatial reference system used by the source data.</pre></td>
+<td><pre>/**
+ * Denominator of the representative fraction on a source map.
+ */
+<span class="add">private RepresentativeFraction scaleDenominator;</span>
+
+/**
+ * Spatial reference system used by the source data.</pre></td></tr>
+<tr><td><pre>/**
+ * Returns the denominator of the representative fraction on a source map.
+ */
+<span class="del">public synchronized long getScaleDenominator()  {</span>
+    return scaleDenominator;
+}
+
+/**
+ * Set the denominator of the representative fraction on a source map.
+ */
+<span class="del">public synchronized void setScaleDenominator(final long newValue)
 {</span>
+    checkWritePermission();
+    scaleDenominator = newValue;
+}</pre></td>
+<td><pre>/**
+ * Returns the denominator of the representative fraction on a source map.
+ */
+<span class="add">public synchronized RepresentativeFraction getScaleDenominator()
 {</span>
+    return scaleDenominator;
+}
+
+/**
+ * Set the denominator of the representative fraction on a source map.
+ */
+<span class="add">public synchronized void setScaleDenominator(final int newValue)
 {</span>
+    checkWritePermission();
+<span class="add">    scaleDenominator = new RepresentativeFractionImpl( newValue );</span>
+<span class="add">}</span>
+<span class="add"></span>
+<span class="add">/**</span>
+<span class="add"> * Set the denominator of the representative fraction on a source
map.</span>
+<span class="add"> */</span>
+<span class="add">public synchronized void setScaleDenominator(final RepresentativeFraction
newValue)  {</span>
+<span class="add">    checkWritePermission();</span>
+    scaleDenominator = newValue;
+}</pre></td></tr>
+</table>
+    </div>
+  </body>
+</html>

Propchange: sis/ip-review/rev/24990/DefaultSource.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/ip-review/rev/24990/DefaultSource.xhtml
------------------------------------------------------------------------------
    svn:mime-type = text/html



Mime
View raw message