Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
Attributes provides access to the dbf record.
type FieldDescList ¶
type FieldDescList []FieldDesc
func (FieldDescList) Exists ¶
func (l FieldDescList) Exists(name string) bool
type GeoJSONOption ¶
type GeoJSONOption func(*geoJSONConfig)
GeoJSONOption funcs can be passed to Record.GeoJSONFeature().
func RenameProperties ¶
func RenameProperties(oldNews map[string]string) GeoJSONOption
RenameProperties allows shapefile field names to be mapped to user-defined GeoJSON property names.
type Info ¶
type Info struct { BoundingBox shp.BoundingBox NumRecords uint32 ShapeType shp.ShapeType Fields FieldDescList }
type Option ¶
type Option func(*options)
Option funcs can be passed to NewScanner().
func CharacterEncoding ¶
func CharacterEncoding(enc cpg.CharacterEncoding) Option
CharacterEncoding sets dbf.CharacterEncoding.
type Record ¶
type Record struct { Shape shp.Shape Attributes Attributes }
Record consists of a shape (read from the .shp file) and attributes (from the .dbf file).
func (*Record) GeoJSONFeature ¶
func (r *Record) GeoJSONFeature(opts ...GeoJSONOption) *geojson.Feature
GeoJSONFeature creates a GeoJSON Feature for the Shapefile Record.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) AddOptions ¶
type TablePrinter ¶
type TablePrinter struct {
// contains filtered or unexported fields
}
func NewTablePrinter ¶
func NewTablePrinter(s Scannable, fields ...string) (*TablePrinter, error)
func (*TablePrinter) PrettyPrint ¶
func (p *TablePrinter) PrettyPrint() error
func (*TablePrinter) Print ¶
func (p *TablePrinter) Print() error
type ZipScanner ¶
type ZipScanner struct {
// contains filtered or unexported fields
}
func NewZipScanner ¶
func (*ZipScanner) AddOptions ¶
func (s *ZipScanner) AddOptions(opts ...Option)
func (*ZipScanner) Err ¶
func (s *ZipScanner) Err() error
func (*ZipScanner) Info ¶
func (s *ZipScanner) Info() (*Info, error)
func (*ZipScanner) Record ¶
func (s *ZipScanner) Record() *Record
func (*ZipScanner) Scan ¶
func (s *ZipScanner) Scan() error
Click to show internal directories.
Click to hide internal directories.