Skip to content

Commit

Permalink
only dump geometry decimals up to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jan 10, 2024
1 parent 5ac255a commit 073d24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query_builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def convert_tags_pattern(query_string):
row_filter_condition = (
f"""(country <@ ARRAY [{cid}])"""
if cid
else f"""(ST_within(geom,ST_GeomFromText('{wkt.dumps(loads(geometry.json()))}',4326)))"""
else f"""(ST_within(geom,ST_GeomFromText('{wkt.dumps(loads(geometry.json()),decimals=6)}',4326)))"""
)
if single_category_where:
row_filter_condition += f" and ({convert_tags_pattern(single_category_where)})"
Expand Down

0 comments on commit 073d24d

Please sign in to comment.