Comments (5)
I've not seen this issue before. As well as the layer data, are you able to share a copy of the QGIS project file, with all layers removed apart from that Checkpoints one? The issue seems to be in the marker style export code, but why it is trying to use base64 encoding, I have no idea. We would need to recreate the issue to be able to debug it, and for that, we need the simplified project file.
from qgis2web.
As Tom wrote to you, try to provide the complete project if possible.
The shape file has no problem, here is the openlayers and leafleat export
from qgis2web.
Thank you for looking into this. I am including two versions of the project file. Both are derived from the project file that my student sent to me. As an additional check I tried exporting a map after removing all the other layers, and the error still occurred. Here is just the project file (I placed it in a zip archive because the server would not accept a qgz file):
movement.zip
I also saved a copy of the project with the checkpoints file using the Save All plugin:
movementsaveall.zip
I tried exporting the map with all the layers other than the checkpoints, and encountered an additional problem. I am not sure if this is the same issue or something different. When I export the map to a local folder, I am able to export the map without the checkpoints successfully. When I try to export the same map directly to the web server using FTP, however, I receive the following error:
An error has occurred while executing Python code:
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Traceback (most recent call last):
File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/maindialog.py", line 354, in saveMap
result = self.exporter.postProcess(results, feedback=self.feedback)
File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/exporter.py", line 367, in postProcess
if not uploadPath(os.path.join('.', source_folder)):
File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/exporter.py", line 361, in uploadPath
if not uploadPath(current_path):
File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/exporter.py", line 352, in uploadPath
feedback.setProgress(
File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/feedbackDialog.py", line 160, in setProgress
self.progressBar.setValue(progress)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
QGIS version: 3.22.4-Białowieża Białowieża, exported
Python Path:
/usr/share/qgis/python
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_resource_sharing
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_resource_sharing/ext_libs
/home/napoletano/Dropbox/datos/brandon-tesis/gisproject/gettinghelp
This is a different error, but equally baffling to me. The layer in question contains two fields with floating point data, X and Y GPS coordinates.
We also had some initial trouble with another map, but managed to export it successfully after I gave him a 30m SRTM model to replace the 10m ASTER model he was using to display elevation and hillshade (that map also uses some data from the same source, and an incomplete version is online here: http://palestina.napoletano.net/gismaps/asentamientos/. In this case he was able to publish the map directly to the web using FTP, despite the initial troubles.
from qgis2web.
I think the problems derive from the svg icon used for the Checkpoints.shp layer stored in movementsaveall.zip
Try using a standard symbology or changing the svg icon.
If the first problem (base64) resolves, try to see if you still get the error saving to FTP. But here there are many hypotheses, what do you use? FTP or SFTP? Have you set a password? ...
from qgis2web.
Thank you Andrea. I had my student follow your suggestion, and he was able to export the map directly to the server using a standard symbology. Thus, it seems to that the same issue was responsible for the errors on both fronts. The export was done vía FTP, using the options included in the qgis2web plugin and a password. He reports receiving no errors with the standard symbology.
from qgis2web.
Related Issues (20)
- Overlapping polygons do not show on web report HOT 3
- Qgis2web crashes in different computers and with different qgis versions and projects HOT 1
- FILTERS in Qgis2Web HOT 2
- QGIS2web keeps failing with python errors HOT 13
- qgis2web 3.18.2 crashs since QGIS v3.36.0 at Win & Mac HOT 1
- Nested layer groups are still not supported HOT 1
- Warning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated HOT 3
- Learning how to contribute HOT 1
- UKHab Style Sets Not Working HOT 9
- The export contains malware HOT 4
- max-height of popup-content HOT 2
- Python error HOT 1
- Unable to export with openlayers HOT 12
- Blank preview and map HOT 5
- Python error HOT 4
- WMS Map from geoportale.regione.lazio.it not showed HOT 4
- Incorrect translation from Dutch names (look like English) in the Dutch language again. HOT 2
- popup join data - popup link - popup video HOT 3
- qgis2web plugin produces a webmap with an 'image' icon instead of the attached image. HOT 11
- Layer Search not working with Geopackage fid HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis2web.