예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
def get_geom():
    y = [None]
    y.append(get_shp_as_multi(SHP, 'id'))
    return (y)