diff --git a/src/query_builder/builder.py b/src/query_builder/builder.py index d84d42f5..dcf65418 100644 --- a/src/query_builder/builder.py +++ b/src/query_builder/builder.py @@ -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)})"