| | |
| | | } |
| | | } |
| | | |
| | | GeometryFactory _geomFactory = new GeometryFactory(); |
| | | |
| | | public Log getLogger() { |
| | | return logger; |
| | | } |
| | | |
| | | protected AbstractOracleJobContext prepareJobContext(String targetSchemaName, String filterPath, |
| | | boolean profileMode, boolean useTransform, boolean useEPSG3826) { |
| | | return new OracleConvertShapefilesJobContext(filterPath, profileMode, useTransform, useEPSG3826); |
| | | boolean profileMode, boolean useTransform) { |
| | | return new OracleConvertShapefilesJobContext(filterPath, profileMode, useTransform); |
| | | } |
| | | |
| | | protected void extractJobConfiguration(JobDetail jobDetail) throws JobExecutionException { |
| | |
| | | |
| | | for (String orgSchema : _orgSchema) { |
| | | OracleConvertShapefilesJobContext jobContext = (OracleConvertShapefilesJobContext) |
| | | prepareJobContext(targetSchemaName, _filterPath, isProfileMode(), isTransformed(), isEPSG3826()); |
| | | prepareJobContext(targetSchemaName, _filterPath, isProfileMode(), isTransformed()); |
| | | jobContext.setSourceDataStore(getSourceDataStore()); |
| | | jobContext.setDataPath(_dataPath); |
| | | jobContext.setConvertElementIn(_convertElementIn); |
| | |
| | | |
| | | for (File dgnFile : dgnFiles) { |
| | | IndexDgnConvertShpJobContext convertContext = new IndexDgnConvertShpJobContext(getDataPath(), isProfileMode(), |
| | | isTransformed(), isEPSG3826()); |
| | | isTransformed()); |
| | | logger.debug("--- start dgnfile-" + dgnFile.toString() + " ---"); |
| | | try { |
| | | convertContext.setExecutionContext(context); |
| | |
| | | for (File dgnFile : dgnFiles) { |
| | | GeneralDgnConvertShpJobContext convertContext = new GeneralDgnConvertShpJobContext(getDataPath(), |
| | | isProfileMode(), |
| | | isTransformed(), |
| | | isEPSG3826()); |
| | | isTransformed()); |
| | | logger.info("--- start dgnfile-" + dgnFile.toString() + " ---"); |
| | | try { |
| | | convertContext.setExecutionContext(context); |
| | |
| | | for (File dgnFile : dgnFiles) { |
| | | FeatureDgnConvertShpJobContext convertContext = new FeatureDgnConvertShpJobContext(getDataPath(), _filterPath, |
| | | isProfileMode(), |
| | | isTransformed(), |
| | | isEPSG3826()); |
| | | isTransformed()); |
| | | logger.info("--- start dgnfile-" + dgnFile.toString() + " ---"); |
| | | try { |
| | | convertContext.setExecutionContext(context); |