# Renaming
* renames a method and fixes doc string
This commit is contained in:
parent
4fc15f6a9d
commit
c06088a260
@ -101,7 +101,7 @@ class SimpleGeomForm(BaseForm):
|
||||
is_valid &= False
|
||||
return is_valid
|
||||
|
||||
is_valid &= self.__is_size_valid(g)
|
||||
is_valid &= self.__is_area_valid(g)
|
||||
|
||||
polygon = Polygon.from_ewkt(g.ewkt)
|
||||
is_valid &= polygon.valid
|
||||
@ -139,8 +139,8 @@ class SimpleGeomForm(BaseForm):
|
||||
|
||||
return num_vertices <= GEOM_MAX_VERTICES
|
||||
|
||||
def __is_size_valid(self, geom: gdal.OGRGeometry):
|
||||
""" Checks whether the number of vertices in the geometry is not too high
|
||||
def __is_area_valid(self, geom: gdal.OGRGeometry):
|
||||
""" Checks whether the area is at least > 1m²
|
||||
|
||||
Returns:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user