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