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

Use Turf.js? #166

Open
arjxn-py opened this issue Sep 29, 2024 · 1 comment
Open

Use Turf.js? #166

arjxn-py opened this issue Sep 29, 2024 · 1 comment

Comments

@arjxn-py
Copy link
Contributor

This is just a small idea/proposal to use Turf.js in the project for performing geospatial operations on GeoJSON data.
Turf.js provides a wide range of geospatial functions that can help us do several GIS operations in-browser.

Reasons to consider Turf.js:

  1. Comprehensive Geospatial Functions: Turf.js includes over 100 geospatial functions, such as:

    • Buffer, intersect, and union operations.
    • Geospatial analysis (area, distance, bearing, etc.).
    • Data transformation and manipulation (simplification, clipping, etc.).
  2. Lightweight and modular: Turf.js functions are modular, meaning we can include only the specific methods we need, keeping the package size optimized.

  3. Compatibility with GeoJSON: Turf.js works natively with GeoJSON, which is directly relevant to our project and makes integration straightforward.

  4. Compatibility with OpenLayers: Turf.js can be easily integrated with OpenLayers Example

Example Use Cases:

  • Calculating areas or distances between features in GeoJSON datasets.
  • Performing spatial joins or intersections.
  • Generating buffers around points or polygons.

References:

@arjxn-py
Copy link
Contributor Author

On a side note, this has also been discussed once with @martinRenou, and this issue is to keep track of that and get everyone's ideas. Thanks :)

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

No branches or pull requests

1 participant