[fix] Reverting last two changes, have to fix on the OSM side

This commit is contained in:
Al
2015-11-01 16:23:41 -05:00
parent 90773294b9
commit 48a305c8c4
2 changed files with 3 additions and 15 deletions

View File

@@ -104,7 +104,8 @@ class PolygonIndex(object):
'''
if not coords or len(coords) < 3:
return None
return Polygon(coords)
poly = Polygon(coords)
return cls.fix_polygon(poly)
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']: