pombreda / libkml

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

InnerBoundaryIs attribute error #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
>>> import kmldom
>>> factory = kmldom.KmlFactory_GetFactory()
>>> polygon = factory.CreatePolygon()
>>> innerBound = factory.CreateInnerBoundaryIs()
>>> polygon.set_innerboundaryis(innerBound) 

What is the expected output? What do you see instead?

Expected: No Error

Saw: 

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.5/site-packages/kmldom.py", line 2136, in
<lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, Polygon, name)
  File "/usr/local/lib/python2.5/site-packages/kmldom.py", line 34, in
_swig_getattr
    raise AttributeError,name
AttributeError: set_innerboundaryis

What version of the product are you using? On what operating system?

Ubuntu 8.10, libKML 0.9

Did you run the unit test suite that comes with the project? Did all tests
pass?

All but this one.

Please provide any additional information below.

Trying to implement the polygon attributes, but there is an issue with
InnerBoundaryIs. Thanks!

Original issue reported on code.google.com by ronald.k...@gmail.com on 14 May 2009 at 8:40

GoogleCodeExporter commented 9 years ago
Clarification, I am running the unit test suite and all of the other unit tests 
pass
except for this one. Thanks!

Original comment by ronald.k...@gmail.com on 15 May 2009 at 12:03

GoogleCodeExporter commented 9 years ago
A <Polgon> may have 0 or more innerBoundaryIs elements, so you call
add_innerboundaryis(...)

See:
http://code.google.com/p/libkml/source/browse/trunk/src/kml/dom/geometry.h#423

Original comment by kml.mash...@gmail.com on 27 May 2009 at 8:59