* drops unused methods
* fixes typos
* updates comments
* drops unused model attribute
This commit is contained in:
2024-02-16 08:41:03 +01:00
parent 476447c621
commit d76a1fc85f
7 changed files with 22 additions and 44 deletions

View File

@@ -303,17 +303,6 @@ class Geometry(BaseResource):
municipals = Municipal.objects.filter(id__in=municipals).order_by("name")
return municipals
def count_underlying_parcels(self):
""" Getter for number of underlying parcels
Returns:
"""
num_parcels = self.parcels.filter(
parcelintersection__calculated_on__isnull=False,
).count()
return num_parcels
def as_feature_collection(self, srid=DEFAULT_SRID_RLP):
""" Returns a FeatureCollection structure holding all polygons of the MultiPolygon as single features