andrewharvey / geojson-polygon-labels

Command line tool to generate point labels from GeoJSON polygons
ISC License
82 stars 16 forks source link

New conversion to square km for area is incorrect #1

Closed otherjason closed 7 years ago

otherjason commented 7 years ago

In the previous release, the area was specified in square meters. In 1.0.2, that was intended to be changed to square kilometers; this conversion is done here. However, this isn't correct; to convert square meters to square kilometers, you need to divide by 1 million (1000 * 1000), not by 1000.

andrewharvey commented 7 years ago

Thanks for flagging this @otherjason. I'm still very new to publishing modules to npm, versioning and releasing and I've made a few failures here.

To fix this I'll

andrewharvey commented 7 years ago

Closing as I've reverted back to sq meters in v1.0.3.