mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
129 stars 26 forks source link

support reading/writing of >4GB chunks #91

Closed mmomtchev closed 1 year ago

mmomtchev commented 1 year ago

Use 64 bit numbers when dealing with TypedArrays Fail overflows gracefully

Fixes #90 Fixes #91

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 81.81% and project coverage change: -0.01 :warning:

Comparison is base (8814334) 90.76% compared to head (b2303f2) 90.76%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #91 +/- ## ========================================== - Coverage 90.76% 90.76% -0.01% ========================================== Files 95 95 Lines 10711 10677 -34 ========================================== - Hits 9722 9691 -31 + Misses 989 986 -3 ``` | [Impacted Files](https://app.codecov.io/gh/mmomtchev/node-gdal-async/pull/91?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Momtchil+Momtchev) | Coverage Δ | | |---|---|---| | [src/utils/typed\_array.cpp](https://app.codecov.io/gh/mmomtchev/node-gdal-async/pull/91?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Momtchil+Momtchev#diff-c3JjL3V0aWxzL3R5cGVkX2FycmF5LmNwcA==) | `76.34% <73.33%> (+0.48%)` | :arrow_up: | | [lib/gdal.js](https://app.codecov.io/gh/mmomtchev/node-gdal-async/pull/91?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Momtchil+Momtchev#diff-bGliL2dkYWwuanM=) | `92.25% <100.00%> (ø)` | | | [src/collections/rasterband\_pixels.cpp](https://app.codecov.io/gh/mmomtchev/node-gdal-async/pull/91?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Momtchil+Momtchev#diff-c3JjL2NvbGxlY3Rpb25zL3Jhc3RlcmJhbmRfcGl4ZWxzLmNwcA==) | `96.39% <100.00%> (+0.95%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/mmomtchev/node-gdal-async/pull/91/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Momtchil+Momtchev)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.