def defineCharacteristics(self): self.addParameter(ParameterVector(self.INPUT_LAYER, self.tr('Input layer'))) extent_parameter = ParameterExtent(self.TARGET_AREA, self.tr('Target area for layer'), self.INPUT_LAYER) extent_parameter.skip_crs_check = True self.addParameter(extent_parameter) self.addParameter(ParameterCrs(self.TARGET_AREA_CRS, 'Target area CRS')) self.addOutput(OutputHTML(self.OUTPUT_HTML_FILE, self.tr('Candidates')))
def initAlgorithm(self, config=None): self.addParameter(ParameterVector(self.INPUT_LAYER, self.tr('Input layer'))) extent_parameter = ParameterExtent(self.TARGET_AREA, self.tr('Target area for layer'), self.INPUT_LAYER) extent_parameter.skip_crs_check = True self.addParameter(extent_parameter) self.addParameter(ParameterCrs(self.TARGET_AREA_CRS, 'Target area CRS')) self.addOutput(OutputHTML(self.OUTPUT_HTML_FILE, self.tr('Candidates')))
def defineCharacteristics(self): self.name, self.i18n_name = self.trAlgorithm('Find projection') self.group, self.i18n_group = self.trAlgorithm('Vector general tools') self.tags = self.tr('crs,srs,coordinate,reference,system,guess,estimate,finder,determine') self.addParameter(ParameterVector(self.INPUT_LAYER, self.tr('Input layer'))) extent_parameter = ParameterExtent(self.TARGET_AREA, self.tr('Target area for layer'), self.INPUT_LAYER) extent_parameter.skip_crs_check = True self.addParameter(extent_parameter) self.addParameter(ParameterCrs(self.TARGET_AREA_CRS, 'Target area CRS')) self.addOutput(OutputHTML(self.OUTPUT_HTML_FILE, self.tr('Candidates')))