sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 04/04: Renamed getCenterPoint() as getCentrePoint() for compliance with ISO 19115:2014.
Date Wed, 01 May 2019 15:51:38 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit bf56b151418d710da5562e2c387f26ebccd673ce
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Wed May 1 17:51:11 2019 +0200

    Renamed getCenterPoint() as getCentrePoint() for compliance with ISO 19115:2014.
---
 .../sis/metadata/iso/spatial/DefaultGeorectified.java  | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/spatial/DefaultGeorectified.java
b/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/spatial/DefaultGeorectified.java
index e1ceea0..214b9c1 100644
--- a/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/spatial/DefaultGeorectified.java
+++ b/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/spatial/DefaultGeorectified.java
@@ -75,7 +75,7 @@ import org.apache.sis.util.resources.Messages;
     "checkPointAvailable",
     "checkPointDescription",
     "cornerPoints",
-    "centerPoint",
+    "centrePoint",
     "pointInPixel",
     "transformationDimensionDescription",
     "transformationDimensionMapping",
@@ -87,7 +87,7 @@ public class DefaultGeorectified extends DefaultGridSpatialRepresentation
implem
     /**
      * Serial number for inter-operability with different versions.
      */
-    private static final long serialVersionUID = -2924562334097446037L;
+    private static final long serialVersionUID = 6234748157247202686L;
 
     /**
      * Mask for the {@code checkPointAvailable} boolean value.
@@ -115,7 +115,7 @@ public class DefaultGeorectified extends DefaultGridSpatialRepresentation
implem
      * and the grid coordinate of the cell halfway between opposite ends of the grid in the
      * spatial dimensions.
      */
-    private Point centerPoint;
+    private Point centrePoint;
 
     /**
      * Point in a pixel corresponding to the Earth location of the pixel.
@@ -157,7 +157,7 @@ public class DefaultGeorectified extends DefaultGridSpatialRepresentation
implem
         if (object != null) {
             checkPointDescription              = object.getCheckPointDescription();
             cornerPoints                       = copyList(object.getCornerPoints(), Point.class);
-            centerPoint                        = object.getCenterPoint();
+            centrePoint                        = object.getCentrePoint();
             pointInPixel                       = object.getPointInPixel();
             transformationDimensionDescription = object.getTransformationDimensionDescription();
             transformationDimensionMapping     = copyCollection(object.getTransformationDimensionMapping(),
InternationalString.class);
@@ -298,8 +298,8 @@ public class DefaultGeorectified extends DefaultGridSpatialRepresentation
implem
      */
     @Override
     @XmlElement(name = "centrePoint")
-    public Point getCenterPoint() {
-        return centerPoint;
+    public Point getCentrePoint() {
+        return centrePoint;
     }
 
     /**
@@ -307,9 +307,9 @@ public class DefaultGeorectified extends DefaultGridSpatialRepresentation
implem
      *
      * @param  newValue  the new center point.
      */
-    public void setCenterPoint(final Point newValue) {
-        checkWritePermission(centerPoint);
-        centerPoint = newValue;
+    public void setCentrePoint(final Point newValue) {
+        checkWritePermission(centrePoint);
+        centrePoint = newValue;
     }
 
     /**


Mime
View raw message