Skip to content

Commit

Permalink
small pep8 update
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-esch committed May 19, 2017
1 parent ba8c024 commit 9959766
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions cartoframes/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,16 +735,17 @@ def _get_bounds(self, layers):
if not layer.is_basemap])

extent = self.query('''
SELECT
ST_XMIN(ext) AS west,
ST_YMIN(ext) AS south,
ST_XMAX(ext) AS east,
ST_YMAX(ext) AS north
FROM (
SELECT st_extent(the_geom) AS ext
FROM ({union_query}) AS wrap1
) AS wrap2'''.format(union_query=union_query),
decode_geom=False)
SELECT
ST_XMIN(ext) AS west,
ST_YMIN(ext) AS south,
ST_XMAX(ext) AS east,
ST_YMAX(ext) AS north
FROM (
SELECT st_extent(the_geom) AS ext
FROM ({union_query}) AS _wrap1
) AS _wrap2
'''.format(union_query=union_query),
decode_geom=False)

west, south, east, north = extent.values[0]

Expand Down

0 comments on commit 9959766

Please sign in to comment.