Error When Inputting Soil and Landuse Rasters

15 views
Skip to first unread message

Matthew Lombardo

unread,
Sep 3, 2025, 11:16:08 PMSep 3
to SWAT+

Hi everyone,

My name is Matt Lombardo and I am a new QGIS and SWAT+ user. I’m a master’s student at UConn and I’m trying to use SWAT+ to create a model for my thesis project. I’m getting this error code, which is at the bottom of the message, when I input both my soil and landuse rasters into their respective places. When I put the error code into ChatGPT it told me the error is from when QGIS is trying to clip the soil and landuse rasters to the DEM. To fix this I’ve tried to use DEM’s from different sources, I messed with the cellsize of my rasters, I expanded my area of interest, and played with the projections but nothing has worked. I have limited experience with ArcGIS Pro and no experience with QGIS so I ran out of ideas fast. Has anyone seen this error before and knows how to fix it? I’ve also included my sources for my files if that helps. For the soil raster, I downloaded a geodatabase from SSURGO and converted it to a raster using the instructions on the SWAT+ Global Data page.

DEM: CT ECO (https://experience.arcgis.com/experience/f884c9fd806b4a3e8f464f0c5991bb65/ )

Stream Shapefile: CT DEEP Hydrography Database (https://experience.arcgis.com/experience/f884c9fd806b4a3e8f464f0c5991bb65/)

Lake Shapefile: CT DEEP Hydrography Database (https://experience.arcgis.com/experience/f884c9fd806b4a3e8f464f0c5991bb65/)

Landuse Raster: NLCD (https://www.mrlc.gov/viewer/)

Soil Raster: SSURGO (http://datagateway.nrcs.usda.gov/)

 

Error Message:

2025-09-01T10:07:17 CRITICAL ERROR 1: Error: -srcwin 89835 81277 -114007 -107357 has negative width and/or height. 2025-09-01T10:07:17 INFO Input file size is 52862, 49946

 

Thank you for your time and consideration!

Chris George

unread,
Sep 4, 2025, 8:22:42 AMSep 4
to Matthew Lombardo, SWAT+
My guess is that you have assigned a projection to your soil and/or
landuse map rather than properly reprojecting them. Try pressing the
Zoom Full button in QGIS and if your project splits into two isolated
dots this is the problem. QGIS unfortunately does reprojection "on the
fly" which makes this problem hard to spot from the normal display.

Otherwise, right click on your raster entries in the legend panel,
select Properties and then Information and check the extents (which
should overlap) and the pixel sizes, which should be reasonable numbers
for the pixel sizes in metres, e.g. "30, -30".

Chris

On 9/2/2025 6:07 PM, Matthew Lombardo wrote:
> Hi everyone, My name is Matt Lombardo and I am a new QGIS and SWAT+
> user. I’m a master’s student at UConn and I’m trying to use SWAT+ to
> create a model for my thesis project. I’m getting this error code, which
> is at the bottom of the message,
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
>
> Hi everyone,
>
> My name is Matt Lombardo and I am a new QGIS and SWAT+ user. I’m a
> master’s student at UConn and I’m trying to use SWAT+ to create a model
> for my thesis project. I’m getting this error code, which is at the
> bottom of the message, when I input both my soil and landuse rasters
> into their respective places. When I put the error code into ChatGPT it
> told me the error is from when QGIS is trying to clip the soil and
> landuse rasters to the DEM. To fix this I’ve tried to use DEM’s from
> different sources, I messed with the cellsize of my rasters, I expanded
> my area of interest, and played with the projections but nothing has
> worked. I have limited experience with ArcGIS Pro and no experience with
> QGIS so I ran out of ideas fast. Has anyone seen this error before and
> knows how to fix it? I’ve also included my sources for my files if that
> helps. For the soil raster, I downloaded a geodatabase from SSURGO and
> converted it to a raster using the instructions on the SWAT+ Global Data
> page.
>
> DEM: CT ECO (https://experience.arcgis.com/experience/
> f884c9fd806b4a3e8f464f0c5991bb65/ )
>
> Stream Shapefile: CT DEEP Hydrography Database (https://
> experience.arcgis.com/experience/f884c9fd806b4a3e8f464f0c5991bb65/
> <https://urldefense.com/v3/__https://experience.arcgis.com/experience/
> f884c9fd806b4a3e8f464f0c5991bb65/__;!!KwNVnqRv!HIISc2TTptdgLX79azo32u-
> Yb5Kka9TWDd32dJii4o1Nr7JmWA3dO0r5PEMCqSyCaaM7hBwjXCWdnrMdQLUxMQ6Ulg$>)
>
> Lake Shapefile: CT DEEP Hydrography Database (https://
> experience.arcgis.com/experience/f884c9fd806b4a3e8f464f0c5991bb65/
> <https://urldefense.com/v3/__https://experience.arcgis.com/experience/
> f884c9fd806b4a3e8f464f0c5991bb65/__;!!KwNVnqRv!HIISc2TTptdgLX79azo32u-
> Yb5Kka9TWDd32dJii4o1Nr7JmWA3dO0r5PEMCqSyCaaM7hBwjXCWdnrMdQLUxMQ6Ulg$>)
>
> Landuse Raster: NLCD (https://www.mrlc.gov/viewer/ <https://
> urldefense.com/v3/__https://www.mrlc.gov/viewer/__;!!KwNVnqRv!
> HIISc2TTptdgLX79azo32u-
> Yb5Kka9TWDd32dJii4o1Nr7JmWA3dO0r5PEMCqSyCaaM7hBwjXCWdnrMdQLXlSO2U2Q$>)
>
> Soil Raster: SSURGO (http://datagateway.nrcs.usda.gov/)
>
> *Error Message*:
>
> 2025-09-01T10:07:17 CRITICAL ERROR 1: Error: -srcwin 89835 81277 -114007
> -107357 has negative width and/or height. 2025-09-01T10:07:17 INFO Input
> file size is 52862, 49946
>
> Thank you for your time and consideration!
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swatplus+u...@googlegroups.com
> <mailto:swatplus+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swatplus/82cd5d33-6128-4cf8-b41d-5e87587f4aaan%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> swatplus/82cd5d33-6128-4cf8-b41d-5e87587f4aaan*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> HIISc2TTptdgLX79azo32u-
> Yb5Kka9TWDd32dJii4o1Nr7JmWA3dO0r5PEMCqSyCaaM7hBwjXCWdnrMdQLXDjBOVtQ$>.

Reply all
Reply to author
Forward
0 new messages