Tests to see if a Geometry overlaps, partially or entirely, with another Geometry. Description:
If only one layer is provided, the geometries of that layer are compared with each other. If two layers are provided, then the geometries are compared across the layers.
Usage:OverlapsIntegrity overlap = new OverlapsIntegrity(); overlap.setExpected(false); overlap.setGeomTypeRefA("my:line"); Map map = new HashMap(); try { map.put("my:line", mds.getFeatureSource("line")); } catch (IOException e1) { e1.printStackTrace(); } try { assertFalse(overlap.validate(map, lineBounds, vr)); } catch (Exception e) { e.printStackTrace(); }
|
|