make the A_SRS parameter optional

This commit is contained in:
Giovanni Manghi 2019-10-01 19:03:23 +01:00 committed by Nyall Dawson
parent e37efdf89e
commit c7e4130140

View File

@ -96,7 +96,7 @@ class Ogr2OgrToPostGisList(GdalAlgorithm):
self.tr('Output geometry type'), options=self.GEOMTYPE,
defaultValue=0))
self.addParameter(QgsProcessingParameterCrs(self.A_SRS,
self.tr('Assign an output CRS'), defaultValue='', optional=False))
self.tr('Assign an output CRS'), defaultValue='', optional=True))
self.addParameter(QgsProcessingParameterCrs(self.T_SRS,
self.tr('Reproject to this CRS on output '), defaultValue='',
optional=True))