Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(h *gpkg.Handle, tables ...Descriptioner) error

Types

type DB

type DB struct {
	*gpkg.Handle

	// contains filtered or unexported fields

}

func OpenTestDB

func OpenTestDB(filename string, descriptions ...Descriptioner) (*DB, error)

func (*DB) Filename

func (db *DB) Filename() string

type Description

type Description struct {
	Name      string
	GeomField string
	GType     gpkg.GeometryType
	Desc      string
	SRS       int32
	CreateSQL string
}

func (Description) Description

func (td Description) Description() string

func (Description) Field

func (td Description) Field() string

func (Description) M

func (td Description) M() gpkg.MaybeBool

func (Description) SQLCreate

func (td Description) SQLCreate() string

func (Description) ShortName

func (td Description) ShortName() string

func (Description) TableDescription

func (td Description) TableDescription() gpkg.TableDescription

func (Description) Z

func (td Description) Z() gpkg.MaybeBool

type Descriptioner

type Descriptioner interface {
	TableDescription() gpkg.TableDescription
	SQLCreate() string
}

Source Files