Ensures the collection of polygon ring order is correct, removes duplicate points,
and runs a dekink to be thorough.
NOTE: This will not remove/reduce points that follow a path angle like [[0, 0], [0, 1], [0, 2], ...].
The decision to leave this to the user is due to the fact that not all projections are guaranteed
to support a linear relationship. Also sometimes the user want's to have these extra points for
future/cleaner projection changes. For example, having higher precision works well when
translating to spherical projections for instance. If you do want to remove these points, pass
in true to removeCollinearPoints
Ensures the collection of polygon ring order is correct, removes duplicate points, and runs a dekink to be thorough.
NOTE: This will not remove/reduce points that follow a path angle like [[0, 0], [0, 1], [0, 2], ...]. The decision to leave this to the user is due to the fact that not all projections are guaranteed to support a linear relationship. Also sometimes the user want's to have these extra points for future/cleaner projection changes. For example, having higher precision works well when translating to spherical projections for instance. If you do want to remove these points, pass in true to
removeCollinearPoints