@Test public void testGetGeoPos_IdentityTransform() { final PixelPos pixelPos = new PixelPos(6, 6); final GeoPos referenceGeoPos = new GeoPos(); referenceGeoCoding.getGeoPos(pixelPos, referenceGeoPos); final GeoPos slstrGeoPos = new GeoPos(); slstrCoding.getGeoPos(pixelPos, slstrGeoPos); assertEquals(referenceGeoPos.getLat(), slstrGeoPos.getLat(), 1e-8); assertEquals(referenceGeoPos.getLon(), slstrGeoPos.getLon(), 1e-8); }
@Override public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) { PixelPos transformedPixelPos = new PixelPos(); transform.transform(pixelPos, transformedPixelPos); return super.getGeoPos(transformedPixelPos, geoPos); }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) { PixelPos transformedPixelPos = new PixelPos(); transform.transform(pixelPos, transformedPixelPos); return super.getGeoPos(transformedPixelPos, geoPos); } }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) { PixelPos transformedPixelPos = new PixelPos(); transform.transform(pixelPos, transformedPixelPos); return super.getGeoPos(transformedPixelPos, geoPos); } SlstrTiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, AffineTransform2D transform); }
SlstrTiePointGeoCoding extends TiePointGeoCoding { @Override public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) { PixelPos transformedPixelPos = new PixelPos(); transform.transform(pixelPos, transformedPixelPos); return super.getGeoPos(transformedPixelPos, geoPos); } 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 GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) { PixelPos transformedPixelPos = new PixelPos(); transform.transform(pixelPos, transformedPixelPos); return super.getGeoPos(transformedPixelPos, geoPos); } 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();  }