def load_geom(self, uid_field='objectid'): ret = get_shp_as_multi(self.shp, uid_field=uid_field) for ii in ret: ii['id'] = ii.pop(uid_field) ii['geom'] = wkt.loads(ii['geom']) return (ret)
def get_geom(): y = [None] y.append(get_shp_as_multi(SHP, 'id')) return (y)