Revision 30323 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/isCCW/IsCCW.java

View differences:

IsCCW.java
34 34

  
35 35
import org.gvsig.fmap.geom.Geometry;
36 36
import org.gvsig.fmap.geom.GeometryLocator;
37
import org.gvsig.fmap.geom.GeometryManager;
37 38
import org.gvsig.fmap.geom.operation.GeometryOperation;
38 39
import org.gvsig.fmap.geom.operation.GeometryOperationContext;
39 40
import org.gvsig.fmap.geom.operation.GeometryOperationException;
......
51 52
 */
52 53
public class IsCCW extends GeometryOperation{
53 54
    public static final String NAME = "isCCW";
54
	public static final int CODE = GeometryLocator.getGeometryManager().
55
    	getGeometryOperationCode(NAME);
55
    private static GeometryManager geomManager = GeometryLocator.getGeometryManager();
56
    public static final int CODE = geomManager.getGeometryOperationCode(NAME);
56 57
	
57 58
	private GeneralPathX generalPathX = null;	
58 59
	
......
66 67
			//if there isn't path the operation hasn't sense.
67 68
			return null;
68 69
    	}
69
		PathIterator theIterator = generalPathX.getPathIterator(null, Converter.FLATNESS); //polyLine.getPathIterator(null, flatness);
70
		PathIterator theIterator = generalPathX.getPathIterator(null, geomManager.getFlatness()); //polyLine.getPathIterator(null, flatness);
70 71
		double[] theData = new double[6];
71 72
        Coordinate first = null;
72 73
        CoordinateList coordList = new CoordinateList();

Also available in: Unified diff