[xsd-users] CityGML 1.0.0 and C++/Parser interface

Oleg Dedkow odedkow at gmx.de
Wed Apr 15 14:12:24 EDT 2009


Hey All,

 

I’m trying to generate C++ classes for the CityGML 1.0.0 schemas (please, see the attached ZIP file) using C++/Parser interface. I’m using xsd 3.2.0 and was able to generate C++ classes using C++/Tree interface. However, this does not fit my needs, since I have to handle very large CityGML files that could not fit into memory.  I get the following error using C++/Parser interface:

 

                CityGML\..\3.1.1\base\dictionary.xsd:43:79: error: unable to match restricted particle

 

I’m using the following command line:

 

xsd cxx-parser --generate-inline --generate-polymorphic --file-per-type --output-dir gen --namespace-map http://www.opengis.net/citygml/1.0=CityGML --namespace-map http://www.citygml.org/citygml/profiles/base/1.0=CityGML --namespace-map http://www.opengis.net/citygml/appearance/1.0=CityGML --namespace-map http://www.opengis.net/citygml/building/1.0=CityGML --namespace-map http://www.opengis.net/citygml/cityfurniture/1.0=CityGML --namespace-map http://www.opengis.net/citygml/cityobjectgroup/1.0=CityGML --namespace-map http://www.opengis.net/citygml/generics/1.0=CityGML --namespace-map http://www.opengis.net/citygml/landuse/1.0=CityGML --namespace-map http://www.opengis.net/citygml/relief/1.0=CityGML --namespace-map http://www.opengis.net/citygml/transportation/1.0=CityGML --namespace-map http://www.opengis.net/citygml/vegetation/1.0=CityGML --namespace-map http://www.opengis.net/citygml/waterbody/1.0=CityGML --namespace-map http://www.opengis.net/citygml/texturedsurface/1.0=CityGML --namespace-map urn:oasis:names:tc:ciq:xsdschema:xAL:2.0=CityGML::XAL --root-element CityModel CityGML.xsd

 

The above-mentioned error is caused by the “dictionary.xsd” schema which comes with included GML 3.1.1 package. The http://www.codesynthesis.com/projects/xsd/extras/supported-schemas.xhtml#gml site states that GML schema is only supported by the C++/Tree interface. I have done some search on the mailing list, but didn’t find any solution for my problem. Or, do I have overlooked something? Is it possible to use C++/Parser interface to compile CityGML 1.0.0/GML 3.1.1 schemas? If not, will it be possible to create some workaround? It would be OK for me to edit the local GML schemas.

 

Best Regards,

Oleg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CityGML_080815.zip
Type: application/x-zip-compressed
Size: 561769 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20090415/b545627d/CityGML_080815.bin


More information about the xsd-users mailing list