[xsde-users] XSDE binding for Google Earth KML

Nikita Visnevski nikita_visnevski at hotmail.com
Wed Sep 11 11:16:42 EDT 2013

Actually I have another problem now trying to compile the generated code in Visual Studio 2010.  Never seen this one before:

1>c:\oasim\src\cpp\googleearthbridge\datamodel\kml21-simpl.hxx(2837): error C2259: 'kml_2_1::MetadataType_simpl' : cannot instantiate abstract class
1>          due to following members:
1>          'void kml_2_1::MetadataType_sskel::any(std::string &,std::string &)' : is abstract
1>          c:\oasim\src\cpp\googleearthbridge\datamodel\kml21-sskel.hxx(647) : see declaration of 'kml_2_1::MetadataType_sskel::any'
1>          'void kml_2_1::MetadataType_sskel::serialize_any(void)' : is abstract
1>          c:\oasim\src\cpp\googleearthbridge\datamodel\kml21-sskel.hxx(650) : see declaration of 'kml_2_1::MetadataType_sskel::serialize_any'

I am trying to figure it out, but so far it does not make any sense.  Is the code being generated correctly?

Any suggestion is appreciated.



> Date: Wed, 11 Sep 2013 12:10:23 +0200
> From: boris at codesynthesis.com
> To: nikita_visnevski at hotmail.com
> CC: xsde-users at codesynthesis.com
> Subject: Re: [xsde-users] XSDE binding for Google Earth KML
> Hi Nikita,
> Nikita Visnevski <nikita_visnevski at hotmail.com> writes:
> > The first couple I have seen before, except in this case I am not sure 
> > which KML element is better suited to be declared as a root.
> It looks like the root element of all KML documents is called 'kml':
> --root-element kml
> > The second problem I am unfamiliar with.  Anybody can advise?
> You need to map the XML namespace to C++ namespace with the help
> of the --namespace-map, just like suggested by the diagnostics:
> --namespace-map http://earth.google.com/kml/2.1=kml_2_1
> You will also want to turn on polymorphism support with 
> --generate-polymorphic since this schema uses polymorphism.
> Boris

More information about the xsde-users mailing list