当前位置: 首页>>代码示例>>Python>>正文


Python LDSUtilities.enum方法代码示例

本文整理汇总了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
开发者ID:josephramsay,项目名称:LDS,代码行数:33,代码来源:TransferProcessor.py


注:本文中的lds.LDSUtilities.LDSUtilities.enum方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。