Skip to content

Commit

Permalink
Merge pull request #332 from Deltares/example/198-traffic-analysis-eq…
Browse files Browse the repository at this point in the history
…uity-prioritarian

Example/198 traffic analysis equity prioritarian
  • Loading branch information
Carsopre authored Mar 13, 2024
2 parents 049cfb8 + a31da98 commit 4ca719c
Show file tree
Hide file tree
Showing 24 changed files with 2,216 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/data/equity_analysis/analyses.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = pontianak

[analysis1]
name = optimal route origin destination
analysis = optimal_route_origin_destination
weighing = length
save_traffic = True #True if you want to record the traffic in each edge
equity_weight = region_weight.csv #equity-weighted factors for each region, should be stored in static/network. Note that 'region' and 'region_var' should present in network.ini
save_gpkg = True
save_csv = True

43 changes: 43 additions & 0 deletions examples/data/equity_analysis/network.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[project]
name = pontianak_newra2ce

[network]
directed = False
source = OSM download
primary_file = None
diversion_file = Pontianak_4326_buffer_0_025deg.geojson
file_id = None
polygon = Pontianak_4326.geojson
network_type = drive
road_types = motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link
save_gpkg = True

[origins_destinations]
origins = origins_points.shp # Must be in the static/network folder, belongs to this analysis
destinations = osm_health_point.shp # gis_osm_pois_pontianak.shp # Must be in the static/network folder, belongs to this analysis
origins_names = A
destinations_names = B
id_name_origin_destination = OBJECTID #default if origins is a tif file = OBJECTID
origin_count = values #necessary if traffic on each edge would be recorded in optimal_route_origin_destination
origin_out_fraction = 1
category = category
region = region.shp #necessary for distributional / equity analysis
region_var = DESA #necessary for distributional / equity analysis

[hazard]
hazard_map = None
hazard_id = 1
hazard_field_name = waterdepth
aggregate_wl = max
hazard_crs = None #EPSG:4326

[cleanup]
snapping_threshold = None
pruning_threshold = None
segmentation_length = None
merge_lines = None
ignore_intersections = None


[isolation]
locations = None

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ISO-8859-1
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions examples/data/equity_analysis/static/network/region.cpg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
36 changes: 36 additions & 0 deletions examples/data/equity_analysis/static/network/region.geojson

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/data/equity_analysis/static/network/region.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
26 changes: 26 additions & 0 deletions examples/data/equity_analysis/static/network/region.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="3.22.10-Bia?owie?a">
<identifier></identifier>
<parentidentifier></parentidentifier>
<language></language>
<type>dataset</type>
<title></title>
<abstract></abstract>
<links/>
<fees></fees>
<encoding></encoding>
<crs>
<spatialrefsys>
<wkt></wkt>
<proj4></proj4>
<srsid>0</srsid>
<srid>0</srid>
<authid></authid>
<description></description>
<projectionacronym></projectionacronym>
<ellipsoidacronym></ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</crs>
<extent/>
</qgis>
Binary file not shown.
Binary file not shown.
30 changes: 30 additions & 0 deletions examples/data/equity_analysis/static/network/region_weight.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
region;weight
SUNGAI JAWI;0.441758257
PARIT TOKAYA;0.153340981
BATU LAYANG;1.160449143
SUNGAI BANGKONG;0.423991044
BENUA MELAYU DARAT;0.992460846
SIANTAN HULU;1.469602714
BANSIR LAUT;0.032957022
SIANTAN TENGAH;3.483517402
SUNGAI JAWI DALAM;1.272954571
AKCAYA;0.380242685
KOTA BARU;0.536064278
SIANTAN HILIR;3.123689118
PAL LIMA;0.79156505
SUNGAI BELIUNG;0.94229261
BENUA MELAYU LAUT;2.444064492
BANSIR DARAT;0.012661925
TANJUNG HILIR;3.602120813
BANJAR SERASAN;2.444064492
DARAT SEKIP;2.505429248
DALAM BUGIS;1.32424381
TANJUNG HULU;0.127506152
SAIGON;0.254129908
BANGKA BELITUNG DARAT;0.069727254
SUNGAI JAWI LUAR;2.748538215
TENGAH;0.449771849
BANGKA BELITUNG LAUT;0.345899041
MARIANA;0.463968963
PARIT MAYOR;0.385813932
TAMBELAN SAMPIT;6.964804054
Empty file.
2,047 changes: 2,047 additions & 0 deletions examples/example_equity_analysis.ipynb

Large diffs are not rendered by default.

0 comments on commit 4ca719c

Please sign in to comment.