本文整理汇总了Python中lds.LDSUtilities.LDSUtilities.enum方法的典型用法代码示例。如果您正苦于以下问题:Python LDSUtilities.enum方法的具体用法?Python LDSUtilities.enum怎么用?Python LDSUtilities.enum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lds.LDSUtilities.LDSUtilities
的用法示例。
在下文中一共展示了LDSUtilities.enum方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: InputMisconfigurationException
# 需要导入模块: from lds.LDSUtilities import LDSUtilities [as 别名]
# 或者: from lds.LDSUtilities.LDSUtilities import enum [as 别名]
from __builtin__ import classmethod
ldslog = LU.setupLogging()
class InputMisconfigurationException(Exception):
def __init__(self, msg):
super(InputMisconfigurationException,self).__init__(msg)
ldslog.error('InputMisconfigurationException :: Improperly formatted input argument, '+str(msg))
class PrimaryKeyUnavailableException(Exception): pass
class LayerConfigurationException(Exception): pass
class DatasourceInitialisationException(Exception): pass
class IncompleteParametersForInitialisation(Exception): pass
LORG = LU.enum('GROUP','LAYER')
class TransferProcessor(object):
'''Primary class controlling data transfer objects and the parameters for these'''
#Hack. To read 64bit integers we have to translate tables without GDAL's driver copy mechanism.
#Step 1 identify tables where 64 bit ints are used
#Step 2 intercept feature build and copy and overwrite with string values
#The tables listed below are ASP tables using a sufi number which is 64bit
###layers_with_64bit_ints = map(lambda s: 'v:x'+s, ('1203','1204','1205','1028','1029'))
#Note. This won't work for any layers that don't have a primary key, i.e. Topo and Hydro. Since feature ids are only used in ASP this shouldnt be a problem
LP_SUFFIX = ".layer.properties"
DEF_IE = DataStore.CONF_EXT
POLL_INTERVAL = 1