Skip to content

Commit

Permalink
add log to debug windows extracting process
Browse files Browse the repository at this point in the history
  • Loading branch information
reyman committed Sep 18, 2024
1 parent 106198f commit cbc31da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/scala/eighties/h24/tools/ExtractRelevantData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ import com.github.tototoshi.csv.defaultCSVFormat
val transform = CRS.findMathTransform(l2eCRS, l3CRS, true)
val outputGridFile = new java.io.File(outputDirectory, config.grid.get.getName)
Log.log("outputGridFile = " + outputGridFile)
Log.log("filtershape")
filterShape(config.grid.get, (feature:SimpleFeature)=>{!featureSource.getFeatures(ff.intersects(ff.property(store.getSchema.getGeometryDescriptor.getLocalName), ff.literal(JTS.transform(feature.getDefaultGeometry.asInstanceOf[Geometry], transform)))).isEmpty}, outputGridFile)
Log.log("store.dispose start")
store.dispose()
Log.log("store.dispose end")
val outputInfraPopulationFile = new java.io.File(outputDirectory, config.infraPopulation.get.getName.substring(0, config.infraPopulation.get.getName.lastIndexOf("."))+".csv.lzma")
Log.log("outputInfraPopulationFile = "+outputInfraPopulationFile)
filterCSV(config.infraPopulation.get, (row:Row)=>if (config.deps.isEmpty) true else config.deps.get.contains(getStringCellValue(row.getCell(3))), outputInfraPopulationFile)
Expand Down

0 comments on commit cbc31da

Please sign in to comment.