[xsd-users] CityGML deserialization - CityModel generation
Adrian Victor Manoliu
victor.manoliu at yahoo.com
Wed Feb 23 02:38:59 EST 2011
Hello,
Thank you for your quick reaction. Indeed I'm rather loose in expressing myself,
but everything is rather complex and I try to summarize a bit. I guess that made
the final part of my message confusing.
What I meant to say was that after the CityModel method is called, iCity is made
of three fields: flags_, container_ and v_. The 1870 items in the pointer exist
in container_, however v_ is completely empty. This is the problem because it's
the v_ field that the iterator looks in to retrieve the elements. Perhaps the
invalid map fields created earlier cause this.
Victor
----- Original Message ----
From: Boris Kolpackov <boris at codesynthesis.com>
To: Adrian Victor Manoliu <victor.manoliu at yahoo.com>
Cc: xsd-users at codesynthesis.com
Sent: Tue, February 22, 2011 4:49:06 PM
Subject: Re: [xsd-users] CityGML deserialization - CityModel generation
Hi Victor,
Adrian Victor Manoliu <victor.manoliu at yahoo.com> writes:
> The corresponding constructor I used is found in citygmlbase.hxx and
> has the prototype:
>
> ::std::auto_ptr< ::citygml::CityModelType >
> CityModel (::xml_schema::dom::auto_ptr< xercesc::DOMDocument >& d,
> ::xml_schema::flags f,
> const ::xml_schema::properties&)
This is not a constructor, it is a parsing function.
> const std::string fName = "waldbruecke_v1.0.0.gml";
> std::auto_ptr<CityModelType> iCity(CityModel(fName, flags.dont_validate));
> CityModelType::_GenericApplicationPropertyOfCityModel_const_iterator ci;
>
> Within the above mentioned constructor a map is created, which seems to
> hold the correspondencies between CityGML(XML) tags and the generated
> classes:
You are going into implementation details of XSD expecting things to be
a certain way without understanding very well how they works. I suggest
that instead you tell us what is not working in your code. For example,
do you not get any members in CityModelType instance?
Boris
More information about the xsd-users
mailing list