Skip to content

Small changes to docs for polygonize #481

Small changes to docs for polygonize

Small changes to docs for polygonize #481

Triggered via pull request May 15, 2024 16:13
Status Success
Total duration 9m 26s
Artifacts

CI.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

16 warnings
Julia 1 - ubuntu-latest - x64 - pull_request
Julia depot registries already exist. Skipping restoring of cached registries to avoid potential merge conflicts when updating. Please ensure that `julia-actions/cache` precedes any workflow steps which add registries.
Julia 1 - ubuntu-latest - x64 - pull_request
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Julia 1 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia 1.9 - ubuntu-latest - x64 - pull_request
Julia depot registries already exist. Skipping restoring of cached registries to avoid potential merge conflicts when updating. Please ensure that `julia-actions/cache` precedes any workflow steps which add registries.
Julia 1.9 - ubuntu-latest - x64 - pull_request
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Julia 1.9 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
duplicate docs found for 'GeometryOps.reproject' in src/api.md:59-61 ```@autodocs Modules = [GeometryOps] ```
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/experiments/accurate_accumulators.md:7-14 ```@example accurate import GeometryOps as GO, GeoInterface as GI using GeoJSON using AccurateArithmetic using NaturalEarth all_adm0 = naturalearth("admin_0_countries", 10) ``` exception = ArgumentError: Package NaturalEarth not found in current path. - Run `import Pkg; Pkg.add("NaturalEarth")` to install the NaturalEarth package. Stacktrace: [1] macro expansion @ ./loading.jl:1772 [inlined] [2] macro expansion @ ./lock.jl:267 [inlined] [3] __require(into::Module, mod::Symbol) @ Base ./loading.jl:1753 [4] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [5] invoke_in_world @ ./essentials.jl:923 [inlined] [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:1746 [7] eval @ ./boot.jl:385 [inlined] [8] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [9] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [10] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [11] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [12] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [13] with_logger @ ./logging.jl:627 [inlined] [14] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [15] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/experiments/accurate_accumulators.md:15-17 ```@example accurate GO.area(all_adm0) ``` exception = UndefVarError: `all_adm0` not defined Stacktrace: [1] top-level scope @ accurate_accumulators.md:16 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/experiments/accurate_accumulators.md:18-20 ```@example accurate AccurateArithmetic.sum_oro(GO.area.(all_adm0.geometry)) ``` exception = UndefVarError: `all_adm0` not defined Stacktrace: [1] top-level scope @ accurate_accumulators.md:19 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/experiments/accurate_accumulators.md:22-24 ```@example accurate AccurateArithmetic.sum_kbn(GO.area.(all_adm0.geometry)) ``` exception = UndefVarError: `all_adm0` not defined Stacktrace: [1] top-level scope @ accurate_accumulators.md:23 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/experiments/accurate_accumulators.md:26-28 ```@example accurate GI.Polygon.(GO.flatten(Union{GI.LineStringTrait, GI.LinearRingTrait}, all_adm0) |> collect .|> x -> [x]) .|> GO.signed_area |> sum ``` exception = UndefVarError: `all_adm0` not defined Stacktrace: [1] top-level scope @ accurate_accumulators.md:27 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/experiments/accurate_accumulators.md:30-32 ```@example accurate GI.Polygon.(GO.flatten(Union{GI.LineStringTrait, GI.LinearRingTrait}, all_adm0) |> collect .|> x -> [x]) .|> GO.signed_area |> sum_oro ``` exception = UndefVarError: `all_adm0` not defined Stacktrace: [1] top-level scope @ accurate_accumulators.md:31 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
failed to run `@example` block in src/source/methods/barycentric.md:32-100 ```@example barycentric using GeometryOps using GeometryOps.GeometryBasics using Makie using CairoMakie # Define a polygon polygon_points = Point3f[ (0.03, 0.05, 0.00), (0.07, 0.04, 0.02), (0.10, 0.04, 0.04), (0.14, 0.04, 0.06), (0.17, 0.07, 0.08), (0.20, 0.09, 0.10), (0.22, 0.11, 0.12), (0.25, 0.11, 0.14), (0.27, 0.10, 0.16), (0.30, 0.07, 0.18), (0.31, 0.04, 0.20), (0.34, 0.03, 0.22), (0.37, 0.02, 0.24), (0.40, 0.03, 0.26), (0.42, 0.04, 0.28), (0.44, 0.07, 0.30), (0.45, 0.10, 0.32), (0.46, 0.13, 0.34), (0.46, 0.19, 0.36), (0.47, 0.26, 0.38), (0.47, 0.31, 0.40), (0.47, 0.35, 0.42), (0.45, 0.37, 0.44), (0.41, 0.38, 0.46), (0.38, 0.37, 0.48), (0.35, 0.36, 0.50), (0.32, 0.35, 0.52), (0.30, 0.37, 0.54), (0.28, 0.39, 0.56), (0.25, 0.40, 0.58), (0.23, 0.39, 0.60), (0.21, 0.37, 0.62), (0.21, 0.34, 0.64), (0.23, 0.32, 0.66), (0.24, 0.29, 0.68), (0.27, 0.24, 0.70), (0.29, 0.21, 0.72), (0.29, 0.18, 0.74), (0.26, 0.16, 0.76), (0.24, 0.17, 0.78), (0.23, 0.19, 0.80), (0.24, 0.22, 0.82), (0.24, 0.25, 0.84), (0.21, 0.26, 0.86), (0.17, 0.26, 0.88), (0.12, 0.24, 0.90), (0.07, 0.20, 0.92), (0.03, 0.15, 0.94), (0.01, 0.10, 0.97), (0.02, 0.07, 1.00)] # Plot it! # First, we'll plot the polygon using Makie's rendering: f, a1, p1 = poly( polygon_points; color = last.(polygon_points), colormap = cgrad(:jet, 18; categorical = true), axis = (; type = Axis, aspect = DataAspect(), title = "Makie mesh based polygon rendering", subtitle = "CairoMakie" ), figure = (; size = (800, 400),) ) hidedecorations!(a1) ext = GeometryOps.GI.Extent(X = (0, 0.5), Y = (0, 0.42)) a2 = Axis( f[1, 2], aspect = DataAspect(), title = "Barycentric coordinate based polygon rendering", subtitle = "GeometryOps", limits = (ext.X, ext.Y) ) hidedecorations!(a2) p2box = poly!( # Now, we plot a cropping rectangle around the axis so we only show the polygon a2, GeometryOps.GeometryBasics.Polygon( # This is a rectangle with an internal hole shaped like the polygon. Point2f[(ext.X[1], ext.Y[1]), (ext.X[2], ext.Y[1]), (ext.X[2], ext.Y[2]), (ext.X[1], ext.Y[2]), (ext.X[1], ext.Y[1])], # exterior [reverse(Point2f.(polygon_points))] # hole ); color = :white, xautolimits = false, yautolimits = false ) cb = Colorbar(f[2, :], p1.plots[1]; vertical = false, flipaxis = true) # Finally, we perform barycentric interpolation on a grid, xrange = LinRange(ext.X..., 400) yrange = LinRange(ext.Y..., 400) @time mean_values = barycentric_interpolate.( (MeanValue(),), # The barycentric coordinate algorithm (MeanValue is the only one for now) (Point2f.(polygon_points),), # The polygon points as `Point2f` (last.(polygon_points,),), # The values per polygon point - can be anything which supports addition and division Point2f.(xrange, yrange') # The points at which to interpolate ) # and render! hm = heatmap!(a2, xrange, yrange, mean_values; colormap = p1.colormap, colorrange = p1.plots[1].colorrange[], xautolimits = false, yautolimits = false) translate!(hm, 0, 0, -1) # translate the heatmap behind the cropping polygon! f # finally, display the figure ``` exception = MethodError: no method matching poly_convert(::Float32, ::Tuple{typeof(identity), typeof(identity)}) Closest candidates are: poly_convert(!Matched::GeometryBasics.Polygon, ::Any) @ Makie ~/.julia/packages/Makie/eziUH/src/basic_recipes/poly.jl:85 poly_convert(!Matched::GeometryBasics.AbstractGeometry{N, T}, ::Any) where {N, T} @ Makie ~/.julia/packages/Makie/eziUH/src/basic_recipes/poly.jl:66 poly_convert(!Matched::GeometryBasics.Mesh, ::Any) @ Makie ~/.julia/packages/Makie/eziUH/src/basic_recipes/poly.jl:83 ... Stacktrace: [1] macro expansion @ ~/.julia/packages/StaticArrays/EHHaF/src/broadcast.jl:135 [inlined] [2] __broadcast @ ~/.julia/packages/StaticArrays/EHHaF/src/broadcast.jl:123 [inlined] [3] _broadcast @ ~/.julia/packages/StaticArr
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
duplicate docs found for 'apply' in `@docs` block in src/source/primitives.md:41-48 ```@docs apply applyreduce GeometryOps.unwrap GeometryOps.flatten GeometryOps.reconstruct GeometryOps.rebuild ```
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
duplicate docs found for 'applyreduce' in `@docs` block in src/source/primitives.md:41-48 ```@docs apply applyreduce GeometryOps.unwrap GeometryOps.flatten GeometryOps.reconstruct GeometryOps.rebuild ```