pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

CreateIconStyleIcon() in python #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

There might be something I don't understand about the IconStyleIcon but it
doesn't seem to be able to be created in the usual way with the python
bindings.

With the script:

#!/usr/bin/python
import kmldom
factory = kmldom.KmlFactory_GetFactory()
iconStyleIcon=factory.CreateIconStyleIcon()

Exception is raised:

python iconstyleicon.py
Traceback (most recent call last):
  File "iconstyleicon.py", line 4, in ?
    iconStyleIcon=factory.CreateIconStyleIcon()
  File "/home/username/libkml/libkml-0.1.2/build/python/kmldom.py", line
2262, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, KmlFactory, name)
  File "/home/username/libkml/libkml-0.1.2/build/python/kmldom.py", line
34, in _swig_getattr
    raise AttributeError,name
AttributeError: CreateIconStyleIcon

According to the kml_factory.cc the method CreateIconStyleIcon() should be
defined.

I'm using the latest version of libkml (0.1.2) on linux (debian lenny) with
python 2.4 (same result with python 2.5).

Emmanuel

Original issue reported on code.google.com by emmanuel...@gmail.com on 2 Apr 2008 at 10:12

GoogleCodeExporter commented 9 years ago
Good catch!

Not yet implemented. Will do it soon.

Original comment by kml.mash...@gmail.com on 2 Apr 2008 at 11:04

GoogleCodeExporter commented 9 years ago
Revision 33 is dedicated to you, M. Christophe. Have at it!

http://code.google.com/p/libkml/source/detail?r=33

Original comment by kml.mash...@gmail.com on 2 Apr 2008 at 11:35