Skip to content

Commit 1e929e3

Browse files
committed
Format examples
1 parent 0754533 commit 1e929e3

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

README.rst

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,41 @@ Args4J:
1313

1414
Examples:
1515
---------
16-
Geometry input with -geom argument
17-
>>> geom buffer -g "POINT (10 10)" -d 2
18-
19-
Geometry input using Standard input stream
20-
>>> echo "POINT (10 10)" | geom buffer -d 20
21-
22-
Piping results of one geometry command to another
23-
>>> geom buffer -g "POINT (10 10)" -d 2 | geom envelope
24-
25-
Contains
26-
>>> echo "POINT (0 0)" | geom buffer -d 10 | geom contains -o "POINT (5 5)"
27-
true
28-
>>> echo "POINT (0 0)" | geom buffer -d 10 | geom contains -o "POINT (25 25)"
29-
false
30-
31-
Buffer a point, get coordinates, draw coordinates to image, and open the image
32-
>>> echo "POINT (10 10)" | geom buffer -d 5 | geom coordinates | geom draw && open image.png
33-
34-
List available geometry commands:
35-
>>> geom list
36-
list
37-
buffer
38-
centroid
39-
contains
40-
convexHull
41-
draw
42-
difference
43-
envelope
44-
intersection
16+
Geometry input with -geom argument::
17+
18+
>>> geom buffer -g "POINT (10 10)" -d 2
19+
20+
Geometry input using Standard input stream::
21+
22+
>>> echo "POINT (10 10)" | geom buffer -d 20
23+
24+
Piping results of one geometry command to another::
25+
26+
>>> geom buffer -g "POINT (10 10)" -d 2 | geom envelope
27+
28+
Contains::
29+
30+
>>> echo "POINT (0 0)" | geom buffer -d 10 | geom contains -o "POINT (5 5)"
31+
true
32+
>>> echo "POINT (0 0)" | geom buffer -d 10 | geom contains -o "POINT (25 25)"
33+
false
34+
35+
Buffer a point, get coordinates, draw coordinates to image, and open the image::
36+
37+
>>> echo "POINT (10 10)" | geom buffer -d 5 | geom coordinates | geom draw && open image.png
38+
39+
List available geometry commands::
40+
41+
>>> geom list
42+
list
43+
buffer
44+
centroid
45+
contains
46+
convexHull
47+
draw
48+
difference
49+
envelope
50+
intersection
4551

4652
Build
4753
-----

0 commit comments

Comments
 (0)