PolygonFilter extends AreaFilter { @Override protected boolean isNodeWithinArea(Node node) { double latitude; double longitude; if (area == null) { area = new PolygonFileReader(polygonFile).loadPolygon(); } latitude = node.getLatitude(); longitude = node.getLongitude(); return area.contains(longitude, latitude); } PolygonFilter(
			IdTrackerType idTrackerType, File polygonFile, boolean clipIncompleteEntities, boolean completeWays,
			boolean completeRelations, boolean cascadingRelations); @Override void process(BoundContainer boundContainer);  }
@Test public final void testIsNodeWithinArea1() { assertTrue( "Node lying inside filter area not considered inside area.", polyAreaFilter.isNodeWithinArea(inAreaNode)); }
@Test public final void testIsNodeWithinArea2() { assertFalse( "Node lying outside filter area not considered outside area.", polyAreaFilter.isNodeWithinArea(outOfAreaNode)); }
@Test public final void testIsNodeWithinArea3() { assertFalse( "Node lying on edge of filter area not considered inside area.", polyAreaFilter.isNodeWithinArea(edgeNode)); }