Skip to content

Commit

Permalink
Merge pull request #76 from planetlabs/default-compression
Browse files Browse the repository at this point in the history
Default to zstd compression in the WASM build
  • Loading branch information
tschaub authored Sep 24, 2023
2 parents b1560ba + f2eb772 commit 69fc799
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ var toParquet = js.FuncOf(func(this js.Value, args []js.Value) any {

input := strings.NewReader(args[0].String())
output := &bytes.Buffer{}
convertErr := geojson.ToParquet(input, output, &geojson.ConvertOptions{MinFeatures: 10, MaxFeatures: 250})
convertErr := geojson.ToParquet(input, output, &geojson.ConvertOptions{
MinFeatures: 10, MaxFeatures: 250, Compression: "zstd",
})

if convertErr != nil {
return returnFromError(convertErr)
Expand Down

0 comments on commit 69fc799

Please sign in to comment.