Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Vancouver polys demo #169

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

[WIP] Vancouver polys demo #169

wants to merge 7 commits into from

Conversation

asinghvi17
Copy link
Member

This is used as a benchmark for GEOS so I figured we should get in the game as well.

The branch is based off my PolygonContents PR, but still fails with a polynode indexing error?


ERROR: BoundsError: attempt to access 71-element Vector{GeometryOps.PolyNode{Float64}} at index [0]
Stacktrace:
  [1] getindex
    @ ./essentials.jl:13 [inlined]
  [2] _flag_ent_exit!(::Type{…}, ::GeoInterface.LinearRingTrait, poly::GeoInterface.Wrappers.LinearRing{…}, pt_list::Vector{…}, delay_cross_f::typeof(GeometryOps._union_delay_cross_f), delay_bounce_f::Base.Fix2{…}; exact::GeometryOps._True)
    @ GeometryOps ~/.julia/dev/GeometryOps/src/methods/clipping/clipping_processor.jl:463
  [3] _flag_ent_exit!
    @ ~/.julia/dev/GeometryOps/src/methods/clipping/clipping_processor.jl:448 [inlined]
  [4] _build_ab_list(::Type{…}, poly_a::GeoInterface.Wrappers.LinearRing{…}, poly_b::GeoInterface.Wrappers.LinearRing{…}, delay_cross_f::typeof(GeometryOps._union_delay_cross_f), delay_bounce_f::typeof(GeometryOps._union_delay_bounce_f); exact::GeometryOps._True)
    @ GeometryOps ~/.julia/dev/GeometryOps/src/methods/clipping/clipping_processor.jl:61
  [5] _build_ab_list
    @ ~/.julia/dev/GeometryOps/src/methods/clipping/clipping_processor.jl:51 [inlined]
  [6] _union(::GeometryOps.TraitTarget{…}, ::Type{…}, ::GeoInterface.PolygonTrait, poly_a::GeoInterface.Wrappers.Polygon{…}, ::GeoInterface.PolygonTrait, poly_b::GeoInterface.Wrappers.Polygon{…}; exact::GeometryOps._True, kwargs::@Kwargs{})
    @ GeometryOps ~/.julia/dev/GeometryOps/src/methods/clipping/union.jl:57
  [7] _union
    @ ~/.julia/dev/GeometryOps/src/methods/clipping/union.jl:47 [inlined]
  [8] #union#168
    @ ~/.julia/dev/GeometryOps/src/methods/clipping/union.jl:38 [inlined]
  [9] union
    @ ~/.julia/dev/GeometryOps/src/methods/clipping/union.jl:35 [inlined]
 [10] _union(target::GeometryOps.TraitTarget{…}, ::Type{…}, ::GeoInterface.PolygonTrait, poly_a::GeoInterface.Wrappers.Polygon{…}, ::GeoInterface.MultiPolygonTrait, multipoly_b::GeoInterface.Wrappers.MultiPolygon{…}; fix_multipoly::Nothing, kwargs::@Kwargs{…})
    @ GeometryOps ~/.julia/dev/GeometryOps/src/methods/clipping/union.jl:224
 [11] union(geom_a::GeoInterface.Wrappers.Polygon{…}, geom_b::GeoInterface.Wrappers.MultiPolygon{…}, ::Type{…}; target::GeometryOps.TraitTarget{…}, kwargs::@Kwargs{…})
    @ GeometryOps ~/.julia/dev/GeometryOps/src/methods/clipping/union.jl:38

@asinghvi17
Copy link
Member Author

Clipping tracing hit every point - clipping error. Please open an issue with polygons: [[[891106.625, 639648.8750000037], [891103.0629999993, 639693.0000000084], [891110.8749999995, 639725.8129999982], [891171.9379999998, 639788.3750000019], [891244.5000000002, 639837.4380000001], [891342.8749999995, 639873.5000000019], [891293.813, 639909.5629999992], [891218.6879999987, 639954.8130000001], [891176.8750000002, 639993.625], [891169.6879999992, 640091.063000002], [891200.2499999991, 640176.9379999992], [891274.1879999994, 640286.0629999964], [891362.0000000007, 640373.6879999992], [891438.8749999993, 640404.4999999972], [891496.0000000002, 640413.1250000019], [891567.25, 640406.1879999992], [891628.5000000009, 640376.563000001], [891768.3750000005, 640352.7499999944], [891935.0629999988, 640363.8750000019], [891994.5629999989, 640363.3750000028], [892129.6879999997, 640349.7500000028], [892269.5629999998, 640325.8750000056], [892369.4379999992, 640325.7500000009], [892476.8129999997, 640341.3750000009], [892558.5629999989, 640371.9999999981], [892630.3129999992, 640390.0630000001], [892725.75, 640403.1879999992], [892859.6879999996, 640430.688000002], [892981.8130000001, 640463.6880000001], [893108.0629999992, 640470.5000000009], [893234.2499999995, 640477.1880000001], [893339.9379999992, 640470.8749999991], [893348.9379999993, 640398.3750000037], [893434.6249999991, 640299.5629999964], [893466.3750000002, 640235.1880000001], [893492.6249999992, 640137.8750000019], [893548.6879999986, 639992.1879999964], [893561.6250000005, 639940.625], [893546.4379999989, 639800.9999999944], [893525.1879999992, 639702.625], [893510.0629999986, 639672.1879999973], [893512.7500000005, 639583.9379999992], [893583.8749999992, 639469.8130000001], [893651.1879999997, 639399.875], [893736.7500000005, 639303.0629999982], [893788.6879999996, 639182.6879999992], [893824.3749999992, 639083.0000000019], [893876.5629999985, 638977.625], [893903.4999999995, 638903.3750000019], [893904.1249999997, 638834.2500000019], [893891.8129999994, 638717.4379999973], [893871.7499999992, 638573.0629999964], [893876.7499999994, 638483.6880000038], [893873.749999999, 638385.6249999916], [893862.1879999998, 638354.0630000057], [893844.3749999998, 638306.6250000028], [893828.0629999987, 638223.188000001], [893832.1250000002, 638193.0000000009], [893808.3750000009, 638185.9380000001], [893755.125, 638149.0000000028], [893689.1879999998, 638071.6879999982], [893654.1249999994, 637998.9999999991], [893601.1249999995, 637965.1250000065], [893537.1250000005, 637966.7500000019], [893499.438, 637980.3129999964], [893408.3749999997, 638043.2499999916], [893314.4379999994, 638086.2500000009], [893205.8750000003, 638109.688000001], [893117.9999999993, 638111.375], [892998.5000000007, 638074.3130000038], [892802.5000000006, 638017.3130000038], [892640.3749999993, 637990.9999999935], [892562.3749999999, 638001.188000001], [892475.4379999989, 638040.9379999973], [892367.9379999987, 638107.4999999972], [892277.6879999987, 638206.4380000001], [892245.4999999998, 638247.8750000028], [892220.6250000002, 638348.063000002], [892214.5629999989, 638394.4380000047], [892212.5000000006, 638411.4999999981], [892125.5629999986, 638577.4379999982], [892061.187999999, 638676.2499999981], [892021.3750000006, 638702.0000000009], [891959.8749999994, 638714.5629999973], [891936.1879999988, 638722.5629999992], [891927.0629999989, 638740.0000000056], [891930.2500000007, 638775.875], [892003.5629999995, 638855.0630000001], [892076.3749999992, 638912.0629999982], [892108.6879999988, 638966.9379999982], [892120.5000000008, 639063.688000001], [892103.1879999996, 639135.563000002], [892070.6250000007, 639168.9379999992], [891986.1249999995, 639211.5], [891890.1250000003, 639280.5629999992], [891813.3129999985, 639350.9379999982], [891748

but unfortunately the log cuts out here. I'll try to run this locally at some point to get the full log...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant