Revision 5953
trunk/extensions/extMeasureGeometry/src/com/iver/gvsig/measure/Operations.java | ||
---|---|---|
9 | 9 |
import com.iver.cit.gvsig.fmap.DriverException; |
10 | 10 |
import com.iver.cit.gvsig.fmap.ViewPort; |
11 | 11 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
12 |
import com.iver.cit.gvsig.fmap.core.v02.FConverter; |
|
12 | 13 |
import com.iver.cit.gvsig.fmap.drivers.FieldDescription; |
13 | 14 |
import com.iver.cit.gvsig.fmap.drivers.SHPLayerDefinition; |
14 | 15 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
... | ... | |
70 | 71 |
|
71 | 72 |
// boolean bFirst = true; |
72 | 73 |
// int xInt, yInt, antX = -1, antY = -1; |
73 |
theIterator = geometry.getPathIterator(null); //, flatness); |
|
74 |
theIterator = geometry.getPathIterator(null,FConverter.flatness); //, flatness);
|
|
74 | 75 |
|
75 | 76 |
// int numSegmentsAdded = 0; |
76 | 77 |
while (!theIterator.isDone()) { |
... | ... | |
101 | 102 |
*/ |
102 | 103 |
break; |
103 | 104 |
|
104 |
case PathIterator.SEG_QUADTO: |
|
105 |
/* case PathIterator.SEG_QUADTO:
|
|
105 | 106 |
xs.add(new Double(theData[0])); |
106 | 107 |
ys.add(new Double(theData[1])); |
107 | 108 |
|
... | ... | |
115 | 116 |
// numSegmentsAdded++; |
116 | 117 |
break; |
117 | 118 |
|
119 |
*/ |
|
118 | 120 |
case PathIterator.SEG_CLOSE: |
119 | 121 |
xs.add(new Double(theData[0])); |
120 | 122 |
ys.add(new Double(theData[1])); |
Also available in: Unified diff