wavded / ogr2ogr

An ogr2ogr wrapper library
MIT License
216 stars 46 forks source link

Result.cmd is missing a space between command and args #96

Closed bertday closed 1 year ago

bertday commented 1 year ago

If I run this minimal example:

import ogr2ogr from 'ogr2ogr';

(async () => {
  await ogr2ogr(
    '/Users/me/parcels.geojson',
    {
      options: [
        '-spat', '-87.94011408252348 41.64454312178303 -87.5241371038952 42.023038586147585',
      ],
    }
  );
})();

and log the cmd of the output object I get:

ogr2ogr-f GeoJSON -skipfailures /vsistdout/ /Users/me/parcels.geojson

it looks like the command and args are getting concatenated without a space (ogr2ogr-f). It looks like it happens on this line.