[Gdal-dev] Question- fit to gvviewwindow/opevEV viewarea

Gong, Shawn Shawn.Gong at drdc-rddc.gc.ca
Tue Jan 16 17:01:58 EST 2007


Hi list,

        # the following code opens a new opevEV window, size (620, 680)
as set by gvviewwindow.py
        preview_win = self.gviewapp.new_view(title='preview
window',menufile= 'DefaultMenuFile.xml',iconfile= 'DefaultIconFile.xml')

        # the following code enlarges the opevEV window size
        preview_win.set_usize(1142,901)

However the viewarea remain small (as same as the (620, 680) window)
I want to expand the viewarea to fit the enlarged opevEV window, as if I
click the "fit all layers" icon.
I used the following methods, but none worked:
        preview_win.viewarea.size(1124, 815)
        preview_win.viewarea.fit_all_layers()
        preview_win.viewarea.fit_extents(320134, 5087589, 321294-320134,
5088229-5087589)

Thanks,
Shawn Gong






More information about the Gdal-dev mailing list