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

lineIntersect on Polygon has unexpected result #173

Open
jsiedentop opened this issue Feb 27, 2024 · 1 comment
Open

lineIntersect on Polygon has unexpected result #173

jsiedentop opened this issue Feb 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jsiedentop
Copy link
Contributor

lineIntersect on polygons leads to unexpected result. In TurfJs we get all 3 points of the polygon, in TurfDart we only get one Point.

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              -53.57208251953125,
              28.287451910503744
            ],
            [
              -53.33038330078125,
              28.29228897739706
            ],
            [
              -53.34136962890625,
              28.430052892335723
            ],
            [
              -53.57208251953125,
              28.287451910503744
            ]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              -53.57208251953125,
              28.287451910503744
            ],
            [
              -53.34136962890625,
              28.430052892335723
            ],
            [
              -53.33038330078125,
              28.29228897739706
            ],
            [
              -53.57208251953125,
              28.287451910503744
            ]
          ]
        ]
      }
    }
  ]
}
@jsiedentop jsiedentop added the bug Something isn't working label Feb 29, 2024
@jsiedentop
Copy link
Contributor Author

could be related to #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant