def setSourceFile(self): #Set the file path to the source file imageFilters = "Comma Separated Value (*.csv);;ESRI Shapefile (*.shp);;AutoCAD DXF (*.dxf)" sourceFile = QFileDialog.getOpenFileName(self, "Select Source File", vectorFileDir(), imageFilters) if sourceFile != "": self.txtDataSource.setText(sourceFile)
def setDestFile(self): #Set the file path to the destination file if self.rbShp.isChecked(): ogrFilter = "ESRI Shapefile (*.shp)" elif self.rbCSV.isChecked(): ogrFilter = "Comma Separated Values (*.csv)" elif self.rbMapInfo.isChecked(): ogrFilter = "MapInfo File (*.tab)" elif self.rbGPX.isChecked(): ogrFilter = "GPX (*.gpx)" elif self.rbDXF.isChecked(): ogrFilter = "DXF (*.dxf)" destFile = QFileDialog.getSaveFileName(self,"Select Output File",vectorFileDir(),ogrFilter) if destFile != "": self.txtExportPath.setText(destFile)
def setDestFile(self): #Set the file path to the destination file if self.rbShp.isChecked(): ogrFilter = "ESRI Shapefile (*.shp)" elif self.rbCSV.isChecked(): ogrFilter = "Comma Separated Values (*.csv)" elif self.rbMapInfo.isChecked(): ogrFilter = "MapInfo File (*.tab)" elif self.rbGPX.isChecked(): ogrFilter = "GPX (*.gpx)" elif self.rbDXF.isChecked(): ogrFilter = "DXF (*.dxf)" destFile = QFileDialog.getSaveFileName(self, "Select Output File", vectorFileDir(), ogrFilter) if destFile != "": self.txtExportPath.setText(destFile)
def setSourceFile(self): #Set the file path to the source file imageFilters = "Comma Separated Value (*.csv);;ESRI Shapefile (*.shp);;AutoCAD DXF (*.dxf)" sourceFile = QFileDialog.getOpenFileName(self,"Select Source File",vectorFileDir(),imageFilters) if sourceFile != "": self.txtDataSource.setText(sourceFile)