turf_dart icon indicating copy to clipboard operation
turf_dart copied to clipboard

A turf.js-like geospatial analysis library working with GeoJSON, written in pure Dart.

Results 30 turf_dart issues
Sort by recently updated
recently updated
newest added

This ports over [simplify](https://github.com/Turfjs/turf/blob/master/packages/turf-simplify/lib/simplify.js) from turf.js. In the current form it only supports `Feature` while the original appears to also support Polygons. Would like some advice on that.

Hi! Turf dart missing important convex and concave hull functions. Is it in a list to add in nearby future? - [ ] concave - [ ] convex

A dart conversion of [polygon_clipping](https://github.com/mfogel/polygon-clipping/tree/main) with adopted dart native classes such as Point, flutter's Vector2, SplayTreeMap, and SplayTreeSet.

https://github.com/dartclub/turf_dart?tab=readme-ov-file#feature-conversion - [ ] combine - [ ] polygonize - [ ] flatten

old conversation: https://github.com/dartclub/turf_dart/issues/1#issuecomment-1934686005

enhancement
help wanted
blocking

`lineIntersect` on polygons leads to unexpected result. In TurfJs we get all 3 points of the polygon, in TurfDart we only get one Point. - [playground](https://jsfiddle.net/9nu716fz/27/) - [input data](http://geojson.io/#data=data:application/json,%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%7D%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B-53.57208251953125%2C28.287451910503744%5D%2C%5B-53.33038330078125%2C28.29228897739706%5D%2C%5B-53.34136962890625%2C28.430052892335723%5D%2C%5B-53.57208251953125%2C28.287451910503744%5D%5D%5D%7D%7D%2C%7B%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%7D%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B-53.57208251953125%2C28.287451910503744%5D%2C%5B-53.34136962890625%2C28.430052892335723%5D%2C%5B-53.33038330078125%2C28.29228897739706%5D%2C%5B-53.57208251953125%2C28.287451910503744%5D%5D%5D%7D%7D%5D%7D) -...

bug

# Steps to reproduce Add this to `test/components/nearest_point_on_line_test.dart`: ``` test('nearest_point_on_line -- linestring with one point', () { final start = Point(coordinates: Position.of([-122.457175, 37.720033])); final line = LineString(coordinates: [ start.coordinates, ]);...

finding intersection points for an irregular polygon gives center point as intersection point