Skip to content

Commit eb868eb

Browse files
committed
Remove unused linearring class.
1 parent 49af995 commit eb868eb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

geojson_pydantic/geometries.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,6 @@ def _wkt_coordinates(self) -> str:
132132
return _lines_wtk_coordinates(self.coordinates)
133133

134134

135-
class LinearRingGeom(LineString):
136-
"""LinearRing model."""
137-
138-
@validator("coordinates")
139-
def check_closure(cls, coordinates: List) -> List:
140-
"""Validate that LinearRing is closed (first and last coordinate are the same)."""
141-
if coordinates[-1] != coordinates[0]:
142-
raise ValueError("LinearRing must have the same start and end coordinates")
143-
144-
return coordinates
145-
146-
147135
class Polygon(_GeometryBase):
148136
"""Polygon Model"""
149137

0 commit comments

Comments
 (0)