Revision 1578 branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/MemoryDriver.java

View differences:

MemoryDriver.java
118 118
		m_Position++;
119 119
	}
120 120

  
121
	public void addGeometry(IGeometry g, Object[] row){
122
		if (g == null) {
123
			return; // No a?adimos nada
124
		}
125

  
126
		Rectangle2D boundsShp = g.getBounds2D();
127
		memShapeInfo.addShapeInfo(boundsShp, g.getGeometryType());
128
		arrayGeometries.add(g);
129
		m_TableModel.addRow(row);
130

  
131
		try {
132
			fullExtent = getFullExtent();
133
		} catch (IOException e) {
134
			e.printStackTrace();
135
		}
136

  
137
		if (fullExtent == null) {
138
			fullExtent = boundsShp;
139
		} else {
140
			fullExtent.add(boundsShp);
141
		}
142

  
143
		m_Position++;
144
	}
145
	
121 146
	/**
122 147
	 * Devuelve el extent a partir de un ?ndice.
123 148
	 *

Also available in: Unified diff