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