Skip to content

A Perl Port, README (Polygons) and test.js #57

@aavmurphy

Description

@aavmurphy

A Perl port

https://github.com/aavmurphy/CheapRuler
https://metacpan.org/pod/Geo::CheapRuler

Some clarification on polygons. Is this correct?
Polygons are a series of rings.
The first ring is exterior and clockwise.
Subsequent rings are interior (holes) and anticlockwise.
Do the first and last point of each ring have to be the same?

In test.js, in lineslice and lineslicealong, i needed to add
const clean_line = turf.cleanCoords( turf.lineString(line) );

(this removes duplicate adjacent points)

Thank you for CheapRuler!
Andrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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