Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Feb 20, 2024
1 parent 6ef4e3f commit 949e4d2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions api/v1/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ async def get_tile(
return Response(content, headers=headers, media_type='application/vnd.mapbox-vector-tile')


def _mvt_rescale(x: float, y: float, x_min: float, y_min: float, x_span: float, y_span: float) -> tuple[int, int]:
x_mvt, y_mvt = MVT_TRANSFORMER.transform(np.array(x), np.array(y))

# subtract minimum boundary and scale to MVT extent
x_scaled = np.rint((x_mvt - x_min) / x_span * MVT_EXTENT).astype(int)
y_scaled = np.rint((y_mvt - y_min) / y_span * MVT_EXTENT).astype(int)
return x_scaled, y_scaled


def _mvt_encode(bbox: BBox, layers: Sequence[dict]) -> bytes:
with start_span(description='Transforming MVT geometry'):
bbox_coords = np.asarray((get_coordinates(bbox.p1)[0], get_coordinates(bbox.p2)[0]))
Expand Down

0 comments on commit 949e4d2

Please sign in to comment.