Revision 18253 trunk/libraries/libTopology/src/org/gvsig/topology/topologyrules/jtsisvalidrules/IGeometryMustBeClosed.java
IGeometryMustBeClosed.java | ||
---|---|---|
76 | 76 |
* |
77 | 77 |
*/ |
78 | 78 |
public class IGeometryMustBeClosed extends AbstractTopologyRule { |
79 |
|
|
80 |
public static final String RULE_NAME = |
|
81 |
Messages.getText("LINEAR_RING_MUST_BE_CLOSED"); |
|
82 |
|
|
79 |
|
|
83 | 80 |
private double snapTolerance; |
84 | 81 |
|
85 |
|
|
86 | 82 |
public IGeometryMustBeClosed(Topology topology, FLyrVect originLyr, double snapTolerance) { |
87 | 83 |
super(topology, originLyr); |
88 | 84 |
this.snapTolerance = snapTolerance; |
... | ... | |
94 | 90 |
this(null, originLyr, snapTolerance); |
95 | 91 |
} |
96 | 92 |
|
97 |
public String getDescription() {
|
|
98 |
return RULE_NAME;
|
|
93 |
public String getName() {
|
|
94 |
return Messages.getText("LINEAR_RING_MUST_BE_CLOSED");
|
|
99 | 95 |
} |
100 | 96 |
|
101 | 97 |
public void checkPreconditions() throws TopologyRuleDefinitionException { |
Also available in: Unified diff