encode

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Overview

Package encode is a library for encoding geobuf into Go structs using

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(obj interface{}) *protogeo.Data

Encode ...

func Feature

func Feature(feature *geojson.Feature, cfg *EncodingConfig) (protoFeature *protogeo.Data_Feature, err error)

Feature ...

func FeatureCollection

FeatureCollection ...

func Geometry

Geometry ...

func WithOptions

func WithOptions(obj interface{}, opts ...EncodingOption) (*protogeo.Data, error)

WithOptions ...

Types

type EncodingConfig

type EncodingConfig struct {
	Dimension uint
	Precision uint
	Keys      protogeo.KeyStore
}

EncodingConfig ...

type EncodingOption

type EncodingOption func(o *EncodingConfig)

EncodingOption ...

func FromAnalysis

func FromAnalysis(obj interface{}) EncodingOption

FromAnalysis ...

func WithDimension

func WithDimension(dimension uint) EncodingOption

WithDimension ...

func WithKeyStore

func WithKeyStore(store protogeo.KeyStore) EncodingOption

WithKeyStore ...

func WithPrecision

func WithPrecision(precision uint) EncodingOption

WithPrecision ...

type FeatureEncode

type FeatureEncode struct{}

FeatureEncode ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL