iGN5117 commented on code in PR #967:
URL: https://github.com/apache/sedona/pull/967#discussion_r1293863642


##########
common/src/main/java/org/apache/sedona/common/raster/RasterAccessors.java:
##########
@@ -96,6 +96,31 @@ public static double getWorldCoordY(GridCoverage2D raster, 
int colX, int rowY) t
         return RasterUtils.getWorldCornerCoordinates(raster, colX, 
rowY).getY();
     }
 
+    public static String getGeoReference(GridCoverage2D raster) {
+        return getGeoReference(raster, "GDAL");
+    }
+
+    public static String getGeoReference(GridCoverage2D raster, String format) 
{
+
+        AffineTransform2D affine = RasterUtils.getGDALAffineTransform(raster);
+
+        double scaleX = affine.getScaleX();
+        double skewX = affine.getShearX();
+        double skewY = affine.getShearY();

Review Comment:
   Please use inbuilt RasterAccessors functions to get these parameters so that 
any changes are centralized



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to