PointNoiseMap extends JdbcNoiseMap { @Override public void initialize(Connection connection, ProgressVisitor progression) throws SQLException { super.initialize(connection, progression); if(propagationProcessDataFactory != null) { propagationProcessDataFactory.initialize(connection, this); } } PointNoiseMap(String buildingsTableName, String sourcesTableName, String receiverTableName); void setComputeRaysOutFactory(IComputeRaysOutFactory computeRaysOutFactory); void setPropagationProcessDataFactory(PropagationProcessDataFactory propagationProcessDataFactory); int getThreadCount(); void setThreadCount(int threadCount); PropagationProcessData prepareCell(Connection connection,int cellI, int cellJ,
                                              ProgressVisitor progression, Set<Long> skipReceivers); Map<CellIndex, Integer> searchPopulatedCells(Connection connection); IComputeRaysOut evaluateCell(Connection connection, int cellI, int cellJ,
                                        ProgressVisitor progression, Set<Long> skipReceivers); @Override void initialize(Connection connection, ProgressVisitor progression);  }
@Test public void testNoiseMapBuilding() throws Exception { try(Statement st = connection.createStatement()) { st.execute(String.format("CALL SHPREAD('%s', 'LANDCOVER2000')", PointNoiseMapTest.class.getResource("landcover2000.shp").getFile())); st.execute(getRunScriptRes("scene_with_landcover.sql")); TriangleNoiseMap noisemap = new TriangleNoiseMap("BUILDINGS", "ROADS_GEOM"); noisemap.setReceiverHasAbsoluteZCoordinates(false); noisemap.setSourceHasAbsoluteZCoordinates(false); noisemap.setHeightField("HEIGHT"); noisemap.initialize(connection, new EmptyProgressVisitor()); AtomicInteger pk = new AtomicInteger(0); for(int i=0; i < noisemap.getGridDim(); i++) { for(int j=0; j < noisemap.getGridDim(); j++) { noisemap.generateReceivers(connection, i, j, "NM_RECEIVERS", "TRIANGLES", pk); } } assertNotSame(0, pk.get()); } }