Revision 30341
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/rule/FeatureRulePolygon.java | ||
---|---|---|
15 | 15 |
import org.gvsig.fmap.geom.util.Converter; |
16 | 16 |
|
17 | 17 |
public class FeatureRulePolygon extends AbstractFeatureRule { |
18 |
|
|
18 |
private static GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
19 |
|
|
19 | 20 |
public FeatureRulePolygon() { |
20 | 21 |
super("RulePolygon", "Ensure orientation of geometry"); |
21 | 22 |
} |
... | ... | |
26 | 27 |
try { |
27 | 28 |
Geometry geom = feature.getDefaultGeometry(); |
28 | 29 |
GeneralPathX gp = new GeneralPathX(); |
29 |
gp.append(geom.getPathIterator(null, Converter.FLATNESS), true);
|
|
30 |
gp.append(geom.getPathIterator(null, geomManager.getFlatness()), true);
|
|
30 | 31 |
|
31 | 32 |
if (gp.isClosed()) { |
32 | 33 |
if (gp.isCCW()) { |
Also available in: Unified diff