Skip to content

Commit c306c40

Browse files
committed
update readme
1 parent 40e1e3f commit c306c40

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ $ spatialjoin < example.txt
6060
[...]
6161
```
6262

63+
You can also give the input file as an argument.
64+
6365
### Custom IDs
6466

6567
You may specify a custom geometry string ID, outputted instead of the line number, before the WKT, separated by a tab:
@@ -84,9 +86,30 @@ point9 intersects polygon1
8486
[...]
8587
```
8688

89+
### DE9-IM joins
90+
91+
To calculate the DE9-IM matrix between intersecting geometries, use the `--de9im` option:
92+
93+
```
94+
$ spatialjoin --de9im < example.txt
95+
9 0FFFFF212 1
96+
1 0F2FF1FF2 9
97+
9 0FFFFF212 2
98+
2 0F2FF1FF2 9
99+
9 0FFFFF212 3
100+
3 0F2FF1FF2 9
101+
[...]
102+
```
103+
87104
### Non-self joins
88105

89-
You may specify a "side" (either 0 or 1) per geometry, as an additional tab-separated field after the custom geometry ID. If sides are defined, only geometries from different sides are compared. Note that a custom geometry ID *must* be given, otherwise the side will be interpreted as the custom geometry ID. The default side is 0.
106+
For non-self joins, you can give the left and right side as two file arguments:
107+
108+
```
109+
$ spatialjoin example_left.txt example_right.txt
110+
```
111+
112+
Alternatively, you may specify a "side" (either 0 or 1) per geometry, as an additional tab-separated field after the custom geometry ID. If sides are defined, only geometries from different sides are compared. Note that a custom geometry ID *must* be given, otherwise the side will be interpreted as the custom geometry ID. The default side is 0.
90113

91114
```
92115
$ cat example_nonself.txt

0 commit comments

Comments
 (0)