From: Pete N. <Pet...@ve...> - 2005-06-15 18:32:38
|
Hi -> I think the float value was a cut and paste oversight; I switched it to PyInt.. from PyFloat.. and added these other changes to the gtk2 version, which we should get around to releasing soon. -> Pete -------------------------------------------------------------------- ==================================================================== Pete Nagy tel: (303) 583-0248 Vexcel Corporation fax: (303) 583-0246 http://www.vexcel.com home: (303) 823-2336 ==================================================================== On Wed, 15 Jun 2005, Mario Beauchamp wrote: > Hi Vincent, > > >>The rounding happens in the slider itself. To get more digits, add these lines to > >>GvRasterSource.__init__: > >> > >>self.min_slider.set_digits(ndigits) > >>self.max_slider.set_digits(ndigits) > >> > >>where ndigits is the number of digits you want. > > > > Indeed this appeared the heart of the problem. > > Attached is a proposed patch for pymod/gvrasterpropdlg.py > > Cool, I had the feeling you would come up with a more robust solution :) > > > + if self.layer.get_parent().get_band().DataType == gdal.GDT_Byte \ > > Folks, anyone ever used GvRasterLayer.type_get(isrc) instead of > GvRasterLayer.get_parent().get_band().DataType? I was just wondering why this method returns a > float... > > Anyway, good work Vincent! > -- > Mario B. > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Openev-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openev-discuss > |