cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenExtracted

func OpenExtracted(shpPath, dbfPath string, exclusive []string) (*shapefile.Scanner, io.Closer, error)

func OpenZip

func OpenZip(path string, exclusive []string) (*shapefile.ZipScanner, closer, error)

Types

type Flags

type Flags struct {
	Zip string `` /* 141-byte string literal not displayed */
	Shp string `kong:"optional,name=shp,type=existingfile,help='Path to shape file (.shp). Must be used in conjunction with --dbf.'"`
	Dbf string `kong:"optional,name=dbf,type=existingfile,help='Path to attribute file (.dbf). Must be used in conjunction with --shp.'"`
}

func (Flags) OpenAllFields

func (f Flags) OpenAllFields() (shapefile.Scannable, io.Closer, error)

func (Flags) OpenFilteredFields

func (f Flags) OpenFilteredFields(fields []string) (shapefile.Scannable, io.Closer, error)

Jump to

Keyboard shortcuts

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