engine/process.py
def geom_shp(self, call, geom_type, survey, data):
        """Call the shp method, transfer, inter alia, a geometry type into it, get
           a dictionary with data. If it contains geometry, produce mandatory for
           the shapefile format files as file-like objects, produce a projection description.
           Assign the proper names and extensions. Return a list of created objects."""
        output = []

        result = self.shp(geom_type, survey, data['question'], data['answer'], data['count'])

        if result['check'] == 1:
            shp = io.BytesIO(result['shp'].getvalue())
            shx = io.BytesIO(result['shx'].getvalue())
            dbf = io.BytesIO(result['dbf'].getvalue())
            prj = io.BytesIO(self.datum.encode('utf-8'))
            shp.name = f'{call.from_user.first_name}_{geom_type}.shp'
            shx.name = f'{call.from_user.first_name}_{geom_type}.shx'
            dbf.name = f'{call.from_user.first_name}_{geom_type}.dbf'
            prj.name = f'{call.from_user.first_name}_{geom_type}.prj'
            output.append(shp)
            output.append(shx)
            output.append(dbf)
            output.append(prj)

        return output
Call the shp method, transfer, inter alia, a geometry type into it, get
           a dictionary with data. If it contains geometry, produce mandatory for
           the shapefile format files as file-like objects, produce a projection description.
           Assign the proper names and extensions. Return a list of created objects.
Call the shp method, transfer, inter alia, a geometry type into it, get
a dictionary with data. If it contains geometry, produce mandatory for
the shapefile format files as file-like objects, produce a projection description.
Assign the proper names and extensions. Return a list of created objects.
Call the shp method transfer inter alia a geometry type into it get a dictionary with data . If it contains geometry produce mandatory for the shapefile format files as file - like objects produce a projection description . Assign the proper names and extensions . Return a list of created objects .
def geom_shp(self, call, geom_type, survey, data):
        output = []
        result = self.shp(geom_type, survey, data['question'], data['answer'], data['count'])
        if result['check'] == 1:
            shp = io.BytesIO(result['shp'].getvalue())
            shx = io.BytesIO(result['shx'].getvalue())
            dbf = io.BytesIO(result['dbf'].getvalue())
            prj = io.BytesIO(self.datum.encode('utf-8'))
            shp.name = f'{call.from_user.first_name}_{geom_type}.shp'
            shx.name = f'{call.from_user.first_name}_{geom_type}.shx'
            dbf.name = f'{call.from_user.first_name}_{geom_type}.dbf'
            prj.name = f'{call.from_user.first_name}_{geom_type}.prj'
            output.append(shp)
            output.append(shx)
            output.append(dbf)
            output.append(prj)
        return output
def geom_shp ( self , call , geom_type , survey , data ) : output = [ ] result = self . shp ( geom_type , survey , data [ 'question' ] , data [ 'answer' ] , data [ 'count' ] ) if result [ 'check' ] == 1 : shp = io . BytesIO ( result [ 'shp' ] . getvalue ( ) ) shx = io . BytesIO ( result [ 'shx' ] . getvalue ( ) ) dbf = io . BytesIO ( result [ 'dbf' ] . getvalue ( ) ) prj = io . BytesIO ( self . datum . encode ( 'utf-8' ) ) shp . name = f'{call.from_user.first_name}_{geom_type}.shp' shx . name = f'{call.from_user.first_name}_{geom_type}.shx' dbf . name = f'{call.from_user.first_name}_{geom_type}.dbf' prj . name = f'{call.from_user.first_name}_{geom_type}.prj' output . append ( shp ) output . append ( shx ) output . append ( dbf ) output . append ( prj ) return output
Call the shp method, transfer, inter alia, a geometry type into it, get
a dictionary with data.
Call the shp method transfer inter alia a geometry type into it get a dictionary with data .
"""Call the shp method, transfer, inter alia, a geometry type into it, get
           a dictionary with data. If it contains geometry, produce mandatory for
           the shapefile format files as file-like objects, produce a projection description.
           Assign the proper names and extensions. Return a list of created objects."""
self
call
geom_type
survey
data