Revision 1951
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dwg/DwgMemoryDriver.java | ||
---|---|---|
131 | 131 |
dwg.initializeLayerTable(); |
132 | 132 |
dwg.calculateDwgPolylines(); |
133 | 133 |
dwg.manageBlocks(); |
134 |
dwg.manageInserts(); |
|
134 |
//dwg.manageInserts();
|
|
135 | 135 |
//dwg.removeRedundantObjects(); |
136 | 136 |
long timeElapsed = System.currentTimeMillis()-time; |
137 | 137 |
System.out.println("Tiempo empleado en leer el fichero dwg = " + timeElapsed); |
... | ... | |
281 | 281 |
} else if (entity.getType()==0x0F) { |
282 | 282 |
//System.out.println("Encuentra una Polyline2D ..."); |
283 | 283 |
Point2D[] points = ((DwgPolyline2D)entity).getPts(); |
284 |
FPolyline2D pline = points2DToFPolyline2D(points); |
|
284 |
// Existe un bug que provoca que existan algunas polil?neas sin puntos ... |
|
285 |
FPolyline2D pline = null; |
|
286 |
if (points!=null) pline = points2DToFPolyline2D(points); |
|
285 | 287 |
auxRow[ID_FIELD_ID] = ValueFactory.createValue(i); |
286 | 288 |
auxRow[ID_FIELD_ENTITY] = ValueFactory.createValue(new String("Polyline2D")); |
287 | 289 |
String layerName = dwg.getLayerName(entity); |
... | ... | |
302 | 304 |
auxRow[9+j] = ValueFactory.createValue(new String(fea.getProp(attributes[0]))); |
303 | 305 |
} |
304 | 306 |
}*/ |
305 |
addShape(pline, auxRow);
|
|
307 |
if (points!=null) addShape(pline, auxRow);
|
|
306 | 308 |
} else if (entity.getType()==0x10) { |
307 | 309 |
//System.out.println("Encuentra una Polyline3D ..."); |
308 | 310 |
int flags = ((DwgPolyline3D)entity).getClosedFlags(); |
Also available in: Unified diff