Documentation ¶
Index ¶
- func WriteTile(con *sqlite.Conn, tile *tiles.TileID, data []byte) error
- type MBtilesWriter
- func (db *MBtilesWriter) Close()
- func (db *MBtilesWriter) CloseConnection(con *sqlite.Conn)
- func (db *MBtilesWriter) GetConnection() (*sqlite.Conn, error)
- func (db *MBtilesWriter) WriteMetadata(name string, description string, minZoom uint8, maxZoom uint8, ...) (err error)
- func (db *MBtilesWriter) WriteTile(tile *tiles.TileID, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MBtilesWriter ¶
type MBtilesWriter struct {
// contains filtered or unexported fields
}
func NewMBtilesWriter ¶
func NewMBtilesWriter(path string, poolsize int) (*MBtilesWriter, error)
func (*MBtilesWriter) Close ¶
func (db *MBtilesWriter) Close()
func (*MBtilesWriter) CloseConnection ¶
func (db *MBtilesWriter) CloseConnection(con *sqlite.Conn)
CloseConnection closes an open sqlite.Conn and returns it to the pool.
func (*MBtilesWriter) GetConnection ¶
func (db *MBtilesWriter) GetConnection() (*sqlite.Conn, error)
GetConnection gets a sqlite.Conn from an open connection pool. CloseConnection(con) must be called to release the connection.
func (*MBtilesWriter) WriteMetadata ¶
Click to show internal directories.
Click to hide internal directories.