Revision 30323 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/flip/Flip.java
Flip.java | ||
---|---|---|
5 | 5 |
|
6 | 6 |
import org.gvsig.fmap.geom.Geometry; |
7 | 7 |
import org.gvsig.fmap.geom.GeometryLocator; |
8 |
import org.gvsig.fmap.geom.GeometryManager; |
|
8 | 9 |
import org.gvsig.fmap.geom.operation.GeometryOperation; |
9 | 10 |
import org.gvsig.fmap.geom.operation.GeometryOperationContext; |
10 | 11 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
... | ... | |
23 | 24 |
*/ |
24 | 25 |
public class Flip extends GeometryOperation{ |
25 | 26 |
public static final String NAME = "flip"; |
26 |
public static final int CODE = GeometryLocator.getGeometryManager().
|
|
27 |
getGeometryOperationCode(NAME);
|
|
27 |
private static GeometryManager geomManager = GeometryLocator.getGeometryManager();
|
|
28 |
public static final int CODE = geomManager.getGeometryOperationCode(NAME);
|
|
28 | 29 |
|
29 | 30 |
private GeneralPathX generalPathX = null; |
30 | 31 |
|
... | ... | |
38 | 39 |
//if there isn't path the operation hasn't sense. |
39 | 40 |
return null; |
40 | 41 |
} |
41 |
PathIterator theIterator = geom.getPathIterator(null, Converter.FLATNESS); //polyLine.getPathIterator(null, flatness);
|
|
42 |
PathIterator theIterator = geom.getPathIterator(null, geomManager.getFlatness()); //polyLine.getPathIterator(null, flatness);
|
|
42 | 43 |
double[] theData = new double[6]; |
43 | 44 |
//Coordinate first = null; |
44 | 45 |
CoordinateList coordList = new CoordinateList(); |
Also available in: Unified diff