kartoza / GEEST

Gender Enabling Environments Spatial Tool (GEEST)
https://worldbank.github.io/GEEST/
MIT License
1 stars 2 forks source link

Factor: Active Transport- Subfactor: Location of footpaths (OSM) #47

Open amyburness opened 5 months ago

amyburness commented 5 months ago
[out:xml] [timeout:25];
 {{geocodeArea:Saint Lucia}} -> .area_0;
(
    node["highway"="footway"](area.area_0);
    way["highway"="footway"](area.area_0);
    relation["highway"="footway"](area.area_0);
);
(._;>;);
out body;

This indicator is composed by calculating the average of these four factors. First, the territory needs to be divided into 100m x 100m rasters.

  1. Footpaths (measured by availability/presence per raster) • 0: No footpaths • 3: 1 footpath • 5: 2 or more footpaths
carolinamayh commented 4 months ago

Similar to Women's Travel Patterns, Active Transport is assessed by evaluating several subfactors, including the location of footpaths. The final score for Active Transport should be the average of the subfactor scores per raster. The tool's interface should not include separate tabs for each subfactor. Please note that the methodology and name for this specific factor, Active Transport, were incorrect in the first version of the GEEST. @osundwajeff

dragosgontariu commented 3 months ago

@osundwajeff @mvmaltitz

error encountered:

2024-08-07T12:09:25 INFO GDAL command: 2024-08-07T12:09:25 INFO gdal_rasterize -l INPUT -a reclass_val -ts 263.0 487.0 -ot Float32 -of GTiff C:/Users/Dragos/AppData/Local/Temp/processing_YZEcFO/525bd6a5d11442ae80a180dadb0f12dc/INPUT.gpkg ATcycle_paths_lines.tif 2024-08-07T12:09:25 INFO GDAL command output: 2024-08-07T12:09:25 CRITICAL Process returned error code 1 2024-08-07T12:09:25 INFO Results: {'OUTPUT': 'ATcycle_paths_lines.tif'} 2024-08-07T12:09:27 INFO Results: {'OUTPUT': 'output_8bb027b8_0234_40ad_bb3d_b0f9e7a42ded'} 2024-08-07T12:09:27 CRITICAL ERROR 1: Failed to find field reclass_val on layer INPUT, skipping. 2024-08-07T12:20:28 INFO Results: {'OUTPUT': 'output_ebde8f65_68ff_4f9f_8427_1f44491e0767'} 2024-08-07T12:20:32 INFO Results: {'OUTPUT': 'D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/grid.shp'} 2024-08-07T12:20:33 INFO ogr2ogr D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/roadBuf.shp D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/Scored_roads_cycle_paths_lines.shp -dialect sqlite -sql "SELECT ST_Buffer(geometry, 50.0) AS geometry, FROM """Scored_roads_cycle_paths_lines"""" -f "ESRI Shapefile" 2024-08-07T12:20:33 INFO GDAL command: 2024-08-07T12:20:33 INFO ogr2ogr D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/roadBuf.shp D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/Scored_roads_cycle_paths_lines.shp -dialect sqlite -sql "SELECT ST_Buffer(geometry, 50.0) AS geometry, FROM """Scored_roads_cycle_paths_lines"""" -f "ESRI Shapefile" 2024-08-07T12:20:33 INFO GDAL command output: 2024-08-07T12:20:33 INFO Process completed successfully 2024-08-07T12:20:33 INFO Results: {'OUTPUT': 'D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/roadBuf.shp'} 2024-08-07T12:20:37 INFO Taking destination CRS EPSG:32620 from layer 2024-08-07T12:20:37 INFO Setting output type to MultiPolygon 2024-08-07T12:20:37 INFO Packaging layer 1/1: grid 2024-08-07T12:20:38 INFO Results: {'OUTPUT': 'output_fcc3cfd1_35e4_46f9_bf10_d891b88ebdf2'} 2024-08-07T12:20:48 INFO gdal_rasterize -l INPUT -a reclass_val -ts 263.0 487.0 -ot Float32 -of GTiff C:/Users/Dragos/AppData/Local/Temp/processing_YZEcFO/7c2d727edfaa47899b137421033e3897/INPUT.gpkg AT__cycle_paths_lines.tif 2024-08-07T12:20:48 INFO GDAL command: 2024-08-07T12:20:48 INFO gdal_rasterize -l INPUT -a reclass_val -ts 263.0 487.0 -ot Float32 -of GTiff C:/Users/Dragos/AppData/Local/Temp/processing_YZEcFO/7c2d727edfaa47899b137421033e3897/INPUT.gpkg ATcycle_paths_lines.tif 2024-08-07T12:20:48 INFO GDAL command output: 2024-08-07T12:20:49 CRITICAL Process returned error code 1 2024-08-07T12:20:49 INFO Results: {'OUTPUT': 'ATcycle_paths_lines.tif'} 2024-08-07T12:20:51 INFO Results: {'OUTPUT': 'output_058ee321_32d7_4d2f_9c4d_90fe9eee2d7f'} 2024-08-07T12:20:51 CRITICAL ERROR 1: Failed to find field reclass_val on layer INPUT, skipping.

Traceback (most recent call last): File "C:\Users/Dragos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gender_indicator_tool\gender_indicator_tool.py", line 2430, in walkability grid_result = processing.run('native:creategrid', grid_params) File "C:\PROGRA~1/QGIS 3.32.0/apps/qgis/./python/plugins\processing\tools\general.py", line 106, in run return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context) File "C:\PROGRA~1/QGIS 3.32.0/apps/qgis/./python/plugins\processing\core\Processing.py", line 176, in runAlgorithm ret, results = execute(alg, parameters, context, feedback, catch_exceptions=False) File "C:\PROGRA~1/QGIS 3.32.0/apps/qgis/./python/plugins\processing\gui\AlgorithmExecutor.py", line 70, in execute results, ok = alg.run(parameters, context, feedback, {}, False) _core.QgsProcessingException: Could not create layer D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/grid.shp: Creation of data source failed (OGR error: D:/Munca/WB/Geest/St_Lucia/Testing/07082024//temp/grid.shp is not a directory.)

mvmaltitz commented 3 months ago

Footpaths result:

Image

Image

@dragosgontariu

mvmaltitz commented 2 months ago

@dragosgontariu

The pixels are representative of the input data

Image

dragosgontariu commented 2 months ago

42