Skip to content

Commit

Permalink
Table de synthèse des testes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaguetteD committed Apr 29, 2024
1 parent acb0fcb commit c690806
Show file tree
Hide file tree
Showing 10 changed files with 1,198 additions and 508 deletions.
12 changes: 6 additions & 6 deletions Docs/Input_roads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Roads

NoiseModelling is a tool for producing noise maps. To do so, at different stages of the process, the application needs input data, respecting a strict formalism.

Below we describe the table ``ROADS``, dealing with the roads network.
Below we describe the table ``ROADS``, dealing with the roads network.

The other tables are accessible via the left menu in the ``Input tables & parameters`` section.

Expand All @@ -26,7 +26,7 @@ Table definition
* Type: Geometry
* ``PK`` *
* Description: An identifier (PRIMARY KEY)
* Type: Integer
* Type: Integer
* ``LV_D``, ``LV_E``, ``LV_N``
* Description: Hourly average light vehicle count
* Type: Double
Expand Down Expand Up @@ -73,7 +73,7 @@ Table definition
* Description: Distance to the junction *(in meters)*. When approaching less than 100m from a junction, it is advisable to subdivide the section into 10m pieces and calculate the distance from the centroid of this sub-section to the junction. This allows for a finer calculation.
* Type: Double
* ``JUNC_TYPE``
* Description: Integer defining the type of junction
* Description: Integer defining the type of junction
* ``0`` : None
* ``1`` : A crossing with traffic lights
* ``2`` : A roundabout
Expand All @@ -82,7 +82,7 @@ Table definition
* Description: Slope (in %) of the road section. If the column is not filled in, the ``LINESTRING`` Z-values will be used to calculate the slope and the traffic direction (``WAY`` column) will be force to ``3`` (bi-directional)
* Type: Double
* ``WAY``
* Description: Integer defining the way of the road section.
* Description: Integer defining the way of the road section.
* ``1`` = One way road section and the traffic goes in the same way that the slope definition you have used
* ``2`` = One way road section and the traffic goes in the opposite way that the slope definition you have used
* ``3`` = Bi-directional traffic flow, the flow is split into two components and correct half for uphill and half for downhill
Expand All @@ -97,12 +97,12 @@ Table definition
Geometry modelling
---------------------

In NoiseModelling, road geometries are used as a medium for road noise emission and propagation.
In NoiseModelling, road geometries are used as a medium for road noise emission and propagation.

Emission
~~~~~~~~~~~~~~~~~~~

According to CNOSSOS-EU, emissions from road traffic should be 5cm above the ground.
According to CNOSSOS-EU, emissions from road traffic should be 5cm above the ground.

You can create your own emmission layer or use the dedicated NoiseModelling block called ``Road_Emission_from_Traffic.groovy``. In this script, the table ``ROADS`` is used to create the emission table ``LW_ROADS``. As a consequence, whether or not your roads have a Z value in ``ROADS``, NoiseModelling forces a ``Zsource`` value of 5cm in ``LW_ROADS``.

Expand Down
1 change: 1 addition & 0 deletions noisemodelling-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
<scope>test</scope>
</dependency>


</dependencies>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.locationtech.jts.simplify.TopologyPreservingSimplifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.noise_planet.noisemodelling.jdbc.*;
import java.sql.*;
import java.text.DecimalFormat;
import java.util.*;
Expand Down Expand Up @@ -536,37 +536,5 @@ public void createTable(Connection connection) throws SQLException {
connection.commit();
}

static class Segment {
Coordinate p0;
Coordinate p1;
List<Coordinate> controlPoints = new ArrayList<>();

public Segment(Coordinate p0, Coordinate p1) {
this.p0 = p0;
this.p1 = p1;
}

@Override
public boolean equals(Object obj) {
if(!(obj instanceof Segment)) {
return false;
}
Segment other = (Segment) obj;
return (this.p0.equals(other.p0) && this.p1.equals(other.p1)) ||
(this.p1.equals(other.p0) && this.p0.equals(other.p1));
}

Envelope getEnvelope(){
return new Envelope(p0, p1);
}

public void addControlPoints(Coordinate controlPoint1, Coordinate controlPoint2) {
controlPoints.add(controlPoint1);
controlPoints.add(controlPoint2);
}

public List<Coordinate> getControlPoints() {
return controlPoints;
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public LDENComputeRaysOut.LdenData getLdenData() {

public void insertTrainDirectivity() {
directionAttributes.clear();
directionAttributes.put(0, new LDENPropagationProcessData.OmnidirectionalDirection());
directionAttributes.put(0, new OmnidirectionalDirection());
int i=1;
for(String typeSource : noiseSource) {
directionAttributes.put(i, new RailWayCnossosParameters.RailwayDirectivitySphere(new LineSource(typeSource)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,21 +319,4 @@ public double[] getMaximalSourcePower(int sourceId) {
}
}

public static class OmnidirectionalDirection implements DirectivitySphere {

@Override
public double getAttenuation(double frequency, double phi, double theta) {
return 0;
}

@Override
public double[] getAttenuationArray(double[] frequencies, double phi, double theta) {
return new double[frequencies.length];
}

@Override
public boolean coverFrequency(double frequency) {
return true;
}
}
}
Loading

0 comments on commit c690806

Please sign in to comment.