Re: [Pymag-devel] Bounding box
Status: Alpha
Brought to you by:
lhj
|
From: Josh <jo...@fe...> - 2009-06-03 22:06:04
|
Hi Henrik,
Here's today's output.
INFO Optimizing cell structure of normal layers
DEBUG Optimizing layer 00_Freeways
DEBUG nlevels=0 for layer 00_Freeways
DEBUG Optimizing layer 00_Major_Highways
DEBUG nlevels=1 for layer 00_Major_Highways
DEBUG Optimizing layer 00_Minor_Highways
DEBUG Max cell elements exceeded for layer 00_Minor_Highways.
cellnum=1, # of cell elements=3103
DEBUG nlevels=1 for layer 00_Minor_Highways
DEBUG Optimizing layer 00_Major_Roads
DEBUG Max cell elements exceeded for layer 00_Major_Roads. cellnum=1,
# of cell elements=5700
DEBUG nlevels=1 for layer 00_Major_Roads
DEBUG Optimizing layer 00_Streets
DEBUG Max cell elements exceeded for layer 00_Streets. cellnum=1, # of
cell elements=81942
DEBUG nlevels=1 for layer 00_Streets
Traceback (most recent call last):
File "/usr/bin/osmmag.py", line 260, in <module>
main()
File "/usr/bin/osmmag.py", line 256, in main
db=options.db
File "/usr/bin/osmmag.py", line 97, in osmmag
m.close()
File "pymagellan/trunk/magellan/Map.py", line 365, in close
group.optimizeLayers()
File "pymagellan/trunk/magellan/SearchGroup.py", line 116, in optimizeLayers
cellrefremap[self.map.getLayerIndex(layer)] = layer.optimize()
File "pymagellan/trunk/magellan/Layer.py", line 473, in optimize
newcellrefs = self.addCellElement(ce)
File "pymagellan/trunk/magellan/Layer.py", line 745, in addCellElement
assert self.nlevels == 0 or nincell < 2**16
AssertionError
Cheers,
Josh
Quoting henrik johansson <hen...@gm...>:
> Hi Josh,
>
> I found that this assertion was not correct. I added a new option that
> gives more verbose output.
>
> Can you please try again with the --debug option?
>
> Regards,
>
> 2009/6/3 Josh <jo...@fe...>:
>> 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
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
>> looking to deploy the next generation of Solaris that includes the latest
>> innovations from Sun and the OpenSource community. Download a copy and
>> enjoy capabilities such as Networking, Storage and Virtualization.
>> Go to: http://p.sf.net/sfu/opensolaris-get
>> _______________________________________________
>> Pymag-devel mailing list
>> Pym...@li...
>> https://lists.sourceforge.net/lists/listinfo/pymag-devel
>>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> Pymag-devel mailing list
> Pym...@li...
> https://lists.sourceforge.net/lists/listinfo/pymag-devel
>
|