furqaankhan commented on code in PR #967:
URL: https://github.com/apache/sedona/pull/967#discussion_r1293890904
##########
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();
+ double scaleY = affine.getScaleY();
Review Comment:
Sure!
--
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]