metadata

package
v0.0.0-...-cb44b2d Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetaCSV

func CreateMetaCSV(buf *g.Reader, outfilecsv string)

creates a meta data csv from a geobuf reader with fields type,verticies,number_properties,size_json,time_read_json,time_write_json,size_buf,time_read_buf,time_write_buf

Types

type Meta

type Meta struct {
	Type          string // geometry type
	Verticies     int    // geometry verticies
	Properties    int    // number properties
	SizeJSON      int    // size in bytes
	TimeReadJSON  int    // time in nanoseconds for read
	TimeWriteJSON int    // time in nanosecons for write
	SizeBUF       int    // size in bytes
	TimeReadBUF   int    // time in bytes for read
	TimeWriteBUF  int    // time in bytes for write
}

func MakeMeta

func MakeMeta(feature *geojson.Feature) *Meta

creates a metadata structure

func (*Meta) MakeString

func (meta *Meta) MakeString() string

type MetaCSV

type MetaCSV struct {
	File     *os.File
	FileName string
}

func NewMetaCSV

func NewMetaCSV(filename string) *MetaCSV

creates a meta csv

func (*MetaCSV) AddMeta

func (metacsv *MetaCSV) AddMeta(feature *geojson.Feature)

adds a single feature to the meta csv

Jump to

Keyboard shortcuts

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