Skip to content

New CovJson Library #229

Description

@murithigeo

Hello,
Introducing a new library, written in TypeScript, to process, and reproject CoverageJSON documents. Link to Repo

Loosely inspired by predecessor projects such as covutils, leaflet-coverage and coverage-reader and does borrow some logic but with some differences such as:

  1. It is not a one size fits all. You can easily extend these classes or implement your own.
  2. Modularization: Each domain is processed independently, mapping plugins only render the GeoJSON mappings and code is reshared. I am developing a charting plugin but you can build your own.
  3. Objects such as Domains, Coverages and CoverageCollections have their own equivalent classes which extend their functionality and allow conversion back to plain objects.
  4. Uses the [x,y] coordinate order for everything. You can easily override the Referencing class to swap the order

So, the gist is this library allows you to process CoverageJSON without a lot of defaults. At current time, the aforementioned libraries are the default and may be considerably faster that this library and maybe considerably stable.

That said, I would like feedback to ascertain what I have overlooked and what your typical usecase looks like while I implement the charts plugin. While the core package is considerably stable, a few more tweaks are needed before a stable release.
I would also appreciate some co-owners of the TypeScript definitions package for this standard over at DefinitelyTyped

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImplementationsIssues relating to implementations rather than the Standard specifications

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions