Revision 23181

View differences:

branches/v2_0_0_prep/libraries/libFMap_dataFile/src-test/org/gvsig/fmap/data/feature/file/DataStoreTest.java
41 41
import org.gvsig.tools.observer.Observer;
42 42

  
43 43
import com.iver.utiles.XMLEntity;
44
import com.iver.utiles.XMLException;
44 45

  
45 46
public class DataStoreTest extends TestCase {
46 47

  
......
1363 1364
			fail();
1364 1365
		}
1365 1366

  
1366
		storeXML = store.getXMLEntity();
1367
		try {
1368
			storeXML = store.getXMLEntity();
1369
		} catch (XMLException e1) {
1370
			e1.printStackTrace();
1371
			fail();
1372
		}
1367 1373

  
1368 1374
		assertNotNull(storeXML);
1369 1375

  
......
1374 1380
			fail();
1375 1381
		}
1376 1382

  
1377
		store2XML = store2.getXMLEntity();
1383
		try {
1384
			store2XML = store2.getXMLEntity();
1385
		} catch (XMLException e1) {
1386
			e1.printStackTrace();
1387
			fail();
1388
		}
1378 1389

  
1379 1390
		assertEquals(storeXML.toString(), store2XML.toString());
1380 1391

  
branches/v2_0_0_prep/libraries/libFMap_dataFile/src/org/gvsig/fmap/data/feature/file/shp/ShpFeatureCollection.java
8 8
import org.gvsig.fmap.data.feature.FeatureManager;
9 9
import org.gvsig.fmap.data.feature.FeatureType;
10 10
import org.gvsig.fmap.data.feature.file.dbf.DBFFeatureCollection;
11
import org.gvsig.fmap.data.feature.file.dbf.DBFFeatureID;
12
import org.gvsig.fmap.data.feature.file.dbf.DBFStore;
13 11

  
14 12
public class ShpFeatureCollection extends DBFFeatureCollection {
15 13

  
branches/v2_0_0_prep/libraries/libFMap_dataFile/src/org/gvsig/fmap/data/feature/file/shp/ShpFeaturesWriter.java
1 1
package org.gvsig.fmap.data.feature.file.shp;
2 2

  
3
import java.awt.geom.Rectangle2D;
4 3
import java.io.File;
5 4
import java.io.IOException;
6 5
import java.nio.channels.FileChannel;
......
76 75
			if (theGeom == null){
77 76
				theGeom = new NullGeometry();
78 77
			}
79
		} 
78
		}
80 79
		if (!canWriteGeometry(theGeom.getType())){
81 80
			throw new WriteException("UnsupportedGeometryType: "+ theGeom.getGeometryType().getName(),SHPStore.DATASTORE_NAME);
82 81
		}
......
84 83
		fileSize = shpWrite.writeIGeometry(theGeom);
85 84
		Envelope envelope = theGeom.getEnvelope();
86 85
		if (envelope!=null){
87
			if (this.envelope == null) {				
86
			if (this.envelope == null) {
88 87
				this.envelope = envelope;
89 88
			} else {
90 89
				this.envelope.add(envelope);
branches/v2_0_0_prep/libraries/libFMap_dataFile/src/org/gvsig/fmap/data/feature/file/dbf/DBFFeaturesWriter.java
96 96
		DbaseFileHeader myHeader = DbaseFileHeader.createDbaseHeader(featureType);
97 97
		try {
98 98
			FileChannel filechannel=(FileChannel) getWriteChannel(parameters.getDBFFile().getAbsolutePath());
99
			DbaseFileWriter dbfWrite = new DbaseFileWriter(myHeader,filechannel
100
					);
99
			new DbaseFileWriter(myHeader,filechannel);
101 100
			filechannel.close();
102 101
		} catch (IOException e) {
103 102
			throw new InitializeWriterException("DBF Feature Writer",e);
branches/v2_0_0_prep/libraries/libFMap_dataFile/src/org/gvsig/fmap/data/feature/file/dbf/DBFStore.java
179 179
	}
180 180

  
181 181
	/**
182
	 * 
182
	 *
183 183
	 * Only for persistenced features
184
	 * 
184
	 *
185 185
	 * @param index
186 186
	 * @param featureType
187 187
	 * @return
......
199 199

  
200 200
	/***
201 201
	 * NOT supported in Alter Mode
202
	 * 
202
	 *
203 203
	 * @param index
204 204
	 * @return
205 205
	 * @throws ReadException
......
329 329
		return false;
330 330
	}
331 331

  
332
	public String getClassName() {
333
		// TODO Auto-generated method stub
334
		return null;
335
	}
332 336
}

Also available in: Unified diff