yocontra / node-gdal-next

Node.js bindings for GDAL (Geospatial Data Abstraction Library) [Fork]
https://contra.io/node-gdal-next/
Apache License 2.0
75 stars 36 forks source link

Add support for GDAL vsimem #42

Closed mmomtchev closed 3 years ago

mmomtchev commented 3 years ago

This PR adds support for GDAL vsimem - a in-memory filesystem It allows a JS Buffer object to be opened with gdal.open as if it were a file The Buffer is automatically registered in the virtual memory file system and it is automatically unregistered on garbage collection In order to keep persistence, every in-memory dataset keeps a reference to its buffer in gdal.Dataset.buffer

39

yocontra commented 3 years ago

Looks great - I don't see any issues with the code. Outstanding items before merge:

yocontra commented 3 years ago

@mmomtchev Tests are failing on some of the CI

yocontra commented 3 years ago

Published as 2.6.0 - thanks again!