|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.validation.DefaultIntegrityValidation
org.geotools.validation.relate.RelationIntegrity
org.geotools.validation.relate.CrossesIntegrity
public class CrossesIntegrity
CrossesIntegrity
Tests to see if a Geometry crosses 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:CrossesIntegrity cross = new CrossesIntegrity(); cross.setExpected(false); cross.setGeomTypeRefA("my:line"); Map map = new HashMap(); try { map.put("my:line", mds.getFeatureSource("line")); } catch (IOException e1) { e1.printStackTrace(); } try { assertFalse(cross.validate(map, lineBounds, vr)); } catch (Exception e) { e.printStackTrace(); }
Field Summary |
---|
Fields inherited from class org.geotools.validation.relate.RelationIntegrity |
---|
EMPTY, expected |
Fields inherited from interface org.geotools.validation.Validation |
---|
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
Constructor Summary | |
---|---|
CrossesIntegrity()
CrossesIntegrity Constructor |
Method Summary | |
---|---|
boolean |
validate(java.util.Map layers,
ReferencedEnvelope envelope,
ValidationResults results)
Check FeatureType for ... |
Methods inherited from class org.geotools.validation.relate.RelationIntegrity |
---|
getGeomTypeRefA, getGeomTypeRefB, getTypeRefs, isExpected, setExpected, setExpected, setGeomTypeRefA, setGeomTypeRefB |
Methods inherited from class org.geotools.validation.DefaultIntegrityValidation |
---|
getDescription, getName, getPriority, setDescription, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrossesIntegrity()
Method Detail |
---|
public boolean validate(java.util.Map layers, ReferencedEnvelope envelope, ValidationResults results) throws java.lang.Exception
DefaultIntegrityValidation
Detailed description...
validate
in interface IntegrityValidation
validate
in class DefaultIntegrityValidation
layers
- Map of FeatureSourceenvelope
- The bounding box that encloses the unvalidated dataresults
- Used to coallate results information
true
if all the features pass this test.
java.lang.Exception
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |