Skip to content

Commit

Permalink
fix black format
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Feb 8, 2024
1 parent 153980d commit e90adb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions test_vectortiles/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.
"""

import os

from django.core.wsgi import get_wsgi_application
Expand Down
12 changes: 7 additions & 5 deletions vectortiles/backends/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def get_tile(self, x, y, z):
if limit:
features = features[:limit]
features = features.annotate(
clipped=Intersection(
Transform(self.geom_field, 3857),
bbox.buffer(self.pixel_length(z, self.tile_buffer)),
clipped=(
Intersection(
Transform(self.geom_field, 3857),
bbox.buffer(self.pixel_length(z, self.tile_buffer)),
)
if self.clip_geom
else F("geom")
)
if self.clip_geom
else F("geom")
)
if features:
tile = {
Expand Down

0 comments on commit e90adb6

Please sign in to comment.