(coordinates, tile, extent)
return [merc_easting, merc_northing]
The coordinates of a geometry, are relative to the tile the feature is located on.
         * Due to this, we've to get the absolute coordinates of the geometry.
The coordinates of a geometry, are relative to the tile the feature is located on.
         * Due to this, we've to get the absolute coordinates of the geometry.
The coordinates of a geometry are relative to the tile the feature is located on . * Due to this we ve to get the absolute coordinates of the geometry .
def _get_absolute_coordinates(coordinates, tile, extent):
        """
        The coordinates of a geometry, are relative to the tile the feature is located on.
         * Due to this, we've to get the absolute coordinates of the geometry.
        """
        delta_x = tile.extent[2] - tile.extent[0]
        delta_y = tile.extent[3] - tile.extent[1]
        merc_easting = int(tile.extent[0] + delta_x / extent * coordinates[0])
        merc_northing = int(tile.extent[1] + delta_y / extent * coordinates[1])
        return [merc_easting, merc_northing]
def _get_absolute_coordinates ( coordinates , tile , extent ) : delta_x = tile . extent [ 2 ] - tile . extent [ 0 ] delta_y = tile . extent [ 3 ] - tile . extent [ 1 ] merc_easting = int ( tile . extent [ 0 ] + delta_x / extent * coordinates [ 0 ] ) merc_northing = int ( tile . extent [ 1 ] + delta_y / extent * coordinates [ 1 ] ) return [ merc_easting , merc_northing ]