Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bertday opened this issue Jan 5, 2023 · 0 comments · Fixed by #97
Closed

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

bertday opened this issue Jan 5, 2023 · 0 comments · Fixed by #97

Comments

@bertday
Copy link
Contributor

bertday commented Jan 5, 2023

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.

bertday added a commit to bertday/ogr2ogr that referenced this issue Jan 5, 2023
bertday added a commit to bertday/ogr2ogr that referenced this issue Jan 5, 2023
@bertday bertday changed the title Output.cmd is missing a space between command and args Result.cmd is missing a space between command and args Jan 5, 2023
@wavded wavded closed this as completed in #97 Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant