geobuf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

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

Jump to

Keyboard shortcuts

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