Revision 30754 branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/shp/TestSHP.java
TestSHP.java | ||
---|---|---|
45 | 45 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorerParameters; |
46 | 46 |
import org.gvsig.fmap.dal.store.dbf.DBFStoreParameters; |
47 | 47 |
import org.gvsig.fmap.dal.store.dbf.DBFStoreProvider; |
48 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
49 | 48 |
|
50 | 49 |
public class TestSHP extends BaseTestEditableFeatureStore { |
51 | 50 |
|
52 |
protected boolean testSHPInitialized = false; |
|
53 |
|
|
54 |
|
|
55 | 51 |
private FilesystemServerExplorer myExplorer; |
56 | 52 |
|
57 |
|
|
58 | 53 |
public static final File file_prueba = new File(TestSHP.class.getResource( |
59 | 54 |
"data/prueba.shp").getFile()); |
60 | 55 |
public static final File file_prueba_destino = new File(file_prueba |
... | ... | |
66 | 61 |
public static final File file_poly_valencia = new File(TestSHP.class |
67 | 62 |
.getResource("data/poly-valencia.shp").getFile()); |
68 | 63 |
|
69 |
|
|
70 |
protected void setUp() throws Exception { |
|
71 |
super.setUp(); |
|
72 |
|
|
73 |
if (testSHPInitialized) { |
|
74 |
return; |
|
75 |
} |
|
76 |
|
|
77 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
78 |
|
|
79 |
// DALFileLibrary libFile = new DALFileLibrary(); |
|
80 |
// libFile.initialize(); |
|
81 |
// |
|
82 |
// DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
83 |
// defGeomLib.initialize(); |
|
84 |
// |
|
85 |
// ProjectionLibrary projLib = new ProjectionLibrary(); |
|
86 |
// projLib.initialize(); |
|
87 |
// |
|
88 |
// CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
89 |
// cresquesLib.initialize(); |
|
90 |
// |
|
91 |
// SHPLibrary shpLib = new SHPLibrary(); |
|
92 |
// shpLib.initialize(); |
|
93 |
// |
|
94 |
// |
|
95 |
// JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
96 |
// jtsIndex.initialize(); |
|
97 |
// |
|
98 |
// defGeomLib.postInitialize(); |
|
99 |
// projLib.postInitialize(); |
|
100 |
// cresquesLib.postInitialize(); |
|
101 |
// libFile.postInitialize(); |
|
102 |
// shpLib.postInitialize(); |
|
103 |
// jtsIndex.postInitialize(); |
|
104 |
|
|
105 |
testSHPInitialized = true; |
|
106 |
|
|
107 |
|
|
108 |
} |
|
109 |
|
|
110 | 64 |
public void testSimpleIteration() throws Exception { |
111 | 65 |
|
112 | 66 |
FeatureStore store = null; |
Also available in: Unified diff