sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1786891 - in /sis/trunk: ./ core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/
Date Tue, 14 Mar 2017 12:09:20 GMT
Author: desruisseaux
Date: Tue Mar 14 12:09:19 2017
New Revision: 1786891

URL: http://svn.apache.org/viewvc?rev=1786891&view=rev
Log:
Merge cleanup from JDK7 branch.

Modified:
    sis/trunk/   (props changed)
    sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/MilitaryGridReferenceSystem.java
    sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/ReferencingByIdentifiers.java

Propchange: sis/trunk/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Tue Mar 14 12:09:19 2017
@@ -1,5 +1,5 @@
 /sis/branches/Android:1430670-1480699
 /sis/branches/JDK6:1394364-1758914
-/sis/branches/JDK7:1394913-1786763
-/sis/branches/JDK8:1584960-1786756
+/sis/branches/JDK7:1394913-1786890
+/sis/branches/JDK8:1584960-1786889
 /sis/branches/JDK9:1773327-1773512

Modified: sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/MilitaryGridReferenceSystem.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/MilitaryGridReferenceSystem.java?rev=1786891&r1=1786890&r2=1786891&view=diff
==============================================================================
--- sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/MilitaryGridReferenceSystem.java
[UTF-8] (original)
+++ sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/MilitaryGridReferenceSystem.java
[UTF-8] Tue Mar 14 12:09:19 2017
@@ -1074,7 +1074,15 @@ public class MilitaryGridReferenceSystem
                 downward = (encoder.crsZone < 0);           // Upward in UTM North zones,
downward in UTM South zones.
             } else {
                 downward = yEnd <= PolarStereographicA.UPS_SHIFT;  // Downward only if
AOI is fully in the lower half.
-                isSpecialCase = (gridX < PolarStereographicA.UPS_SHIFT);         // Can
not optimize left side of UPS.
+                /*
+                 * In the polar case, we can not apply the shortcut documented in 'optimize'
if there is a hole
+                 * in the UPS projection center. There is a hole if the latitude of the area
of interest does not
+                 * reach the pole, or if the longitude range does not make a full circle
around the Earth.
+                 */
+                isSpecialCase        |=        λmin != Longitude.MIN_VALUE ||
+                                               λmax != Longitude.MAX_VALUE ||
+                        (encoder.crsZone < 0 ? φmin != Latitude .MIN_VALUE
+                                             : φmax != Latitude .MAX_VALUE);
             }
             if (downward) {
                 final int y = gridY;

Modified: sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/ReferencingByIdentifiers.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/ReferencingByIdentifiers.java?rev=1786891&r1=1786890&r2=1786891&view=diff
==============================================================================
--- sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/ReferencingByIdentifiers.java
[UTF-8] (original)
+++ sis/trunk/core/sis-referencing-by-identifiers/src/main/java/org/apache/sis/referencing/gazetteer/ReferencingByIdentifiers.java
[UTF-8] Tue Mar 14 12:09:19 2017
@@ -189,7 +189,7 @@ public class ReferencingByIdentifiers ex
      *
      * @return property used to characterize the spatial reference system.
      *
-     * @see AbstractLocationType#getTheme()
+     * @see ModifiableLocationType#getTheme()
      */
     public InternationalString getTheme() {
         return theme;



Mime
View raw message