Remove edge in QGIS
How to remove the horizontal line on this shape?
If I delete the vertices on either side, the shape will be altered. I don't want to delete the vertices, just the edge.
As you see I've tried dissolve, but it does not help.
See also questions close to this topic
Running a QGIS script from batch file
I am trying to modify the default batch script that is starting QGIS3, so that it will also run a python script in the QGIS project. The scripts is running fine until I am asking it to use the QInputFileDialog.
Here is my code for the batch file to run QGIS:
@echo off call "%~dp0\o4w_env.bat" call qt5_env.bat call py3_env.bat @echo off path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH% set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis set GDAL_FILENAME_IS_UTF8=YES rem Set VSI cache to be used as buffer, see #6448 set VSI_CACHE=TRUE set VSI_CACHE_SIZE=1000000 set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins start "QGIS" /B "%OSGEO4W_ROOT%\bin\qgis-bin.exe" %* call ScriptControl.bat
Here is the script for the second batch file to run the python file:
"C:\Program Files\QGIS 3.12\apps\Python37\python.exe" "PathToFile\QKontrol.py" pause
And the code for the enter code here python scrtipt:
from qgis.core import * from PyQt5 import * import os from os import * mypath = QgsApplication.qgisSettingsDirPath() splittet = mypath.split('\\') s1 = splittet.pop() print(splittet) from qgis.utils import iface print(QgsProject.baseName) r = os.path.join(s1) #r = os.path.join(*s1) print(r) try: a = QgsUserProfileManager(r).allProfiles() print(len(a)) if len(a) < 2: import PyQt5 #Here is where the code goes wrong Q, a1 = PyQt5.QtWidgets.QInputDialog.getText(None, 'Create new user profile', 'Type User ID') QgsUserProfileManager(r).createUserProfile() print(Q) print('Operation Possible') except: print('Error in running the code')
The error message in the command prompt is as follows: 'QWidget: Must construct a QApplication before a QWidget' And then the python itself crashes..
I hope that somebody can help me to understand whats going on, why the Dialog makes a big trouble, and how I can solve this problem.
How to solve Chinese Postman
newbie here. How can I build and solve the Chinese Postman Problem for a route planning reserved to a vehicle like a garbage truck?
QGIS get stuck when running Zonal Statistics on a big raster image
When I run Zonal Statistics on a big raster image (12 GB) the script gets stuck after an hour. Any ideas how do I prevent it? (I do not want to change the grid size)