You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/user-doc.md
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ The database used in this repository is:
50
50
-`user`: `postgres`
51
51
-`password`: `postgres`
52
52
53
+
These information can be changed by modifying the [.env](../.env) file directly.
54
+
53
55
### Common model
54
56
55
57
To compare OSM and OMF data, a common model was created (for transportation data), mainly based on the OMF transportation model. The model is as follows:
@@ -106,7 +108,7 @@ CREATE SCHEMA IF NOT EXISTS omf;
106
108
CREATESCHEMAIF NOT EXISTS results;
107
109
```
108
110
109
-
*Note*: It is sufficient to create the database, as in the [data_integration.py](../Python/Assessment/data_integration.py#L24), these SQL commands are executed (inside the `utils.initialisePostgreSQL(connection)` function).
111
+
*Note*: It is sufficient to create the database, as in the [data_integration.py](../src/Assessment/data_integration.py#L24), these SQL commands are executed (inside the `utils.initialisePostgreSQL()` function).
110
112
111
113
## Python
112
114
@@ -214,7 +216,7 @@ In the Python files, the database connection can take one of three forms:
214
216
215
217
-`initialiseDuckDB()`: Initializes DuckDB and connects it to a PostgreSQL database.
216
218
217
-
These functions are defined in the [utils.py](../Python/Utils/utils.py) script.
219
+
These functions are defined in the [utils.py](../src/Utils/utils.py) script.
218
220
They require one argument, a path to a `.env` file. If no path is provided, the default path will be:
219
221
220
222
```python
@@ -242,14 +244,14 @@ The same environment file is used for the data integration, quality assessment,
242
244
243
245
## Download and Process Data
244
246
245
-
Data corresponding to the chosen areas can be downloaded using the [data_integration.py](../Python/Assessment/data_integration.py) script.
247
+
Data corresponding to the chosen areas can be downloaded using the [data_integration.py](../src/Assessment/data_integration.py) script.
246
248
Certain attribute values in this file can be modified, such as:
247
249
248
-
-[`createBoundingBoxTable`](../Python/Assessment/data_integration.py#L19): If `True`, it will create the bounding box table, even if it has already been created. Defaults to `True`.
250
+
-[`createBoundingBoxTable`](../src/Assessment/data_integration.py#L20): If `True`, it will create the bounding box table, even if it has already been created. Defaults to `True`.
249
251
250
-
-[`skip<theme>Check`](../Python/Assessment/data_integration.py#L57): If `True`, it will recreate all layers of each area for the specified theme (one of `Graph`, `Building`, or `Place`). Otherwise, layers will be created only if they have not been created yet. Defaults to `False`.
252
+
-[`skip<theme>Check`](../src/Assessment/data_integration.py#L58): If `True`, it will recreate all layers of each area for the specified theme (one of `Graph`, `Building`, or `Place`). Otherwise, layers will be created only if they have not been created yet. Defaults to `False`.
251
253
252
-
-[`ox.settings.overpass_settings`](../Python/Assessment/data_integration.py#L37): This setting is used to limit OSM data to a specific date. The default date is `2024-06-07T23:59:59Z`. This date can be changed if desired, but it is preferable to select a date approximately the same as the one used by the `overturemaps.py` tool (the default date corresponds to the 2024-06-13-beta.1 release).
254
+
-[`ox.settings.overpass_settings`](../src/Assessment/data_integration.py#L38): This setting is used to limit OSM data to a specific date. The default date is `2024-06-07T23:59:59Z`. This date can be changed if desired, but it is preferable to select a date approximately the same as the one used by the `overturemaps.py` tool (the default date corresponds to the 2024-06-13-beta.1 release).
253
255
254
256
Normally, no additional changes should be necessary (such as altering template names for the layer, schema names, or the path to the bbox file, etc.).
255
257
If changes are required, they should be made consistently across the different files.
@@ -265,15 +267,15 @@ Or directly by running the script in an IDE of choice.
265
267
## Quality Assessment Criteria
266
268
267
269
Once the data has been downloaded, the necessary scripts can be run to assess the quality of the different layers.
268
-
Currently, the criteria are focused on graph data. The Python script is [quality_assessment.py](../Python/Assessment/quality_assessment.py), that uses the function in the [quality.py](../Python/Assessment/quality.py) script.
270
+
Currently, the criteria are focused on graph data. The Python script is [quality_assessment.py](../src/Assessment/quality_assessment.py), that uses the function in the [quality.py](../src/Assessment/quality.py) script.
269
271
270
272
Certain attribute values can be modified, such as:
271
273
272
-
-[`fileName`](../Python/Assessment/quality_assessment.py#L21): The name of the markdown file that will be produced. Defaults to `Automatic_result.md`.
274
+
-[`fileName`](../src/Assessment/quality_assessment.py#L20): The name of the markdown file that will be produced. Defaults to `Automatic_result.md`.
273
275
274
-
-[`pathSave`](../Python/Assessment/quality_assessment.py#L23): The path to save the markdown file. If the folder does not exist, an error will be returned. Defaults to `./Data/Results/<fileName>`, where `<fileName>` is the previously mentioned variable.
276
+
-[`pathSave`](../src/Assessment/quality_assessment.py#L22): The path to save the markdown file. If the folder does not exist, an error will be returned. Defaults to `./Data/Results/<fileName>`, where `<fileName>` is the previously mentioned variable.
275
277
276
-
-[`bounding_box_table`](../Python/Assessment/quality_assessment.py#60): The name of the bounding box table in the public schema of the database. Defaults to `bounding_box`.
278
+
-[`bounding_box_table`](../src/Assessment/quality_assessment.py#L59): The name of the bounding box table in the public schema of the database. Defaults to `bounding_box`.
277
279
278
280
Other variables can also be changed, but this is not recommended, especially since changes would need to be updated in the dashboard as well.
279
281
@@ -300,4 +302,4 @@ Then, open your browser and navigate to [http://127.0.0.1:8000](http://127.0.0.1
300
302
301
303
## Use the Application
302
304
303
-
To use the application, refer to the `Help` panel within the application or consult the [help.md](../Python/GeoDataCompare/help.md) file directly.
305
+
To use the application, refer to the `Help` panel within the application or consult the [help.md](../src/GeoDataCompare/help.md) file directly.
It uses the file containing the bounding box: [bboxs.json](./Data/bboxs.json).
123
123
Refer to the [user documentation](./Documentation/user-doc.md#adding-areas) for more information about how to add new areas.
124
-
You will also find information about how to configurate the [data_integration.py](Python/Assessment/data_integration.py/) file for forcing the data download or preventing the bounding box table to be recreated again.
124
+
You will also find information about how to configurate the [data_integration.py](src/Assessment/data_integration.py/) file for forcing the data download or preventing the bounding box table to be recreated again.
125
125
126
126
## Quality assessment
127
127
128
128
This script needs to be run after the data integration process, but before running the DashBoard.
129
-
It is contained in the [quality_assessment.py](./Python/Assessment/quality_assessment.py)
129
+
It is contained in the [quality_assessment.py](./src/Assessment/quality_assessment.py)
0 commit comments