@Test
public void testAtsr2Polygon() {

    final double skip = 2.5;               // 2.5
    final int expectedMatches = 519; // 3259
    final Geometry geometry = new Polygon(
            new LinearRing[]{new LinearRing(PolarOrbitingPolygonTestData.ATSR2_POINTS)});
    final PolarOrbitingPolygon polygon = new PolarOrbitingPolygon(1, System.currentTimeMillis(), geometry);
    for (int rotations = 0; rotations < 360.0 / skip; ++rotations) {
        int orbitMatches = 0;
        for (double lat = -90.0 + skip; lat <= 90.0; lat += skip) {
            //int lineMatches = 0;
            for (double lon = -180.0 + skip; lon <= 180.0; lon += skip) {
                if (polygon.isPointInPolygon(lat, lon)) {
                    ++orbitMatches;
                }
            }
        }
        assertEquals("orbitMatches", expectedMatches, orbitMatches);
        rotate(PolarOrbitingPolygonTestData.ATSR2_POINTS, skip);
    }
}