Documentation
¶
Index ¶
- Constants
- Variables
- type Bounds
- type Coordinate
- type Format
- type Grid
- type Metadata
- func (m *Metadata) Attributes() map[string]string
- func (m *Metadata) Attribution() string
- func (m *Metadata) Bounds() ([4]Coordinate, error)
- func (m *Metadata) Description() string
- func (m *Metadata) Format() string
- func (m *Metadata) HasRequiredKeys() bool
- func (m *Metadata) Name() string
- func (m *Metadata) Type() string
- func (m *Metadata) Version() string
- type Tile
- type Tileset
- func (ts *Tileset) Close()
- func (ts *Tileset) Metadata() *Metadata
- func (ts *Tileset) ReadOSMTile(x, y, z int) (tile *Tile, err error)
- func (ts *Tileset) ReadTile(x, y, z int) (tile *Tile, err error)
- func (ts *Tileset) WriteOSMTile(x, y, z int, data []byte) (tile *Tile, err error)
- func (ts *Tileset) WriteTile(x, y, z int, data []byte) (tile *Tile, err error)
Constants ¶
View Source
const ( NAME = "name" TYPE = "type" VERS = "version" DESC = "description" FRMT = "format" BNDS = "bounds" ATTR = "attribution" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
type Coordinate float64
func ParseCoordinate ¶
func ParseCoordinate(coord string) (Coordinate, error)
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func (*Metadata) Attributes ¶
The map of the kv pairs
func (*Metadata) Attribution ¶
func (*Metadata) Bounds ¶
func (m *Metadata) Bounds() ([4]Coordinate, error)
func (*Metadata) Description ¶
func (*Metadata) HasRequiredKeys ¶
type Tile ¶
Tiles are meant to follow the TMS standard, but there are methods to Read/Write OSM style tiles in Tileset
func (*Tile) SniffFormat ¶
type Tileset ¶
type Tileset struct {
// contains filtered or unexported fields
}
func InitTileset ¶
Creates a NEW, BLANK tileset at the given path metadata is requied to have the following keys: name, type, version, description, format
func ReadTileset ¶
func (*Tileset) ReadOSMTile ¶
TMS use SW origin(0,0), OSM uses Slippy names with NW origin See: http://gis.stackexchange.com/questions/116288/mbtiles-and-slippymap-tilenames
func (*Tileset) WriteOSMTile ¶
Writes a tile that uses the NW origin like OSM
Source Files
¶
Click to show internal directories.
Click to hide internal directories.