tschuettenberg / isybau2qgep Goto Github PK
View Code? Open in Web Editor NEWUsing the german specific wastewater data format "ISYBAU XML" in QGIS and QGEP
Home Page: https://qgis.de/doku.php?id=site:abwasser:datenformate
Using the german specific wastewater data format "ISYBAU XML" in QGIS and QGEP
Home Page: https://qgis.de/doku.php?id=site:abwasser:datenformate
Bei einer real-life ISYBAU-XML Datei funktioniert bei mir der v_flaechengeometrien View nicht, da in ident_daten_stamm_abwasanlag_geome_geome_polygo_polygo_kante nicht komplette Umrisse als eine Kante gespeichert sind, sondern die Umrisse auf einzelne Kanten aufgesplittet sind. Ich habe das ganze mit folgendem SQL zum Funktionieren gebracht:
select ogr_pkid, st_makepolygon(st_linemerge(geom)) geom from ( select p.ogr_pkid, polygonart, st_setsrid(st_collect(st_makeline(st_makepoint(pk.start_rechtswert, pk.start_hochwert), st_makepoint(pk.ende_rechtswert, pk.ende_hochwert))),31468) as geom from isybau.ident_daten_stamm_abwasanlag_geome_geome_polygo_polygo_kante pk left join isybau.ident_daten_stammd_abwassanlage_geomet_geomet_polygo_polygon p on pk.parent_ogr_pkid = p.ogr_pkid where p.polygonart in (1, 2) group by p.ogr_pkid, p.polygonart) q1
When reading an ISYBAU file ('metadaten.xsd' reference added to the header) with GML Application Schema toolbox the following error is shown:
RuntimeError: C:/Users/TS/Downloads/isybau2qgep-master/1302_ISYBAU_XML_Beispieldaten\../1302_ISYBAU_XML_Schema\.\1302-referenzlisten.xsd:7056:48 global type 'simpleType:EinheitZielgroesseType' declared more than once or also declared as complexType
I don't understand this supposed multiple declaration, the types in 1302-referenzlisten.xsd are refernced form the other XSDs, but to me these are no declarations.
This is from 1302-hydraulikdaten.xsd
where EinheitZielgroesseType
is mentioned (line 12):
<xsd:complexType name="ZielgroesseType">
<xsd:sequence>
<xsd:element name="Zielgroessenkennung">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="5"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="HydObjektTyp" type="HydraulikObjektTypType"/>
<xsd:element name="ArtZielgroesse" type="ArtZielgroesseType"/>
<xsd:element name="EinheitZielgroesse" type="EinheitZielgroesseType"/>
<xsd:element name="WertZielgroesse">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="9"/>
<xsd:fractionDigits value="3"/>
<xsd:maxExclusive value="1000000"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
Probably my xml knowledge is insufficient, but I'm also not able to reproduce this error with e.g. xmlspy.
But mayby the GMLAS driver is too picky on this??
The failure with OGR (OSGeo4W Shell) is unspecific, by the way. ERROR 3: Cannot open
...
Here another approach for a transformation with an xsl transformation: https://github.com/Robinini/isybau2interlis directly to VSA-DSS-Mini, the aggregated Swiss wastewater modell for cantons or wastewater associations.
Guten Tag Herr Schüttenberg,
ich möchte Sie fragen, wie ich die Verbindung mit Xerces-C 3.2 überprüfen kann?
Ich möchte ein ISYBAU-XML Datei in PostGIS einlesen. Ich habe den GMLAS Treiber in QGIS importiert.
Vielen Dank
Freundliche Grüße
Dear users,
To load an ISYBAU file in Qgis with the GMLAS plugin, one of the prerequisites is the use of schema files (*.xsd). The following code given by @tschuettenberg here seems to not work anymore:
<Identifikation xmlns="http://www.ofd-hannover.la/Identifikation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ofd-hannover.la/Identifikation ../1302_ISYBAU_XML_Schema/1302-metadaten.xsd">
To circumvent this issue, place instead the following as header in the ISYBAU XML file:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="1302-metadaten.xsl"?>
<DATA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="1302-metadaten.xsd">
then place the ISYBAU XML file and the corresponding XSD files (1302-betriebsdaten.xsd, 1302-hydraulikdaten.xsd, 1302-metadaten.xsd, 1302-referenzlisten.xsd, 1302-stammdaten, 1302-zustandsdaten) in the same folder.
Thank you to Max D. for the tip!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.