Turfjs / Turfjs/turf

Rework @turf/dissolve & new modules proposal

Open
#1,027 0 comments 0 reactions 1 assignee View on GitHub

@DenisCarriere is already working on this.

Since Oct 17, 2017.

new-module refactoring
Dominant language
TypeScript
Stars
10.5k
Forks
1k
Avg merge
1h 11m
Merged PRs (30d)
4

Description

Rework module @turf/dissolve

New module proposal @turf/line-dissolve

New module proposal @turf/polygon-dissolve

New module proposal @turf/homogenous

This proposal is be aimed for post v5.0 release.

Been looking at converting geojson-dissolve to ES modules and diving into the source code and many things could be dropped for performance and geojson-linestring-dissolve can be converted to an internal TurfJS module.

Dependencies
  • topojson-server (ES module compatible)
  • topojson-client (ES module compatible)
  • geojson-linestring-dissolve (should be internalized to TurfJS => zero external dependencies required)
  • geojson-flatten (changed to @turf/meta flattenEach() which will boost performance on large dataset).

@turf/homogenous

Or could be built-in to @turf/invariant or @turf/helpers as homogenous()

Returns a string Geometry type, if multiple or no geometry types are found then it will return null.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.