engine/process.py
def geom_extent(self, survey):
        """Return a dictionary with the spatial extent for
           all point(s) and/or polygon(s), collected by all users under a survey."""
        geom_extent = {'point': None, 'polygon': None}

        cursor.execute(f'select st_extent(point) from {self.db}features where survey = {survey} and ans_check = 1')
        geom_extent['point'] = cursor.fetchall()[0][0]

        cursor.execute(f'select st_extent(polygon) from {self.db}features where survey = {survey} and ans_check = 1')
        geom_extent['polygon'] = cursor.fetchall()[0][0]

        return geom_extent
Return a dictionary with the spatial extent for
           all point(s) and/or polygon(s), collected by all users under a survey.
Return a dictionary with the spatial extent for
all point(s) and/or polygon(s), collected by all users under a survey.
Return a dictionary with the spatial extent for all point ( s ) and / or polygon ( s ) collected by all users under a survey .
def geom_extent(self, survey):
        geom_extent = {'point': None, 'polygon': None}
        cursor.execute(f'select st_extent(point) from {self.db}features where survey = {survey} and ans_check = 1')
        geom_extent['point'] = cursor.fetchall()[0][0]
        cursor.execute(f'select st_extent(polygon) from {self.db}features where survey = {survey} and ans_check = 1')
        geom_extent['polygon'] = cursor.fetchall()[0][0]
        return geom_extent
def geom_extent ( self , survey ) : geom_extent = { 'point' : None , 'polygon' : None } cursor . execute ( f'select st_extent(point) from {self.db}features where survey = {survey} and ans_check = 1' ) geom_extent [ 'point' ] = cursor . fetchall ( ) [ 0 ] [ 0 ] cursor . execute ( f'select st_extent(polygon) from {self.db}features where survey = {survey} and ans_check = 1' ) geom_extent [ 'polygon' ] = cursor . fetchall ( ) [ 0 ] [ 0 ] return geom_extent
Return a dictionary with the spatial extent for
all point(s) and/or polygon(s), collected by all users under a survey.
Return a dictionary with the spatial extent for all point ( s ) and / or polygon ( s ) collected by all users under a survey .
"""Return a dictionary with the spatial extent for
           all point(s) and/or polygon(s), collected by all users under a survey."""
self
survey