Skip to content

Commit da802ec

Browse files
committed
Fix docs refs and close tutorial ring
1 parent 3646f6c commit da802ec

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/src/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@ Modules = [GeometryOps]
6565

6666
```@autodocs
6767
Modules = [GeometryOpsCore]
68+
Order = [:type]
6869
```

docs/src/tutorials/creating_geometry.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ This time we get a bit more fancy with point creation.
8080
````@example creating_geometry
8181
r = 2;
8282
k = 10;
83-
ϴ = 0:0.01:2pi;
83+
ϴ = LinRange(0, 2pi, 629);
8484
x = r .* (k + 1) .* cos.(ϴ) .- r .* cos.((k + 1) .* ϴ);
8585
y = r .* (k + 1) .* sin.(ϴ) .- r .* sin.((k + 1) .* ϴ);
8686
lines = GI.LineString(GI.Point.(zip(x,y)));
@@ -94,7 +94,8 @@ A `LinearRing` is simply a `LineString` with the same beginning and endpoint, i.
9494
A `LinearRing` is composed of a series of points.
9595

9696
````@example creating_geometry
97-
ring1 = GI.LinearRing(GI.getpoint(lines));
97+
ring1_points = collect(GI.getpoint(lines))
98+
ring1 = GI.LinearRing(vcat(ring1_points, [first(ring1_points)]));
9899
````
99100

100101
Now, let's make the `LinearRing` into a `Polygon`.

src/transformations/transform.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Points are passed to `f` as an `SVector`, so `f` can be a plain function
3030
or a callable transform from CoordinateTransformations.jl, such as
3131
`Translation`, `LinearMap`, or a composition of transforms.
3232
33-
Because this uses [`apply`](@ref) internally, it works with polygons,
33+
Because this uses [`apply`](@ref Primitive-functions) internally, it works with polygons,
3434
multipolygons, arrays of geometries, feature collections, and tables.
3535
3636
`SVector` is also a valid GeoInterface.jl point, so will

0 commit comments

Comments
 (0)