-
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
This file contains 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 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 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 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 |
-
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 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 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'): |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<StyledLayerDescriptor version="1.0.0" | |
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" | |
xmlns="http://www.opengis.net/sld" | |
xmlns:ogc="http://www.opengis.net/ogc" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<NamedLayer> | |
<Name>16bit_greyscale</Name> | |
<UserStyle> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld | |
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0"> | |
<NamedLayer> | |
<Name>geonode_RLM_14160_RLM_14209_mosaik_georef</Name> | |
<UserStyle> | |
<Title>A raster style</Title> | |
<FeatureTypeStyle> | |
<Rule> | |
<RasterSymbolizer> |
NewerOlder