Skip to content

Commit 23240df

Browse files
Merge pull request #106 from eseglem/feature/remove-unused-linearring
Remove unused LinearRingGeom class.
2 parents 45e758f + eb868eb commit 23240df

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
@@ -153,18 +153,6 @@ def _wkt_coordinates(self) -> str:
153153
return _lines_wtk_coordinates(self.coordinates)
154154

155155

156-
class LinearRingGeom(LineString):
157-
"""LinearRing model."""
158-
159-
@validator("coordinates")
160-
def check_closure(cls, coordinates: List) -> List:
161-
"""Validate that LinearRing is closed (first and last coordinate are the same)."""
162-
if coordinates[-1] != coordinates[0]:
163-
raise ValueError("LinearRing must have the same start and end coordinates")
164-
165-
return coordinates
166-
167-
168156
class Polygon(_GeometryBase):
169157
"""Polygon Model"""
170158

0 commit comments

Comments
 (0)