-
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 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> |
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 subprocess | |
import platform | |
import re | |
import threading | |
from qgis.PyQt import QtWidgets, uic, QtCore | |
from qgis.core import QgsProject, QgsVectorLayer, QgsFeature, QgsField, QgsMessageLog, Qgis, QgsApplication, QgsWkbTypes | |
from qgis.utils import iface |
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
Traceback (most recent call last): | |
File "/usr/local/lib/python3.10/dist-packages/importer/celery_tasks.py", line 235, in publish_resource | |
_publisher.publish_resources(data) | |
File "/usr/local/lib/python3.10/dist-packages/importer/publisher.py", line 69, in publish_resources | |
result = self.handler.publish_resources( | |
File "/usr/local/lib/python3.10/dist-packages/importer/handlers/common/vector.py", line 146, in publish_resources | |
raise e | |
File "/usr/local/lib/python3.10/dist-packages/importer/handlers/common/vector.py", line 134, in publish_resources | |
catalog.publish_featuretype( | |
File "/usr/local/lib/python3.10/dist-packages/geoserver/catalog.py", line 935, in publish_featuretype |
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
adf |
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 IIIF from 'ol/source/IIIF.js'; | |
import IIIFInfo from 'ol/format/IIIFInfo.js'; | |
import Map from 'ol/Map.js'; | |
import TileLayer from 'ol/layer/Tile.js'; | |
import View from 'ol/View.js'; | |
import { fromLonLat } from 'ol/proj.js'; | |
const map = new Map({ | |
target: 'map', |
NewerOlder