Bob Galkiewicz wrote: > I am a retired physicist who has abandoned Windows and Visual Basic for > Ubuntu/Linux and Python.
good call. > I believe I read that your work on the FloatCanvas code was motivated by > wanting to zoom maps. maps and other data, but mostly vector, rather than raster. There is some raster support, however. > If this is true, then you may have already > invented my wheel. not quite, but pretty close. > 1. Can you tell me where I might find actual (simple would be good!) > examples of Python code using FloatCanvas and NavCanvas? There is a pretty good collection in wxPython SVN: http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/FloatCanvas/Demos/ Map.py will give you an idea. NOTE: it uses the ScaledBitmap object -- there is a newer one called ScaledBitmap2, which works better with large objects. NOTE2: FloatCanvas doesn't currently support much in the way of projections, to you'll probably have to do that yourself. i.e. you can load a map, have FloatCanvas handle the pixel to meters conversions as you zoom, etc, but to go to/from lat-long to meters, you'll have to write that. I suggest the pyproj package to do that: http://code.google.com/p/pyproj/ You also may want to give FloatCanvas2 a try -- though I'm totally sure how it's working on Linux -- ask on the floatcanvas mailing list. > 2. In your opinion is the "wxPython in Action" book worth buying? Yes, it's a pretty good book -- it didn't come out until I was pretty proficient, so I haven't used it much, but it should help a lot. > not, is there anything better out there? nope, that's about it -- there is a lot of good stuff int eh demos, and the Wiki, and various blogs, etc, but that book puts it all in one edited place. I've cc'd this to the floatcanvas list: http://mail.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas I like to have discussion there so it's in the archive. good luck. -Chris Final note: We're currently working on a high-performance map canvas for some of our projects, built on OpenGL -- it only supports the specific stuff we need at the moment, but if you're interested in being on the bleeding edge, it may be useful. Let me know if you want to give it a try. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] _______________________________________________ FloatCanvas mailing list [email protected] http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
