Revision 26866 branches/v2_0_0_prep/extensions/extEditing/src/com/iver/cit/gvsig/gui/cad/tools/PolylineCADTool.java
PolylineCADTool.java | ||
---|---|---|
52 | 52 |
import org.gvsig.fmap.geom.Geometry; |
53 | 53 |
import org.gvsig.fmap.geom.GeometryFactory; |
54 | 54 |
import org.gvsig.fmap.geom.GeometryLocator; |
55 |
import org.gvsig.fmap.geom.GeometryManager; |
|
56 | 55 |
import org.gvsig.fmap.geom.aggregate.BaseMultiPrimitive; |
56 |
import org.gvsig.fmap.geom.aggregate.BaseMultiPrimitive2D; |
|
57 | 57 |
import org.gvsig.fmap.geom.handler.Handler; |
58 | 58 |
import org.gvsig.fmap.geom.operation.Draw; |
59 | 59 |
import org.gvsig.fmap.geom.operation.DrawOperationContext; |
... | ... | |
106 | 106 |
} |
107 | 107 |
public Geometry getGeometry() { |
108 | 108 |
Geometry[] geoms = (Geometry[]) list.toArray(new Geometry[0]); |
109 |
BaseMultiPrimitive fgc = new BaseMultiPrimitive(geoms); |
|
109 |
BaseMultiPrimitive fgc = new BaseMultiPrimitive2D(geoms);
|
|
110 | 110 |
// No queremos guardar FGeometryCollections: |
111 | 111 |
GeneralPathX gp = new GeneralPathX(); |
112 | 112 |
gp.append(fgc.getPathIterator(null, Converter.FLATNESS), true); |
... | ... | |
127 | 127 |
if (gpx==null) { |
128 | 128 |
gpx=new GeneralPathX(); |
129 | 129 |
Geometry[] geoms = (Geometry[]) list.toArray(new Geometry[0]); |
130 |
BaseMultiPrimitive fgc = new BaseMultiPrimitive(geoms); |
|
130 |
BaseMultiPrimitive fgc = new BaseMultiPrimitive2D(geoms);
|
|
131 | 131 |
// No queremos guardar FGeometryCollections: |
132 | 132 |
gpx.append(fgc.getPathIterator(null,Converter.FLATNESS), true); |
133 | 133 |
} |
... | ... | |
158 | 158 |
if (gpx==null) { |
159 | 159 |
gpx=new GeneralPathX(); |
160 | 160 |
Geometry[] geoms = (Geometry[]) list.toArray(new Geometry[0]); |
161 |
BaseMultiPrimitive fgc = new BaseMultiPrimitive(geoms); |
|
161 |
BaseMultiPrimitive fgc = new BaseMultiPrimitive2D(geoms);
|
|
162 | 162 |
// No queremos guardar FGeometryCollections: |
163 | 163 |
gpx.append(fgc.getPathIterator(null,Converter.FLATNESS), true); |
164 | 164 |
} |
Also available in: Unified diff