This documentation lists all C++ functions that can be called from QML in QFIELD.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick | |
import QtQuick.Controls | |
import QtQuick.Layouts | |
import org.qfield | |
import org.qgis | |
import Theme | |
Item { | |
id: plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SECTION("ReadFileContent") | |
{ | |
// Create a temporary file with known content | |
QTemporaryFile tempFile; | |
REQUIRE(tempFile.open()); | |
const QString testContent = "This is test content for file reading"; | |
tempFile.write(testContent.toUtf8()); | |
tempFile.flush(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ===> In fileutils.h | |
/** | |
* Reads the entire content of a file and returns it as a byte array. | |
* @param filePath The path to the file to be read | |
* @return The file content as a QByteArray | |
*/ | |
Q_INVOKABLE static QByteArray readFileContent(const QString &filePath); | |
/** | |
* Writes content to a file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://open.spotify.com/playlist/6jqjwHE9vekcP51mUNxkDX?si=c195fb112dfe475e&nd=1&utm_medium=organic&_branch_referrer=H4sIAAAAAAAAA7WNywrCMBREvyZdtqa1ikIRQcWNIojgTtL0RmOvSbxJfWz8dqPgJwizGGY4nFMIzo%2BzzDsbtHqmwrkUtWmziSPbdDJU1oFJWN5XHeKhI6xOH4QVU5YvYj53%2BqOlvcTJoXii9iHWwfl6vi%2Fnoxu0clPyy279aGd7Viy8ZsVM8lGpas7zRkF%2FWMJXIxBrIds%2Fq1g%2BME3ceaJAhI6gsnQURsvkRaCASJvjoSZ790DVytYaI9LbCiVIvwEnbWGQNAEAAA%3D%3D&product=open&%24full_url=https%3A%2F%2Fopen.spotify.com%2Fplaylist%2F6jqjwHE9vekcP51mUNxkDX%3Fsi%3Dc195fb112dfe475e&feature=organic&_branch_match_id=1396474592747486974 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
download |
-
Quellverzeichnis und Zielverzeichnis auswählen
- Vor Beginn der Verarbeitung prüfen, ob Quelldaten vorhanden sind. Falls der
in
-Ordner leer ist, wird das Programm gestoppt und eine Fehlermeldung ausgegeben.
- Vor Beginn der Verarbeitung prüfen, ob Quelldaten vorhanden sind. Falls der
-
Messdateien von Quellverzeichnis kombinieren
- Mehrere Messdateien in einer Datei zusammenführen =>
out.dat
- Mehrere Messdateien in einer Datei zusammenführen =>
-
out.dat
Bereinigung3a. `Geotags standardisieren
-
Arbeitsordner erstellen (Zeile 44)
-
Originaldaten.txt anlegen
Datei mit dem Namen der Messdatei erstellen, um festzuhalten, welche Datei prozessiert wurde. (Zeile 53) -
Daten verarbeiten (Zeile 55)
- Kombinieren, Normalisieren, Standardisieren der Geotags, Neu-Nummerieren der Zeilen und Ausrichten der Datei(en).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qgis.core import QgsProject, QgsDataSourceUri | |
project = QgsProject.instance() | |
old_host = "10.130.0.3" | |
new_host = "development.com" | |
for layer_id, layer in project.mapLayers().items(): | |
if layer.providerType() == 'postgres': | |
uri = QgsDataSourceUri(layer.source()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import argparse | |
import xml.etree.ElementTree as ET | |
def get_published_layers(workspace_dir): | |
published_layers = set() | |
for root, dirs, files in os.walk(workspace_dir): | |
for file in files: | |
if file.endswith('.xml'): |
NewerOlder