Package org.geotools.validation

Examples of org.geotools.validation.ValidationProcessor.runIntegrityTests()


    // optional shortlist of layers to check (these are usually the layers your
    // user modified)
    Set<Name> check = new HashSet<Name>();
    check.add( new NameImpl("LAKES:lakes"));
   
    processor.runIntegrityTests( check, map, null, results);

    // and check the results
    System.out.println("Found "+ results.error.size() + " failires" );
    // validationExample2 end
}
View Full Code Here


        try {
          //should never be null, but confDemo is giving grief, and I
          //don't want transactions to mess up just because validation
          //stuff is messed up. ch
            LOGGER.finer("Runing integrity tests using validation processor ");
          validation.runIntegrityTests(stores.keySet(), sources, check, results);         
        } catch (Exception badIdea) {
            badIdea.printStackTrace();
            // ValidationResults should of handled stuff will redesign :-)
            throw new DataSourceException("Validation Failed", badIdea);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.