geobuf

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: 7 Imported by: 0

Documentation

Overview

Package geobuf is a library for encoding and decoding geobuf into Go structs using

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeobufEncoder

type GeobufEncoder struct {
	geojson.BaseEncoder
}

func (*GeobufEncoder) Decode

func (e *GeobufEncoder) Decode(s []byte) (space.Geometry, error)

Decode Returns geometry of that decode string by codeType.

func (*GeobufEncoder) Encode

func (e *GeobufEncoder) Encode(g space.Geometry) []byte

Encode Returns string of that encode geometry by codeType.

func (*GeobufEncoder) Read

func (e *GeobufEncoder) Read(r io.Reader) (space.Geometry, error)

Read Returns geometry from reader.

func (*GeobufEncoder) ReadGeoJSON

func (e *GeobufEncoder) ReadGeoJSON(r io.Reader) (*geojson.FeatureCollection, error)

ReadGeoJSON Returns geometry from reader .

func (*GeobufEncoder) Write

func (e *GeobufEncoder) Write(w io.Writer, g space.Geometry) error

Write write geometry to reader.

func (*GeobufEncoder) WriteGeoJSON

func (e *GeobufEncoder) WriteGeoJSON(w io.Writer, g *geojson.FeatureCollection) error

WriteGeoJSON write geometry to writer.

Directories

Path Synopsis
Package encode is a library for decoding geobuf into Go structs using
Package encode is a library for decoding geobuf into Go structs using
Package encode is a library for encoding geobuf into Go structs using
Package encode is a library for encoding geobuf into Go structs using
Package protogeo is a library for encoding and decoding geobuf into Go structs using Code generated by protoc-gen-go.
Package protogeo is a library for encoding and decoding geobuf into Go structs using Code generated by protoc-gen-go.

Jump to

Keyboard shortcuts

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