wavded / ogr2ogr

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

-clipsrc different result when running the CLI #63

Closed jeffreyvdhondel closed 3 years ago

jeffreyvdhondel commented 3 years ago

When i run the following code : var geojson = ogr2ogr('test.shp') .options(['--config', '-clipsrc', '5.900027 52.150202 6.049367 52.249765']) .timeout(50000) .onStderr((data: string) => { console.log(data); }) .stream(); geojson.pipe(fs.createWriteStream('test.geojson'));

The test.geojson = 853MB

The output isnt clipped when i run the following cli command: ogr2ogr test.geojson test.shp -clipsrc 5.900027 52.150202 6.049367 52.249765

The test.geojson = 6.5MB

Version = GDAL 3.2.0, released 2020/10/26

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.