Re: [Pymag-devel] Bounding box
Status: Alpha
Brought to you by:
lhj
From: henrik j. <hen...@gm...> - 2009-06-02 19:15:00
|
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 2009/6/2 Josh <jo...@fe...>: - Show quoted text - 2009/6/2 Josh <jo...@fe...>: > Quoting henrik johansson <hen...@gm...>: > >> Hi, >> >> I have now added bounding box support for the database reader. >> >> Think it's high time to make another release. It would be nice if you >> could test the latest trunk to see if it still works for you. >> >> /Henrik > > Hi Henrik, > > I've done a few tests with the current svn version today, and it looks good. > I haven't tried the maps on a GPSr yet but at least they don't crash > mapsend ;) > Most polygons are rendering now. I haven't tested the bounding box or > pgsql yet. > > > On another note, I've been getting an error for a while on one > particular map I've been building: > > magellan/DBUtil.py:190: DeprecationWarning: 'H' format requires 0 <= > number <= 65535 > return apply(struct.pack, (structendian+types,) + data) > magellan/Layer.py:646: DeprecationWarning: 'H' format requires 0 <= > number <= 65535 > return struct.pack(prefix+types, *data) > > I *think* this is because there are more than 64k > residential/unclassified roads in the osm extract going in to a > single layer. > Is this a limitation of the magellan map format, or in pymag? > In an attempt to overcome this in the past I've split the roads into > multiple layers, and that builds successfuly. > The map can be opened in Mapsend and Vantagepoint, but locks up GPSRs > (tested on half a dozen explorists) as soon as you select the detail > map. > I don't know if this is related or a different problem. > Any hints on diagnosing the problem other than trial-and-error > exclusion of objects? > > Cheers, > Josh > > > > > > > ------------------------------------------------------------------------------ > 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 > |