QGIS:创建我的项目的HTML网络地图时出现问题

问题描述

在解决我的项目之后,我已将其导出到GeoPDF,并且还想创建一个HTML版本。

在插件管理器中添加了qgis2web,重新启动了QGIS。

当我选择Web / qgis2web /创建网络地图时,该程序为我提供了2-3分钟的旋转鼠标,然后显示了一些Python错误,这超出了我的薪水等级。

QGIS 3.15
GDAL 3
Python 3.7
OSX High Sierra(10.13.6)
Mac mini 2011年中期
2.3 GHz i5
16 GB RAM

我收到的错误如下:

An alternative,ballpark-only transform was used when transforming coordinates between EPSG:26919 - NAD83 / UTM zone 19N and EPSG:3857 - WGS 84 / Pseudo-Mercator. The results may not match those obtained by using the preferred operation:
Possibly an incorrect choice of operation was made for transformations between these reference systems. Check the Project Properties and ensure that the selected transform operations are applicable over the whole extent of the current project.

2020-10-25T00:43:03     WARNING    Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.
2020-10-25T00:43:03     WARNING    Used a ballpark transform from EPSG:26919 to EPSG:3857

Python Error
2020-10-25T00:43:03     WARNING    Traceback (most recent call last):
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/utils.py",line 442,in exportRaster
              "OUTPUT": out_raster})
              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",line 108,in run
              return Processing.runAlgorithm(algOrName,parameters,onFinish,feedback,context)
              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",line 153,in runAlgorithm
              raise QgsProcessingException(msg)
             _core.QgsProcessingException: Unable to execute algorithm
             Could not load source layer for INPUT: /var/folders/kn/4rm9tz_s6y39mr0rvfjjq3k80000gp/T/small_point_nw121603600920_piped_3857.tif not found
             
             During handling of the above exception,another exception occurred:
             
             Traceback (most recent call last):
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/qgis2web.py",line 59,in run
              self.dlg = MainDialog(self.iface)
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/maindialog.py",line 159,in __init__
              self.autoUpdatePreview()
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/maindialog.py",line 334,in autoUpdatePreview
              self.previewMap()
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/maindialog.py",line 337,in previewMap
              preview_file = self.createPreview()
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/maindialog.py",line 300,in createPreview
              dest_folder=utils.tempFolder()).index_file
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/olwriter.py",line 91,in write
              folder=dest_folder)
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/olwriter.py",line 131,in writeOL
              popup,json,restrictToExtent,extent,matchCRS)
              File "/Users/house/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/utils.py",line 237,in exportLayers
              exportRaster(layer,count,layersFolder,iface,line 444,in exportRaster
              shutil.copyfile(piped_3857,out_raster)
              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/shutil.py",line 120,in copyfile
              with open(src,'rb') as fsrc:
             FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/kn/4rm9tz_s6y39mr0rvfjjq3k80000gp/T/small_point_nw121603600920_piped_3857.tif'


解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)