def METHOD_NAME(self):
    base_path_obj = self.settings.value(
        "files/last_wkt_location",
        type=str,
        defaultValue=Path("~").expanduser(),
    )
    base_path = Path(str(base_path_obj))
    file, _ = QFileDialog.getOpenFileName(
        self, caption="Open WKT file", dir=str(base_path)
    )
    if not file:
        return
    file = Path(file)
    self.settings.setValue("files/last_wkt_location", str(file.parent))
    try:
        wkt = parse_wkt(Path(file).read_text(encoding="UTF-8"))
        navi = jps.RoutingEngine(build_geometry(wkt))
        xmin, ymin, xmax, ymax = wkt.bounds
        info_text = f"Dimensions: {math.ceil(xmax - xmin)}m x {math.ceil(ymax - ymin)}m Triangles: {len(navi.mesh())}"
        name_text = f"Geometry: {file}"
        self.setUpdatesEnabled(False)
        geo = Geometry(navi)
        geo.show_triangulation(self._show_triangulation.isChecked())
        tab = ViewGeometryWidget(
            navi, geo, name_text, info_text, parent=self
        )
        tab_idx = self.tabs.insertTab(0, tab, file.name)
        self.tabs.setCurrentIndex(tab_idx)
        self.setUpdatesEnabled(True)
    except Exception as e:
        QMessageBox.critical(
            self,
            "Error importing WKT geometry",
            f"Error importing WKT geometry:\n{e}",
        )
        return