@Test public void testGetPixelPos_IdentityTransform() { final GeoPos geoPos = new GeoPos(6, 6); final PixelPos referencePixelPos = new PixelPos(); referenceGeoCoding.getPixelPos(geoPos, referencePixelPos); final PixelPos slstrPixelPos = new PixelPos(); slstrCoding.getPixelPos(geoPos, slstrPixelPos); assertEquals(referencePixelPos.getX(), slstrPixelPos.getX(), 1e-8); assertEquals(referencePixelPos.getY(), slstrPixelPos.getY(), 1e-8); }
@Override public PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) { pixelPos = super.getPixelPos(geoPos, pixelPos); PixelPos transformedPixelPos = new PixelPos(); inverse.transform(pixelPos, transformedPixelPos); pixelPos.setLocation(transformedPixelPos); return transformedPixelPos; }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) { pixelPos = super.getPixelPos(geoPos, pixelPos); PixelPos transformedPixelPos = new PixelPos(); inverse.transform(pixelPos, transformedPixelPos); pixelPos.setLocation(transformedPixelPos); return transformedPixelPos; } }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) { pixelPos = super.getPixelPos(geoPos, pixelPos); PixelPos transformedPixelPos = new PixelPos(); inverse.transform(pixelPos, transformedPixelPos); pixelPos.setLocation(transformedPixelPos); return transformedPixelPos; } SlstrTiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, AffineTransform2D transform); }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) { pixelPos = super.getPixelPos(geoPos, pixelPos); PixelPos transformedPixelPos = new PixelPos(); inverse.transform(pixelPos, transformedPixelPos); pixelPos.setLocation(transformedPixelPos); return transformedPixelPos; } SlstrTiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, AffineTransform2D transform); @Override GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos); @Override PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos); @Override boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef); @Override boolean canClone(); @SuppressWarnings("MethodDoesntCallSuperMethod") @Override GeoCoding clone(); }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) { pixelPos = super.getPixelPos(geoPos, pixelPos); PixelPos transformedPixelPos = new PixelPos(); inverse.transform(pixelPos, transformedPixelPos); pixelPos.setLocation(transformedPixelPos); return transformedPixelPos; } SlstrTiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, AffineTransform2D transform); @Override GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos); @Override PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos); @Override boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef); @Override boolean canClone(); @SuppressWarnings("MethodDoesntCallSuperMethod") @Override GeoCoding clone();  }