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
133 stars 26 forks source link

Support for utilities as a library functions like VectorTranslate ? #18

Closed ThomasG77 closed 2 years ago

ThomasG77 commented 2 years ago

Since some years, I've used in Python utilities that do the same as command line with native code because of RFC https://gdal.org/development/rfc/rfc59_utilities_as_a_library.html

It has evolved, so you can use a VectorTranslate to do the equivalent of ogr2ogr amonst others.

Methods can be Info, Translate, Warp, VectorTranslate, DEMProcessing, BuildVRT, Rasterize, Nearblack and Grid like in https://gdal.org/python/osgeo.gdal-module.html#section-Functions Is there any plan to go in this direction or should I only keep using the command line tools from a Node.js exec?

mmomtchev commented 2 years ago

3.4 will have gdal.info, gdal.translate, gdal.vectorTranslate, gdal.warp and an in-house pure JS gdal.calc that supports JS functions GDAL 3.4.0 is at rc3 since Friday, if this release is promoted tomorrow, then gdal-async@3.4 will follow a few hours later

mmomtchev commented 2 years ago

3.4.0 is now available

robinsummerhill commented 2 years ago

Is there any plan to support GDALRasterize from the C/C++ API?

mmomtchev commented 2 years ago

Why not, I didn't consider it for 3.5 but it is a trivial addition