-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: global type 'simpleType:EinheitZielgroesseType' declared more than once #46
Comments
Hi, Thanks. Could you upload the file(s) that cause the error so that we can take a look ? |
Hi! with these schemas: Thanks! |
…RGM/gml_application_schema_toolbox#46) git-svn-id: https://svn.osgeo.org/gdal/trunk@40958 f0d54148-0727-0410-94bb-9a71ac55c965
…RGM/gml_application_schema_toolbox#46) git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@40958 f0d54148-0727-0410-94bb-9a71ac55c965
…l_application_schema_toolbox#46) git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@40959 f0d54148-0727-0410-94bb-9a71ac55c965
…l_application_schema_toolbox#46) git-svn-id: https://svn.osgeo.org/gdal/trunk@40959 f0d54148-0727-0410-94bb-9a71ac55c965
I'm unable to reproduce the issue on Linux (Ubuntu 16.04). I have had to do a few above adjustments, but they are unrelated to the issue you get. Here's what I get (with above fixes, and reverting your commmenting out of <xsd:include schemaLocation=".\1302-referenzlisten.xsd"/>. Note: I had to remove the comment in the middle of the element in the XML file itself, since this is invalid XML
Perhaps this is a OSGeo4W specific issue. Apparently OSGeo4W uses Xerces 3.1.1 ( http://download.osgeo.org/osgeo4w/x86_64/release/xerces-c/ ), which is not the latest one. But I also tested it with it on Linux, and that works. Wondering if that might not be an issue with the Xerces build still using VS 2010 whereas GDAL is now built with VS 2015. |
So you say it ist not a matter of Xerces version, because 3.1.1 (which is part of OSGeo4W, that I use) works on Linux? But the different version of Visual Studio that xerces was build with causes this issue?? |
If there was an issue of incompatibilities between Visual Studio version, I would expect hard crashes, not a "clean error" as you get. So I don't know why this doesn't work on OSGeo4W |
I updated my OsGeo4W setup this morning and xerces-c (3.2.0-1) was added.
so, apart from the 'Unhandled type: gYearMonth' fixed by Even in gdal-svn this should be ok |
Thanks @jef-n for the OSGeo4W update ! |
I also just updated my OSGeo4W (64bit), xerces-c xerces-c-bin xerces-c-devel 3.2.0-1 installed,
The messages are explicit now, so I think the new xerces is actualy used. - What am I missing ? |
@tschuettenberg Are you sure you've attached the exact files you are testing (with the same file hieararchy) ? It seems weird that it works for @sgrellet and not for you with the same software configuration. I could reproduce on Linux errors like the ones you get by modifying one of the xsd, e.g 1302-metadaten.xsd by modifying the <xsd:include schemaLocation=".\1302-referenzlisten.xsd"/> to something slightly different but that resolves at the end to the same file, for example <xsd:include schemaLocation="../1302-referenzlisten.xsd"/> . It might also occur if you use both relative path and absolute path in inclusion directives. |
@rouault I double cross checked with the same files I provided (re-downloaded them) and I think I found the mistake:
of @sgrellet worked, because this Sorry, clearly my fault, because the first one was/is also still refrerenced in
I also tried some variants of the strange / \ relativ paths and combinations, like you mentioned, but could not find any further solution. That means the error still occurs every time the path to an unchanged metadaten.xsd can be resolved, whether it is absolut or relative. And also no matter if it is done with -oo xsd or with my unprofessional xml edit. |
Are you using gdal-dev ? The fix OSGeo/gdal@e29945d might be needed |
In OSGeo4W Setup I see gdal-dev 2.3.0-40961 installed. (does it realy work on Linux with unchanged 1302-metadaten.xsd or have you been tricked as well?) |
You need to run the "gdal-env-dev.bat" script. It works on Linux with 1302-metadaten.xsd with <xsd:include schemaLocation=".\1302-referenzlisten.xsd"/> uncommented |
I'm sorry to cause so much trouble and I very much appreciate your help! Seems like I'm too stupid. Still no effect: |
run them from the osgeo4w shell - only in that session gdal-dev will be enabled:
|
D'oh! Why couldn't I just stumble upon this?? |
Hi there, first of all, this is realy great stuff you're doing here!
I'm trying to use the GMLAS toolbox / driver on the german specific wastewater data format "ISYBAU Austauschformate Abwasser (XML)" - see here - and it works realy quite well.
But I came across some questions when reading ISYBAU files and I know this one relates only to the specific ISYBAU.xsd (and therefore might be off topic for you) but maybe you can give me a clue anyway.
When reading ISYBAU files (with 'metadaten.xsd' reference added to the header) 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
Unfortunately 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
whereEinheitZielgroesseType
is mentioned (line 12):Probably my xml knowledge is insufficient, but I'm also not able to reproduce this error with e.g. xmlspy.
But maybe the GMLAS driver is (too) picky on this??
The failure with OGR (OSGeo4W Shell) is unspecific, by the way.
ERROR 3: Cannot open
...A workaround to make the opening/reading with GMLAS run is to comment the include of 'referenzlisten.xsd' out:
1302-metadaten.xsd
, line 10<!-- <xsd:include schemaLocation=".\1302-referenzlisten.xsd"/> -->
The text was updated successfully, but these errors were encountered: