Пример #1
0
// Set up metatiler
func (self *app) setupMetatiler() error {
	if self.commonConfig.MetaSize < 1 {
		return fmt.Errorf("Invalid MetaSize %v", self.commonConfig.MetaSize)
	}
	if self.commonConfig.TileSize < 1 {
		return fmt.Errorf("Invalid TileSize %v", self.commonConfig.TileSize)
	}

	self.metatiler = gopnik.NewMetatiler(
		uint64(self.commonConfig.MetaSize),
		uint64(self.commonConfig.TileSize))
	return nil
}
Пример #2
0
func (self *app) configureDefault() {
	self.metatiler = gopnik.NewMetatiler(8, 256)
}