Skip to content

Commit

Permalink
Remove area check inside app
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Nov 15, 2023
1 parent 2d9e34d commit 89f4bfc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,6 @@ def get_grid_id(geom, cur):
countries = backend_match[0]
country_export = True
logging.debug(f"Using Country Export Mode with id : {countries[0]}")
else :
if int(geom_area) > int(EXPORT_MAX_AREA_SQKM):
raise ValueError(
f"""Polygon Area {int(geom_area)} Sq.KM is higher than Threshold : {EXPORT_MAX_AREA_SQKM} Sq.KM"""
)

# else:
# if int(geom_area) > int(index_threshold):
# # this will be applied only when polygon gets bigger we will be slicing index size to search
Expand Down

0 comments on commit 89f4bfc

Please sign in to comment.