You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2020/06/29 17:31:22 UTC
[sis] 06/06: Temporarily enable the use of `ResamplingGrid` for
testing purpose. Unconditional enabling of this optimization can actually
slow down the rendering of zoomed image because the grid is computed for
the full image instead than only the visible portion. A future version
should enable this optimization only when we know that most of the image
surface will be used.
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 a06af72270da78766e6e41e88ded1545465ede94
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Mon Jun 29 19:27:43 2020 +0200
Temporarily enable the use of `ResamplingGrid` for testing purpose.
Unconditional enabling of this optimization can actually slow down
the rendering of zoomed image because the grid is computed for the
full image instead than only the visible portion. A future version
should enable this optimization only when we know that most of the
image surface will be used.
---
.../src/main/java/org/apache/sis/gui/coverage/RenderingData.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/RenderingData.java b/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/RenderingData.java
index 6a9e97b..f5b103a 100644
--- a/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/RenderingData.java
+++ b/application/sis-javafx/src/main/java/org/apache/sis/gui/coverage/RenderingData.java
@@ -216,6 +216,7 @@ final class RenderingData implements Cloneable {
changeOfCRS = CRS.findOperation(dataGeometry.getCoordinateReferenceSystem(), objectiveCRS, areaOfInterest);
final double accuracy = CRS.getLinearAccuracy(changeOfCRS);
processor.setPositionalAccuracyHints(
+ Quantities.create(0.25, Units.PIXEL),
(accuracy > 0) ? Quantities.create(accuracy, Units.METRE) : null);
} catch (FactoryException e) {
recoverableException(e);