Skip to content

Commit

Permalink
fix: change required number of points for polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ committed Apr 27, 2024
1 parent 2ffbfed commit f99bcde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quackosm/pbf_file_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ def _get_filtered_ways_with_proper_geometry(
-- if first and last nodes are the same
ST_Equals(linestring[1]::POINT_2D, linestring[-1]::POINT_2D)
-- if linestring has at least 3 points
AND len(linestring) >= 3
AND len(linestring) >= 4
-- if the element doesn't have any tags leave it as a Linestring
AND raw_tags IS NOT NULL
-- if the element is specifically tagged 'area':'no' -> LineString
Expand Down Expand Up @@ -1944,7 +1944,7 @@ def _get_filtered_relations_with_geometry(
GROUP BY id, ref_role
) x
JOIN any_outer_refs aor ON aor.id = x.id
WHERE ST_NPoints(geom) >= 3
WHERE ST_NPoints(geom) >= 4
),
valid_relations AS (
SELECT id, is_valid
Expand Down

0 comments on commit f99bcde

Please sign in to comment.