@@ -112,6 +112,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
112112 QgsProcessingParameterNumber (
113113 self .INPUT_DECIMATION ,
114114 "DECIMATION" ,
115+ QgsProcessingParameterNumber .Integer ,
115116 defaultValue = 1 ,
116117 optional = True ,
117118 )
@@ -121,6 +122,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
121122 QgsProcessingParameterNumber (
122123 self .INPUT_SPACING ,
123124 "SPACING" ,
125+ QgsProcessingParameterNumber .Double ,
124126 defaultValue = 200.0 ,
125127 optional = True ,
126128 )
@@ -129,7 +131,7 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
129131 self .addParameter (
130132 QgsProcessingParameterFeatureSink (
131133 self .OUTPUT ,
132- "Sampled Contacts " ,
134+ "Sampled Points " ,
133135 )
134136 )
135137
@@ -143,7 +145,7 @@ def processAlgorithm(
143145 dtm = self .parameterAsRasterLayer (parameters , self .INPUT_DTM , context )
144146 geology = self .parameterAsVectorLayer (parameters , self .INPUT_GEOLOGY , context )
145147 spatial_data = self .parameterAsVectorLayer (parameters , self .INPUT_SPATIAL_DATA , context )
146- decimation = self .parameterAsDouble (parameters , self .INPUT_DECIMATION , context )
148+ decimation = self .parameterAsInt (parameters , self .INPUT_DECIMATION , context )
147149 spacing = self .parameterAsDouble (parameters , self .INPUT_SPACING , context )
148150 sampler_type_index = self .parameterAsEnum (parameters , self .INPUT_SAMPLER_TYPE , context )
149151 sampler_type = ["Decimator" , "Spacing" ][sampler_type_index ]
0 commit comments