holoviz / spatialpandas

Pandas extension arrays for spatial/geometric operations
BSD 2-Clause "Simplified" License
308 stars 25 forks source link

Intersection failing tests #152

Closed hoxbro closed 3 months ago

hoxbro commented 3 months ago
from spatialpandas.geometry._algorithms.intersection import segments_intersect

segments_intersect(ax0=1.0, ay0=-33.0, ax1=0.0, ay1=0.0, bx0=0.0, by0=-3e-15, bx1=0.0, by1=-1.0)

Likely a precision error:

image

Figure_1

Another one here:

    ax0=999.9999999999999,
    ay0=0.333333333333333,
    ax1=0.0,  # or any other generated value
    ay1=0.0,
    bx0=1.0,
    by0=0.5,
    bx1=1000.0,
    by1=0.333333333333333,