# coding=utf-8
#author: 4N
#createtime: 2022/1/17
#email: nheweijun@sina.com
from osgeo import ogr
class SchemaAdapter:
@classmethod
def neglect_binary(cls,schema):
for sche in schema:
if sche.GetType() == ogr.OFTBinary:
sche.SetType(ogr.OFTInteger)
return schema