From 6bc6e2ffe756619c86b0fa2be472262496556bc8 Mon Sep 17 00:00:00 2001
From: Abdul
Date: Wed, 4 Aug 2021 08:03:59 -0400
Subject: [PATCH 1/5] add vscode color setting
---
.gitignore | 3 +--
.vscode/settings.json | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
create mode 100644 .vscode/settings.json
diff --git a/.gitignore b/.gitignore
index d0fb421..72a49d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
-# vs code files
-.vscode/settings.json
+
# .pyc files
*.pyc
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..ff45a1a
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "workbench.colorTheme": "Solarized Dark"
+}
\ No newline at end of file
From 7af4d7617b1bfa410e8dc99873911cbe46e59dfc Mon Sep 17 00:00:00 2001
From: Abdul
Date: Wed, 4 Aug 2021 08:17:04 -0400
Subject: [PATCH 2/5] change NLCD to 2019, update metadata for v 1.3
---
README.md | 8 ++++----
README.txt | 8 ++++----
__init__.py | 2 +-
curve_number_generator.py | 2 +-
curve_number_generator_algorithm.py | 20 ++++++++++----------
curve_number_generator_provider.py | 2 +-
metadata.txt | 9 ++++-----
7 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/README.md b/README.md
index 40c24b9..f994490 100644
--- a/README.md
+++ b/README.md
@@ -20,13 +20,13 @@ This algorithm generates Curve Number layer for the given Area of Interest withi
## Outputs
- NLCD Land Cover Vector:
- NLCD 2016 Land Cover Dataset Vectorized
+ NLCD 2019 Land Cover Dataset Vectorized
- NLCD Land Cover Raster:
- NLCD 2016 Land Cover Dataset
+ NLCD 2019 Land Cover Dataset
- NLCD Impervious Surface Raster:
- NLCD 2016 Impervious Surface Dataset
+ NLCD 2019 Impervious Surface Dataset
- Soil Layer:
SSURGO Extended Soil Dataset
@@ -38,7 +38,7 @@ This algorithm generates Curve Number layer for the given Area of Interest withi
Algorithm author: Abdul Raheem Siddiqui
Help author: Abdul Raheem Siddiqui
-Algorithm version: 1.2
+Algorithm version: 1.3
Contact email: ars.work.ce@gmail.com
Disclaimer: The curve number generated with this algorithm is a high level estimate and should not be used for detailed modeling or construction projects.
diff --git a/README.txt b/README.txt
index 602e6c2..0abd303 100644
--- a/README.txt
+++ b/README.txt
@@ -18,13 +18,13 @@ Certain Soils are categorized as dual category in SSURGO dataset. They have Hydr
Outputs
NLCD Land Cover Raster
-NLCD 2016 Land Cover Dataset
+NLCD 2019 Land Cover Dataset
NLCD Land Cover Vector
-NLCD 2016 Land Cover Dataset Vectorized
+NLCD 2019 Land Cover Dataset Vectorized
NLCD Impervious Surface Raster
-NLCD 2016 Impervious Surface Dataset
+NLCD 2019 Impervious Surface Dataset
Soil Layer
SSURGO Extended Soil Dataset
@@ -35,6 +35,6 @@ Generated Curve Number Layer based on Land Cover and HSG values.
Algorithm author: Abdul Raheem Siddiqui
Help author: Abdul Raheem Siddiqui
-Algorithm version: 1.2
+Algorithm version: 1.3
Contact email: ars.work.ce@gmail.com
Disclaimer: The curve number generated with this algorithm is a high level estimate and should not be used for detailed modeling or construction projects.
diff --git a/__init__.py b/__init__.py
index 84b34e1..5d37767 100644
--- a/__init__.py
+++ b/__init__.py
@@ -23,7 +23,7 @@
"""
__author__ = "Abdul Raheem Siddiqui"
-__date__ = "2021-06-19"
+__date__ = "2021-08-04"
__copyright__ = "(C) 2021 by Abdul Raheem Siddiqui"
diff --git a/curve_number_generator.py b/curve_number_generator.py
index 7aa13cf..a9922c5 100644
--- a/curve_number_generator.py
+++ b/curve_number_generator.py
@@ -23,7 +23,7 @@
"""
__author__ = "Abdul Raheem Siddiqui"
-__date__ = "2021-06-19"
+__date__ = "2021-08-04"
__copyright__ = "(C) 2021 by Abdul Raheem Siddiqui"
# This will get replaced with a git SHA1 when you do a git archive
diff --git a/curve_number_generator_algorithm.py b/curve_number_generator_algorithm.py
index 737ffdf..1b76562 100644
--- a/curve_number_generator_algorithm.py
+++ b/curve_number_generator_algorithm.py
@@ -62,14 +62,14 @@
)
__author__ = "Abdul Raheem Siddiqui"
-__date__ = "2021-06-19"
+__date__ = "2021-08-04"
__copyright__ = "(C) 2021 by Abdul Raheem Siddiqui"
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = "$Format:%H$"
-curr_version = "1.2"
+curr_version = "1.3"
class CurveNumberGeneratorAlgorithm(QgsProcessingAlgorithm):
@@ -252,11 +252,11 @@ def processAlgorithm(self, parameters, context, model_feedback):
# NLCD Impervious Raster
if nlcd_rast_imp_output == True:
- request_URL = f"https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2016_Impervious_L48/ows?version=1.3.0&service=WMS&layers=NLCD_2016_Impervious_L48&styles&crs={str(EPSGCode)}&format=image/geotiff&request=GetMap&width={str(BBOX_width_int)}&height={str(BBOX_height_int)}&BBOX={str(xmin)},{str(ymin)},{str(xmax)},{str(ymax)}&"
+ request_URL = f"https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2019_Impervious_L48/ows?version=1.3.0&service=WMS&layers=NLCD_2019_Impervious_L48&styles&crs={str(EPSGCode)}&format=image/geotiff&request=GetMap&width={str(BBOX_width_int)}&height={str(BBOX_height_int)}&BBOX={str(xmin)},{str(ymin)},{str(xmax)},{str(ymax)}&"
# Download NLCD Impervious Raster
try:
- ping_URL = "https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2016_Impervious_L48/ows"
+ ping_URL = "https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2019_Impervious_L48/ows"
r = requests.head(ping_URL, verify=False)
r.raise_for_status()
@@ -341,11 +341,11 @@ def processAlgorithm(self, parameters, context, model_feedback):
or nlcd_vect_output == True
or nlcd_rast_output == True
):
- request_URL = f"https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2016_Land_Cover_L48/ows?version=1.3.0&service=WMS&layers=NLCD_2016_Land_Cover_L48&styles&crs={str(EPSGCode)}&format=image/geotiff&request=GetMap&width={str(BBOX_width_int)}&height={str(BBOX_height_int)}&BBOX={str(xmin)},{str(ymin)},{str(xmax)},{str(ymax)}&"
+ request_URL = f"https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2019_Land_Cover_L48/ows?version=1.3.0&service=WMS&layers=NLCD_2019_Land_Cover_L48&styles&crs={str(EPSGCode)}&format=image/geotiff&request=GetMap&width={str(BBOX_width_int)}&height={str(BBOX_height_int)}&BBOX={str(xmin)},{str(ymin)},{str(xmax)},{str(ymax)}&"
# Download NLCD
try:
- ping_URL = "https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2016_Land_Cover_L48/ows"
+ ping_URL = "https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2019_Land_Cover_L48/ows"
r = requests.head(ping_URL, verify=False)
r.raise_for_status()
@@ -1100,16 +1100,16 @@ def shortHelpString(self):
If checked the algorithm will assume HSG A/B/C for each dual category soil.
Outputs
NLCD Land Cover Vector
-NLCD 2016 Land Cover Dataset Vectorized
+NLCD 2019 Land Cover Dataset Vectorized
NLCD Land Cover Raster
-NLCD 2016 Land Cover Dataset
+NLCD 2019 Land Cover Dataset
NLCD Impervious Surface Raster
-NLCD 2016 Impervious Surface Dataset
+NLCD 2019 Impervious Surface Dataset
Soil Layer
SSURGO Extended Soil Dataset
Curve Number Layer
Generated Curve Number Layer based on Land Cover and HSG values.
-
Algorithm author: Abdul Raheem Siddiqui
Help author: Abdul Raheem Siddiqui
Algorithm version: 1.2
Contact email: ars.work.ce@gmail.com
Disclaimer: The curve numbers generated with this algorithm are high level estimates and should be reviewed in detail before being used for detailed modeling or construction projects.