Example #1
0
    def __init__(self, app=None, startpath=None):
        Tool_GViewApp.__init__(self,app)

        self.init_menu()
        self.view=None
        self.second_view = None
        
        self.playing=0
        self.id=None
        self.tool = gview.GvAutopanTool()
        if os.name != 'nt':
            lp = os.environ.get('LD_LIBRARY_PATH', '')
        else:
            lp = os.environ.get('PATH', '')

        if 'Mesa' in lp:
            self.speed = 0.001
            self.default_speed = 0.001
        else:
            self.speed = 0.01
            self.default_speed = 0.01
            
        self.active = 0
        self.dialog = None
        self.ext = None
Example #2
0
    def __init__(self, app=None, startpath=None):
        Tool_GViewApp.__init__(self, app)

        self.init_menu()

        self.supported_list = []
        self.unsupported_list = []
        self._official_support = []

        for i in range(gdal.GetDriverCount()):
            iDriver = gdal.GetDriver(i)
            next_list = []
            if iDriver.HelpTopic:
                helpstr = iDriver.HelpTopic
            else:
                helpstr = None
            next_list.append(iDriver.LongName)
            next_list.append(iDriver.ShortName)

            mdata = iDriver.GetMetadata()
            next_list.append(mdata.get("DCAP_CREATECOPY", "NO"))
            next_list.append(mdata.get("DMD_CREATIONDATATYPES", "Unknown"))
            next_list.append(helpstr)

            if iDriver.ShortName in self._official_support:
                self.supported_list.append(next_list)
            else:
                self.unsupported_list.append(next_list)

        self.init_dialog()
Example #3
0
    def __init__(self, app=None, startpath=None):
        Tool_GViewApp.__init__(self, app)

        self.init_menu()
        self.view = None
        self.playing = 0
        self.id = None
        self.speed = 0.01

        gtk.quit_add(0,self.quit_cb)
Example #4
0
    def __init__(self, app=None, startpath=None):
        Tool_GViewApp.__init__(self, app)

        self.init_dialog()
        self.init_menu()

        # store the id for the roi-changed signal
        # connection so it can be disconnected later
        self.roichanged_id = None

        # Set help topic
        gvhtml.set_help_topic(self.dialog,"Tool_Export.html")