Skip to content

Commit

Permalink
#2 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre authored Jan 23, 2025
1 parent 495d275 commit c8fc659
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/web/docs/Tools/Shapes.md
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ The tool uses the <SUMO\>/tools/lib/sumonet.py library.

# poly2edgedata.py

Transform polygons with params into edgedata with attributes
Transform polygons with params into edgedata with attributes.
For each polygon a unique edge is selected that gives the best geometrical match.

```
@@ -123,22 +123,24 @@ Further options:
- **--angle-tolerance**: avoid matching if edge and shape angle are too different (default 20 degrees)

!!! note
polygons can be obtained from OSM, shapefiles or geojson with the help of [../
polygons can be obtained from OSM, shapefiles or geojson with the help of [../polyconvert.md]

## patches
Option **--patchfile** loads instructions to modify the matching in special cases.
The following syntax is supported in the patch file (one patch per line):

```
# lines starting with '#' are ignored as comments
# rev overrides the reverse edge of EDGEID to be REVEDGEID
rev EDGEID REVEDGEID
# edg overrides the edge to assign for POLYID to be EDGEID
edg POLYID EDGEID
# dat overrrides the data attribute ATTR for POLYID to take on value VALUE
dat POLYID ATTR VALUE
```

any ID or VALUE may bet set to 'None' to signify that
- a reverse edge should not be assigned
- a polygon should not be mapped
- data should be ignored
polyconvert.md]

0 comments on commit c8fc659

Please sign in to comment.