Code Monkey home page Code Monkey logo

isybau2qgep's People

Contributors

tschuettenberg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

isybau2qgep's Issues

Verbindung mit Xerces-C 3.2

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

RuntimeError: global type 'simpleType:EinheitZielgroesseType' declared more than once

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...

Set the schema files (*.xsd) in the ISYBAU XML file

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!

v_flaechengeometrien funktioniert nicht, wenn ident_daten_stamm_abwasanlag_geome_geome_polygo_polygo_kante unvollständige Umrisse enthält

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.