[polygons] Eliminating fix_polygon
This commit is contained in:
@@ -104,8 +104,7 @@ class PolygonIndex(object):
|
|||||||
'''
|
'''
|
||||||
if not coords or len(coords) < 3:
|
if not coords or len(coords) < 3:
|
||||||
return None
|
return None
|
||||||
poly = Polygon(coords)
|
return Polygon(coords)
|
||||||
return cls.fix_polygon(poly)
|
|
||||||
|
|
||||||
def add_geojson_like_record(self, rec, include_only_properties=None):
|
def add_geojson_like_record(self, rec, include_only_properties=None):
|
||||||
if not rec or not rec.get('geometry') or 'type' not in rec['geometry']:
|
if not rec or not rec.get('geometry') or 'type' not in rec['geometry']:
|
||||||
|
|||||||
Reference in New Issue
Block a user