Skip to content

Commit b17b8c5

Browse files
authored
Merge pull request #50 from ar-siddiqui/dev/2.2.2
2 parents 831f6ba + 3d380d1 commit b17b8c5

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"workbench.colorTheme": "Solarized Dark",
3-
"python.formatting.provider": "black"
3+
"python.formatting.provider": "none",
4+
"[python]": {
5+
"editor.defaultFormatter": "ms-python.black-formatter"
6+
}
47
}

curve_number_generator/metadata.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name=Curve Number Generator
77
qgisMinimumVersion=3.18
88
description=Curve Number Generator plugin has multiple algorithms to generate the curve number layer for any area of interest using different datasets.
9-
version=2.1.1
9+
version=2.1.2
1010
author=Abdul Raheem Siddiqui
1111
email=ars.work.ce@gmail.com
1212

@@ -21,7 +21,9 @@ repository=https://github.com/ar-siddiqui/curve_number_generator
2121

2222
hasProcessingProvider=yes
2323
# Uncomment the following line and add your changelog:
24-
changelog= Version 2.1.1 - 2023-03-19
24+
changelog= Version 2.1.2 - 2023-05-24
25+
- conus_nlcd_ssurgo: Fix missing data on corners of a rectangle AOI
26+
Version 2.1.1 - 2023-03-19
2527
- Fix custom algorithm formula
2628
Version 2.1.0 - 2022-09-11
2729
- Remove plugin from plugin menu

curve_number_generator/processing/algorithms/conus_nlcd_ssurgo/conus_nlcd_ssurgo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171

7272

7373
class ConusNlcdSsurgo(CurveNumberGeneratorAlgorithm):
74-
7574
# Constants used to refer to parameters and outputs. They will be
7675
# used when calling the algorithm from another algorithm, or when
7776
# calling from the QGIS console.
@@ -80,7 +79,6 @@ class ConusNlcdSsurgo(CurveNumberGeneratorAlgorithm):
8079
INPUT = "INPUT"
8180

8281
def initAlgorithm(self, config=None):
83-
8482
self.addParameter(
8583
QgsProcessingParameterFeatureSource(
8684
"aoi",
@@ -176,6 +174,8 @@ def processAlgorithm(self, parameters, context, model_feedback):
176174

177175
checkAreaLimits(area_acres, 100000, 500000, feedback=feedback)
178176
extent = getExtent(area_layer)
177+
# add a buffer cell on each side, refer to #49 for reasoning
178+
extent = (extent[0] - 30, extent[1] - 30, extent[2] + 30, extent[3] + 30)
179179
bbox_dim = createRequestBBOXDim(extent, 30)
180180

181181
# NLCD Impervious Raster
@@ -357,7 +357,6 @@ def processAlgorithm(self, parameters, context, model_feedback):
357357

358358
# # Curve Number Calculations
359359
if parameters.get("CurveNumber", None):
360-
361360
# Prepare Land Cover for Curve Number Calculation
362361
# Polygonize (raster to vector)
363362
outputs["NLCDLandCoverPolygonize"] = gdalPolygonize(

curve_number_generator/processing/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Constants
2-
PLUGIN_VERSION = "2.1.1"
2+
PLUGIN_VERSION = "2.1.2"
33

44
REGISTRATION_FORM_LINK = (
55
"https://docs.google.com/forms/d/e/1FAIpQLSe-X-OR6tFvULP6oiiPK3M49-v07sjtxTu8md9XAuBOwxk7Xg/formResponse"

0 commit comments

Comments
 (0)