예제 #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)
예제 #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) 
예제 #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)
예제 #4
0
파일: import_data.py 프로젝트: gltn/stdm
 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)