Package org.geotools.validation.spatial

Examples of org.geotools.validation.spatial.LinesNotIntersectValidation


  public void testLinesIntersectIV_CorrectData()
  {
    // the visitor
    RoadNetworkValidationResults roadValidationResults = new RoadNetworkValidationResults();
    
    LinesNotIntersectValidation noIntersectingLinesValidatorAll
          = new LinesNotIntersectValidation();
        noIntersectingLinesValidatorAll.setName("linesIntersect");
        noIntersectingLinesValidatorAll.setDescription("Tests to see if any line geometries cross!");
        noIntersectingLinesValidatorAll.setLineTypeRef("road");
        noIntersectingLinesValidatorAll.setLineTypeRef("river");       
 
    try {
      processor.addValidation(noIntersectingLinesValidatorAll);
    } catch (Exception e) {
      assertTrue(false);
View Full Code Here


  public void testLinesIntersectIV_IncorrectData()
  {
    // the visitor
    RoadNetworkValidationResults roadValidationResults = new RoadNetworkValidationResults();
  
        LinesNotIntersectValidation noIntersectingLinesValidatorAll
        = new LinesNotIntersectValidation();
        noIntersectingLinesValidatorAll.setName("linesIntersect");
        noIntersectingLinesValidatorAll.setDescription("Tests to see if any line geometries cross!");
        noIntersectingLinesValidatorAll.setLineTypeRef("road");
        noIntersectingLinesValidatorAll.setLineTypeRef("river");       
       

    try {
      processor.addValidation(noIntersectingLinesValidatorAll);
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.geotools.validation.spatial.LinesNotIntersectValidation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.