Revision 30580 branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/shp/TestSHP.java
TestSHP.java | ||
---|---|---|
30 | 30 |
import java.io.File; |
31 | 31 |
import java.util.Iterator; |
32 | 32 |
|
33 |
import org.cresques.ProjectionLibrary; |
|
34 |
import org.cresques.impl.CresquesCtsLibrary; |
|
35 |
import org.gvsig.fmap.dal.DALFileLibrary; |
|
36 | 33 |
import org.gvsig.fmap.dal.DataStoreParameters; |
37 | 34 |
import org.gvsig.fmap.dal.exception.DataException; |
38 | 35 |
import org.gvsig.fmap.dal.feature.BaseTestEditableFeatureStore; |
... | ... | |
44 | 41 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
45 | 42 |
import org.gvsig.fmap.dal.feature.FeatureType; |
46 | 43 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
47 |
import org.gvsig.fmap.dal.index.spatial.jts.JTSIndexLibrary; |
|
48 | 44 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorer; |
49 | 45 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorerParameters; |
50 | 46 |
import org.gvsig.fmap.dal.store.dbf.DBFStoreParameters; |
51 | 47 |
import org.gvsig.fmap.dal.store.dbf.DBFStoreProvider; |
52 |
import org.gvsig.fmap.geom.impl.DefaultGeometryLibrary;
|
|
48 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
|
|
53 | 49 |
|
54 | 50 |
public class TestSHP extends BaseTestEditableFeatureStore { |
55 | 51 |
|
... | ... | |
77 | 73 |
if (testSHPInitialized) { |
78 | 74 |
return; |
79 | 75 |
} |
76 |
|
|
77 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
80 | 78 |
|
81 |
DALFileLibrary libFile = new DALFileLibrary(); |
|
82 |
libFile.initialize(); |
|
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(); |
|
83 | 104 |
|
84 |
DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
85 |
defGeomLib.initialize(); |
|
86 |
|
|
87 |
ProjectionLibrary projLib = new ProjectionLibrary(); |
|
88 |
projLib.initialize(); |
|
89 |
|
|
90 |
CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
91 |
cresquesLib.initialize(); |
|
92 |
|
|
93 |
SHPLibrary shpLib = new SHPLibrary(); |
|
94 |
shpLib.initialize(); |
|
95 |
|
|
96 |
|
|
97 |
JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
98 |
jtsIndex.initialize(); |
|
99 |
|
|
100 |
defGeomLib.postInitialize(); |
|
101 |
projLib.postInitialize(); |
|
102 |
cresquesLib.postInitialize(); |
|
103 |
libFile.postInitialize(); |
|
104 |
shpLib.postInitialize(); |
|
105 |
jtsIndex.postInitialize(); |
|
106 |
|
|
107 | 105 |
testSHPInitialized = true; |
108 | 106 |
|
109 | 107 |
|
Also available in: Unified diff