sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [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.
Date Mon, 29 Jun 2020 17:31:22 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 a06af72270da78766e6e41e88ded1545465ede94
Author: Martin Desruisseaux <martin.desruisseaux@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);


Mime
View raw message