Files
renovate-sh-app[bot]GitHubrenovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
6a21dc7e6d fix(deps): update module github.com/parquet-go/parquet-go to v0.27.0 (#6243)
| datasource | package                          | from    | to      |
| ---------- | -------------------------------- | ------- | ------- |
| go         | github.com/parquet-go/parquet-go | v0.26.4 | v0.27.0 |

Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
2026-01-16 23:38:26 +00:00

37 lines
1.1 KiB
Go

package wkbcommon
// EmptyPointHandling is the mechanism to handle an empty point.
type EmptyPointHandling uint8
const (
// EmptyPointHandlingError will error if an empty point is found.
EmptyPointHandlingError EmptyPointHandling = iota
// EmptyPointHandlingNaN will decipher empty points with NaN as coordinates.
// This is in line with Requirement 152 of the GeoPackage spec (http://www.geopackage.org/spec/).
EmptyPointHandlingNaN
)
// WKBParams are parameters for encoding and decoding WKB items.
type WKBParams struct {
EmptyPointHandling EmptyPointHandling
}
// WKBOption is an option to set on WKBParams.
type WKBOption func(WKBParams) WKBParams
// WKBOptionEmptyPointHandling sets the params to the specified EmptyPointHandling.
func WKBOptionEmptyPointHandling(h EmptyPointHandling) WKBOption {
return func(p WKBParams) WKBParams {
p.EmptyPointHandling = h
return p
}
}
// InitWKBParams initializes WKBParams from an initial parameter and some options.
func InitWKBParams(params WKBParams, opts ...WKBOption) WKBParams {
for _, opt := range opts {
params = opt(params)
}
return params
}