We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49af995 commit eb868ebCopy full SHA for eb868eb
geojson_pydantic/geometries.py
@@ -132,18 +132,6 @@ def _wkt_coordinates(self) -> str:
132
return _lines_wtk_coordinates(self.coordinates)
133
134
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
147
class Polygon(_GeometryBase):
148
"""Polygon Model"""
149
0 commit comments