dc7ef541dfb2a7a9427931e01a16f7707e1ceec0,src/service/TilesLoader/TileProxy.py,TileProxy,getBigTile,#TileProxy#Any#Any#,32

Before Change


        tileId2 = self.getTileIndexes(node2)
        image = self.mergeImage(tileId1,tileId2)

        return Tile(image, Bbox(node1.longitude, node1.latitude, node2.longitude, node2.latitude))

    def mergeImage(self, tileId1, tileId2):
        yCount = tileId2[0] - tileId1[0] + 1
        xCount = tileId2[1] - tileId1[1] + 1

After Change


        firstTile = self.tiles[tileId1[0]][tileId1[1]]
        lastTile = self.tiles[tileId2[0]][tileId2[1]]

        bbox = Bbox(firstTile.bbox.left, firstTile.bbox.bottom, lastTile.bbox.right, lastTile.bbox.top)
        return Tile(image, bbox)

    def getBigTileByNodes(self, node1, node2):
        point1 = self.__getLeftDownPoint(node1, node2)
        point2 = self.__getUpRightPoint(node1, node2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: geometalab/OSMDeepOD
Commit Name: dc7ef541dfb2a7a9427931e01a16f7707e1ceec0
Time: 2015-10-07
Author: root@osboxes
File Name: src/service/TilesLoader/TileProxy.py
Class Name: TileProxy
Method Name: getBigTile


Project Name: geometalab/OSMDeepOD
Commit Name: cad14d78d103b87e100203a1856557101643bc8a
Time: 2015-10-06
Author: sevi_buehler@hotmail.com
File Name: tests/service/Mapquest/BoxFactory.py
Class Name: BoxFactory
Method Name: RapperswilBhf


Project Name: matplotlib/matplotlib
Commit Name: d54975ef22f37a8ccc67aa1720562979288ba4b9
Time: 2019-11-14
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/transforms.py
Class Name: Bbox
Method Name: from_extents