Re: [Pymag-devel] Bounding box
Status: Alpha
Brought to you by:
lhj
|
From: Josh <jo...@fe...> - 2009-06-02 22:43:53
|
Hi Henrik,
It looks like your guess was right - here's the output from svn trunk
28 on the same map build as yesterday:
Traceback (most recent call last):
File "/usr/bin/osmmag.py", line 244, in <module>
main()
File "/usr/bin/osmmag.py", line 240, in main
fromdb=options.fromdb
File "/usr/bin/osmmag.py", line 84, in osmmag
data.load()
File "osmmagellan/osm.py", line 199, in load
parser.parse(self.filename)
File "/usr/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.5/xml/sax/expatreader.py", line 304, in end_element
self._cont_handler.endElement(name)
File "osmmagellan/osm.py", line 247, in endElement
self.add_element(statement, self.tags, coords)
File "osmmagellan/osm.py", line 105, in add_element
cellelementrefs = layer.addCellElement(cellelement)
File "magellan/Layer.py", line 745, in addCellElement
assert nincell < 2**16
AssertionError
Cheers,
Josh
Quoting henrik johansson <hen...@gm...>:
> Hi Josh,
>
> Thanks for testing.
>
> I think I know what the problem is. There's a limit of 64k cell
> elements in a cell. So it's clearly a pymagellan fault since it could
> just increase the number of cell levels if it reaches this limit. The
> threshold is set to max 2000 elements per cell but I think this might
> not be respected for some reason.
>
> I added some more asserts that should catch this problem.
>
> /Henrik
|