| | |
| | | import java.util.StringTokenizer; |
| | | import java.util.TreeMap; |
| | | |
| | | import com.ximple.eofms.util.FeatureTypeBuilderUtil; |
| | | import org.apache.commons.logging.Log; |
| | | import org.geotools.data.DataStore; |
| | | import org.geotools.data.oracle.OracleDataStore; |
| | |
| | | private static final String TESTCOUNT = "TESTCOUNT"; |
| | | private static final String COPYCONNECTIVITYMODE = "COPYCONNECTIVITYMODE"; |
| | | private static final String PROFILEMODE = "PROFILEMODE"; |
| | | private static final String USEEPSG3826 = "USEEPSG3826"; |
| | | private static final String USEZONE121 = "USEZONE121"; |
| | | |
| | | protected static OracleDataStoreFactory dataStoreFactory = new OracleDataStoreFactory(); |
| | | |
| | |
| | | protected boolean _testMode = false; |
| | | protected boolean _copyConnectivityMode = false; |
| | | protected boolean _profileMode = false; |
| | | protected boolean _useEPSG3826 = true; |
| | | protected boolean _useZone121 = true; |
| | | protected boolean _useTransform = true; |
| | | |
| | | protected int _testCount = -1; |
| | |
| | | _testCount = dataMap.getIntFromString(TESTCOUNT); |
| | | _copyConnectivityMode = dataMap.getBooleanFromString(COPYCONNECTIVITYMODE); |
| | | _profileMode = dataMap.getBooleanFromString(PROFILEMODE); |
| | | _useEPSG3826 = dataMap.getBooleanFromString(USEEPSG3826); |
| | | _useZone121 = dataMap.getBooleanFromString(USEZONE121); |
| | | if (_useZone121) { |
| | | FeatureTypeBuilderUtil.setDefaultFeatureSRID(3826); |
| | | } else { |
| | | FeatureTypeBuilderUtil.setDefaultFeatureSRID(3825); |
| | | } |
| | | |
| | | // Validate the required input |
| | | if (_dataPath == null) { |
| | |
| | | } |
| | | |
| | | protected abstract AbstractOracleJobContext prepareJobContext(String targetSchemaName, String filterPath, |
| | | boolean profileMode, |
| | | boolean useTransform, boolean useEPSG3826); |
| | | boolean profileMode, boolean useTransform); |
| | | |
| | | protected byte[] getBytesFromBLOB(BLOB blob) throws SQLException, BufferOverflowException { |
| | | byte[] raw = null; |
| | |
| | | return _useTransform; |
| | | } |
| | | |
| | | public boolean isEPSG3826() { |
| | | return _useEPSG3826; |
| | | public boolean isZone121() { |
| | | return _useZone121; |
| | | } |
| | | |
| | | public DataStore getSourceDataStore() { |