Skip to content

within? relation doesn't seem to be working with decimal coordinates #4

@sukhendu

Description

@sukhendu

user=> (let [x (point (c 92 8)) pp (polygon (linear-ring [(c 85 0), (c 90 10), (c 100 0), (c 85 0)]) nil)] (cljts.relation/touches? x pp))
true
;; above coordinates divided by 100
user=> (let [x (point (c 0.92 0.08)) pp (polygon (linear-ring [(c 0.85 0.0), (c 0.90 0.10), (c 1.0 0.0), (c 0.85 0.0)]) nil)] (cljts.relation/touches? x pp))
false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions