本文整理汇总了Python中lds.LDSUtilities.LDSUtilities.checkCQL方法的典型用法代码示例。如果您正苦于以下问题:Python LDSUtilities.checkCQL方法的具体用法?Python LDSUtilities.checkCQL怎么用?Python LDSUtilities.checkCQL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lds.LDSUtilities.LDSUtilities
的用法示例。
在下文中一共展示了LDSUtilities.checkCQL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _buildCQLStr
# 需要导入模块: from lds.LDSUtilities import LDSUtilities [as 别名]
# 或者: from lds.LDSUtilities.LDSUtilities import checkCQL [as 别名]
def _buildCQLStr(self):
'''Builds a cql_filter string as set by the user appending an 'id>...' partitioning string if needed. NB. Manual partitioning is accomplished using the parameters, 'maxFeatures' to set feature quantity, a page-by-page recorded 'id' value and a 'sortBy=id' argument'''
cql = ()
maxfeat = ""
# #if implementing pagination in cql
# if self.pstart and self.psize:
# cql += (self.pkey+">"+str(self.pstart),)
# #sortBy used so last feature will have the new maximum key, saves a comparison
# maxfeat = "&sortBy="+self.pkey+"&maxFeatures="+str(self.psize)
if self.cql:
cql += (LU.checkCQL(self.cql),)
return maxfeat+"&cql_filter="+';'.join(cql) if len(cql)>0 else ""