01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * Created on Jan 24, 2004
17: */
18: package org.geotools.validation.spatial;
19:
20: import java.util.Map;
21:
22: import org.geotools.validation.ValidationResults;
23:
24: import com.vividsolutions.jts.geom.Envelope;
25:
26: /**
27: * LineNoDanglesValidation purpose.
28: *
29: * <p>
30: * Ensures Line does not have dangles.
31: * </p>
32: *
33: * @author dzwiers, Refractions Research, Inc.
34: * @author $Author: dmzwiers $ (last modification)
35: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/validation/src/main/java/org/geotools/validation/spatial/LineNoDanglesValidation.java $
36: * @version $Id: LineNoDanglesValidation.java 20884 2006-08-07 14:10:46Z jgarnett $
37: */
38: public class LineNoDanglesValidation extends LineAbstractValidation {
39: /**
40: * LineNoDanglesValidation constructor.
41: *
42: * <p>
43: * Description
44: * </p>
45: */
46: public LineNoDanglesValidation() {
47: super ();
48: }
49:
50: /**
51: * Ensure Line does not have dangles.
52: *
53: * <p></p>
54: *
55: * @param layers a HashMap of key="TypeName" value="FeatureSource"
56: * @param envelope The bounding box of modified features
57: * @param results Storage for the error and warning messages
58: *
59: * @return True if no features intersect. If they do then the validation
60: * failed.
61: *
62: * @throws Exception DOCUMENT ME!
63: *
64: * @see org.geotools.validation.IntegrityValidation#validate(java.util.Map,
65: * com.vividsolutions.jts.geom.Envelope,
66: * org.geotools.validation.ValidationResults)
67: */
68: public boolean validate(Map layers, Envelope envelope,
69: ValidationResults results) throws Exception {
70: //TODO Fix Me
71: return false;
72: }
73: }
|