Exemple #1
0
 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)
Exemple #2
0
 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) 
Exemple #3
0
    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)
Exemple #4
0
 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)