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.
2 parents 45e758f + eb868eb commit 23240dfCopy full SHA for 23240df
geojson_pydantic/geometries.py
@@ -153,18 +153,6 @@ def _wkt_coordinates(self) -> str:
153
return _lines_wtk_coordinates(self.coordinates)
154
155
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
168
class Polygon(_GeometryBase):
169
"""Polygon Model"""
170
0 commit comments