Ejemplo n.º 1
0
 def onCRSComboboxChanged(self):
     crsidtext = self.dlg.crsFromProjectComboBox.currentText().split(
         "[")[0].strip()
     crs = QgsCoordinateReferenceSystem(crsidtext)
     if crs.isValid():
         self.crsParam = str(crs.toProj4())
         print(self.crsParam)
         print(crs.toProj4())
Ejemplo n.º 2
0
    def onLayerCRSRadioButtonClicked(self):
        thisRadioButton = self.dlg.sender()
        self.loadLayerCRSsForComboBox()
        crsidtext = self.dlg.crsFromProjectComboBox.currentText().split(
            "[")[0].strip()
        crs = QgsCoordinateReferenceSystem(crsidtext)

        #crs = QgsCoordinateReferenceSystem("EPSG:27700")
        if crs.isValid():
            self.crsParam = str(crs.toProj4())
            print(self.crsParam)
        if thisRadioButton.isChecked():
            print("selected: %s" % (thisRadioButton.text()))
            self.dlg.customCrsPlainTextEdit.setEnabled(False)
            print(crs.toProj4())
            self.dlg.crsFromProjectComboBox.setEnabled(True)