Revision 39075
branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/PolylineCADTool.java | ||
---|---|---|
127 | 127 |
if (gpx == null) { |
128 | 128 |
gpx = new GeneralPathX(); |
129 | 129 |
Geometry[] geoms = (Geometry[]) list.toArray(new Geometry[0]); |
130 |
MultiPrimitive fgc = createMultiPrimitive(geoms); |
|
131 |
// No queremos guardar FGeometryCollections: |
|
132 |
gpx.append(fgc.getPathIterator(null, geomManager.getFlatness()), |
|
133 |
true); |
|
130 |
for (int i=0; i<geoms.length; i++) { |
|
131 |
gpx.append( |
|
132 |
geoms[i].getPathIterator(null, geomManager.getFlatness()), |
|
133 |
true); |
|
134 |
} |
|
134 | 135 |
} |
135 | 136 |
close = true; |
136 | 137 |
gpx.closePath(); |
Also available in: Unified diff