def parseSourceConfig(self,sc): '''If a user supplied their own LDS connection string, parse out relevant values''' self.source_str = sc #check for dates to set incr ufd = LU.getDateStringFromURL('from',sc) if ufd: ufds = ufd.group(1) ldslog.warn("Using 'from:' date string from supplied URL "+str(ufds)) self.fromdate = ufds utd = LU.getDateStringFromURL('to',sc) if utd: utds = utd.group(1) ldslog.warn("Using 'to:' date string from supplied URL "+str(utds)) self.todate = utds #if doing incremental we also need to check changeset if (utd or ufd) and not LU.checkHasChangesetIdentifier(sc): raise InputMisconfigurationException("'changeset' identifier required for incremental LDS query") #all going well we can now get the layer string. This isn't optional so we just set it self.layer = LU.getLayerNameFromURL(sc) ldslog.warn('Using layer selection from supplied URL '+str(self.layer))