Ticket #774 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Dataset.getBoundingBox or Feature.getBoundingBox not implemented

Reported by: spascoe Owned by: domlowe
Priority: desirable Milestone: PROD Step1
Component: CSML Version:
Keywords: Cc:


There is a Dataset.getBoundingBox() method but it doesn't work. E.g.:

>>> d = csml.parser.Dataset()
>>> d.parse('clim_10.csml')
(60, 63, 120, 109)
>>> d.getBoundingBox()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/research/saturn2/spascoe/svn/csml_trunk/csml/API/ops_Dataset.py", line 77, in getBoundingBox
    print self.CSMLFeatureCollection.boundedBy
  File "/research/saturn2/spascoe/svn/csml_trunk/csml/parser.py", line 134, in __getattribute__
    return object.__getattribute__(self,name)
AttributeError: 'Dataset' object has no attribute 'CSMLFeatureCollection'

There is no equivilent method at the feature level.

Change History

comment:1 Changed 14 years ago by domlowe

  • Status changed from new to closed
  • Resolution set to fixed

Dataset.getBoundingBox() now implemented (changeset[2602])

Note: See TracTickets for help on using tickets.