本文整理汇总了Python中lds.LDSUtilities.LDSUtilities.containsOnlyAlphaNumeric方法的典型用法代码示例。如果您正苦于以下问题:Python LDSUtilities.containsOnlyAlphaNumeric方法的具体用法?Python LDSUtilities.containsOnlyAlphaNumeric怎么用?Python LDSUtilities.containsOnlyAlphaNumeric使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lds.LDSUtilities.LDSUtilities
的用法示例。
在下文中一共展示了LDSUtilities.containsOnlyAlphaNumeric方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getLayerOptions
# 需要导入模块: from lds.LDSUtilities import LDSUtilities [as 别名]
# 或者: from lds.LDSUtilities.LDSUtilities import containsOnlyAlphaNumeric [as 别名]
def getLayerOptions(self,layer_id):
'''Get MS options for GEO_NAME'''
#GEOM_TYPE, OVERWRITE, LAUNDER, PRECISION, DIM={2,3}, GEOM_NAME, SCHEMA, SRID
local_opts = ['MARS Connection=TRUE']
gc = self.layerconf.readLayerProperty(layer_id,'geocolumn')
if gc:
local_opts += ['GEOM_NAME='+gc]
schema = self.confwrap.readDSProperty(self.DRIVER_NAME,'schema')
if schema is None:
schema = self.schema
if LU.assessNone(schema) and LU.containsOnlyAlphaNumeric(schema):
local_opts += ['SCHEMA='+schema]
srid = self.layerconf.readLayerProperty(layer_id,'epsg')
if srid:
local_opts += ['SRID='+srid]
return super(MSSQLSpatialDataStore,self).getLayerOptions(layer_id) + local_opts