dbMongo.py
def groupByClassPolygonDBNoDate(self):
        """This method returns polygons grouped by label from DB"""
        count = self.db.PolygonCollection.find().count()
        print("number of polygon n.",count)
        if count > 0:
            result = True
            cursorClassPolygon = self.db.PolygonCollection.aggregate(
                [{"$group": {"_id":{"name" : "$properties.name"},"count": {"$sum": 1}}}])
            return result,cursorClassPolygon
        else:
            result = False
            cursorClassPolygon = None
            return result, cursorClassPolygon
This method returns polygons grouped by label from DB
This method returns polygons grouped by label from DB
This method returns polygons grouped by label from DB
def groupByClassPolygonDBNoDate(self):
        count = self.db.PolygonCollection.find().count()
        print("number of polygon n.",count)
        if count > 0:
            result = True
            cursorClassPolygon = self.db.PolygonCollection.aggregate(
                [{"$group": {"_id":{"name" : "$properties.name"},"count": {"$sum": 1}}}])
            return result,cursorClassPolygon
        else:
            result = False
            cursorClassPolygon = None
            return result, cursorClassPolygon
def groupByClassPolygonDBNoDate ( self ) : count = self . db . PolygonCollection . find ( ) . count ( ) print ( "number of polygon n." , count ) if count > 0 : result = True cursorClassPolygon = self . db . PolygonCollection . aggregate ( [ { "$group" : { "_id" : { "name" : "$properties.name" } , "count" : { "$sum" : 1 } } } ] ) return result , cursorClassPolygon else : result = False cursorClassPolygon = None return result , cursorClassPolygon
This method returns polygons grouped by label from DB
This method returns polygons grouped by label from DB
"""This method returns polygons grouped by label from DB"""
self