Package org.geotools.validation.relate

Examples of org.geotools.validation.relate.OverlapsIntegrity


* @author chorner
* @since 1.0.1
*/
public class ValidateOverlaps extends IntegrityValidationOp {
    public IntegrityValidation getValidator(ILayer[] layer) {
        OverlapsIntegrity overlapsIntegrity = new OverlapsIntegrity();
        overlapsIntegrity.setExpected(false); //(for now we'll assume overlaps are unexpected)
        String nameSpace = layer[0].getSchema().getName().getNamespaceURI();
        String typeName = layer[0].getSchema().getName().getLocalPart();
        overlapsIntegrity.setGeomTypeRefA(nameSpace+":"+typeName); //$NON-NLS-1$
        //check for the existence of a second layer
        if (layer.length > 1) {
            nameSpace = layer[1].getSchema().getName().getNamespaceURI();
            typeName = layer[1].getSchema().getName().getLocalPart();
            overlapsIntegrity.setGeomTypeRefB(nameSpace+":"+typeName); //$NON-NLS-1$
        }
        return overlapsIntegrity;
    }
View Full Code Here

TOP

Related Classes of org.geotools.validation.relate.OverlapsIntegrity

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.