Merge pull request #4132 from NaturalGIS/fix_ogr_postgis_mandatory_params

[processing] make ogr postgis parameters mandatory where needed
This commit is contained in:
Alexander Bruy 2017-02-10 18:04:12 +02:00 committed by GitHub
commit f7380c1b6f
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class Ogr2OgrToPostGis(GdalAlgorithm):
self.addParameter(ParameterSelection(self.GTYPE,
self.tr('Output geometry type'), self.GEOMTYPE, 0))
self.addParameter(ParameterCrs(self.A_SRS,
self.tr('Assign an output CRS'), '', optional=True))
self.tr('Assign an output CRS'), '', optional=False))
self.addParameter(ParameterCrs(self.T_SRS,
self.tr('Reproject to this CRS on output '), '', optional=True))
self.addParameter(ParameterCrs(self.S_SRS,

View File

@ -105,7 +105,7 @@ class Ogr2OgrToPostGisList(GdalAlgorithm):
self.addParameter(ParameterSelection(self.GTYPE,
self.tr('Output geometry type'), self.GEOMTYPE, 0))
self.addParameter(ParameterCrs(self.A_SRS,
self.tr('Assign an output CRS'), '', optional=True))
self.tr('Assign an output CRS'), '', optional=False))
self.addParameter(ParameterCrs(self.T_SRS,
self.tr('Reproject to this CRS on output '), '', optional=True))
self.addParameter(ParameterCrs(self.S_SRS,