We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff44c1 commit e320742Copy full SHA for e320742
src/geoslurp/plugins/dset/icedraindiv.py
@@ -81,8 +81,14 @@ def IceSatPolygons(fname):
81
#initialize a ring
82
ring=ogr.Geometry(ogr.wkbLinearRing)
83
ring.AddPoint(row[1],row[2])
84
-
85
+ #return the last polygon
+ poly=ogr.Geometry(ogr.wkbPolygon)
86
+ poly.AddGeometry(ring)
87
+ poly.FlattenTo2D()
88
+ poly.CloseRings()
89
+ meta={"basinid":row[0],"geom":WKBElement(poly.ExportToIsoWkb(),srid=4326)}
90
+
91
+ yield meta
92
93
class IceSatDDivBase(DataSet):
94
"""Icesat Drainage divide table base"""
0 commit comments