Hi all,
I’m new to QGIS, teaching myself mostly via YouTube University lol. I’m trying to run r.sunmask.datetime on a 3D building dataset, over an OpenStreetMap raster layer, but it looks to me like the XYZ tile fetch via GDAL is failing and I’m not sure how to correct the issue. Am I missing something obvious in the log? Thanks in advance.
QGIS version: 3.32.1-Lima
QGIS code revision: 4a078ecf63
Qt version: 5.15.3
Python version: 3.9.5
GDAL version: 3.7.1
GEOS version: 3.12.0-CAPI-1.18.0
PROJ version: Rel. 9.2.1, June 1st, 2023
PDAL version: 2.5.5 (git-version: a7569c)
Algorithm started at: 2023-08-07T16:35:37
Algorithm ‘r.sunmask.datetime’ starting…
Input parameters:
{ ‘-s’ : False, ‘-z’ : True, ‘GRASS_RASTER_FORMAT_META’ : ‘’, ‘GRASS_RASTER_FORMAT_OPT’ : ‘’, ‘GRASS_REGION_CELLSIZE_PARAMETER’ : 0, ‘GRASS_REGION_PARAMETER’ : ‘-122.511888567,-119.841299649,37.620294204,37.887902553 [EPSG:4326]’, ‘day’ : 21, ‘east’ : ‘-122.419224’, ‘elevation’ : ‘crs=EPSG:3857&format&type=xyz&url=https://tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0&http-header:referer=’, ‘hour’ : 12, ‘minute’ : 0, ‘month’ : 12, ‘north’ : ‘37.773120’, ‘output’ : ‘TEMPORARY_OUTPUT’, ‘second’ : 0, ‘timezone’ : -8, ‘year’ : 2023 }
g.proj -c wkt=“C:/Users/dtwit/AppData/Local/Temp/processing_ulcvyS/b033abdfa37d4fb1b21aadf4794af42e/crs.prj”
r.in.gdal input=“crs=EPSG:3857&format&type=xyz&url=https:[tile.openstreetmap.org](http://tile.openstreetmap.org)%7Bz%7D%7Bx%7D%7By%7D.png&zmax=19&zmin=0&http-header:referer=” band=1 output=“rast_64d17fc952aca2” --overwrite -o
g.region n=37.887902553 s=37.620294204 e=-119.841299649 w=-122.511888567 res=1.0
r.sunmask elevation=rast_64d17fc952aca2 year=2023 month=12 day=21 hour=12 minute=0 second=0 timezone=-8 east=“-122.419224” north=“37.773120” -z output=outputdb7a57ec0eaa48d08058a88cc1ba4166 --overwrite
g.region raster=outputdb7a57ec0eaa48d08058a88cc1ba4166
r.out.gdal -t -m input=“outputdb7a57ec0eaa48d08058a88cc1ba4166” output=“C:\Users\dtwit\AppData\Local\Temp\processing_ulcvyS\272688360bfa469981b0f220db60fb5f\output.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” --overwrite
WARNING: Concurrent mapset locking is not supported on Windows
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>chcp 1252 1>NUL
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>g.proj -c wkt=“C:/Users/dtwit/AppData/Local/Temp/processing_ulcvyS/b033abdfa37d4fb1b21aadf4794af42e/crs.prj”
WARNING: Updating spatial reference with embedded proj4 definition
Default region was updated to the new projection, but if you have multiple mapsets g.region -d
should be run in each to update the region from the default
Projection information updated
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>r.in.gdal input=“crs=EPSG:3857&format&type=xyz&url=https:[tile.openstreetmap.org](http://tile.openstreetmap.org)\BzD\BxD\ByD.png&zmax=19&zmin=0&http-header:referer=” band=1 output=“rast_64d17fc952aca2” --overwrite -o
ERROR: Unable to open datasource <crs=EPSG:3857&format&type=xyz&url=https:[tile.openstreetmap.org](http://tile.openstreetmap.org)\BzD\BxD\ByD.png&zmax=19&zmin=0&http-header:referer=>
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>g.region n=37.887902553 s=37.620294204 e=-119.841299649 w=-122.511888567 res=1.0
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>r.sunmask elevation=rast_64d17fc952aca2 year=2023 month=12 day=21 hour=12 minute=0 second=0 timezone=-8 east=“-122.419224” north=“37.773120” -z output=outputdb7a57ec0eaa48d08058a88cc1ba4166 --overwrite
Calculating sun position… (using solpos (V. 11 April 2001) from NREL)
Time (12:00:00) is after sunset (09:58:56)
WARNING: Nothing to calculate. Please verify settings.
ERROR: Raster map <rast_64d17fc952aca2> not found
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>g.region raster=outputdb7a57ec0eaa48d08058a88cc1ba4166
ERROR: Raster map not found
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>r.out.gdal -t -m input=“outputdb7a57ec0eaa48d08058a88cc1ba4166” output=“C:\Users\dtwit\AppData\Local\Temp\processing_ulcvyS\272688360bfa469981b0f220db60fb5f\output.tif” format=“GTiff” createopt=“TFW=YES,COMPRESS=LZW” --overwrite
ERROR: Raster map or group not found
C:\Users\dtwit\Dropbox\Consulting\EBI Consulting\San Francisco CA>exit
Press any key to continue . . .
Execution completed in 1.10 seconds
Results:
{‘output’: ‘C:\Users\dtwit\AppData\Local\Temp\processing_ulcvyS\272688360bfa469981b0f220db60fb5f\output.tif’}
Loading resulting layers
The following layers were not correctly generated.
• C:/Users/dtwit/AppData/Local/Temp/processing_ulcvyS/272688360bfa469981b0f220db60fb5f/output.tif