| CrossesIntegrity
author: bowens, ptozer
author: Created Apr 27, 2004
version:
version: Puropse:
version: version: Tests to see if a Geometry crosses 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: CrossesIntegrity cross = new CrossesIntegrity(); version: cross.setExpected(false); version: cross.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(cross.validate(map, lineBounds, vr)); version: } catch (Exception e) version: { version: e.printStackTrace(); version: } version:
|