Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ layers.Simplify(simplify.DouglasPeucker(1.0))
layers.RemoveEmpty(1.0, 2.0)

// encoding using the Mapbox Vector Tile protobuf encoding.
data, err := layers.Marshal() // this data is NOT gzipped.
data, err := mvt.Marshal(layers) // this data is NOT gzipped.

// Sometimes MVT data is stored and transfered gzip compressed. In that case:
data, err := layers.MarshalGzipped()
data, err := mvt.MarshalGzipped(layers)
```

## Decoding WKB/EWKB from a database query
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ layers.Simplify(simplify.DouglasPeucker(1.0))
layers.RemoveEmpty(1.0, 1.0)

// encoding using the Mapbox Vector Tile protobuf encoding.
data, err := layers.Marshal() // this data is NOT gzipped.
data, err := mvt.Marshal(layers) // this data is NOT gzipped.

// Sometimes MVT data is stored and transfered gzip compressed. In that case:
data, err := layers.MarshalGzipped()
data, err := mvt.MarshalGzipped(layers)
```

## Feature IDs
Expand Down