Revision 4535 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/write/SHPFileWrite.java

View differences:

SHPFileWrite.java
266 266
	 */
267 267
	public int writeGeometry(IGeometry g) throws IOException {
268 268
		if (m_bb == null) {
269
			throw new IOException("Must write headers first");
269
			allocateBuffers();
270
			m_offset = 50;
271
			m_cnt = 0;
272

  
273
			shpChannel.position(0);
274
			shxChannel.position(0);
275

  
276
			// throw new IOException("Must write headers first");
270 277
		}
271 278

  
272 279
		m_pos = m_bb.position();

Also available in: Unified diff