Skip to content

Commit

Permalink
Clarify set_crs usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Apr 8, 2024
1 parent f12a8d6 commit ad077fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/ribasim/ribasim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def _write_toml(self, fn: Path) -> Path:
return fn

def _save(self, directory: DirectoryPath, input_dir: DirectoryPath):
# Set CRS of the tables to the CRS stored in the Model object
self.set_crs(self.crs)
db_path = directory / input_dir / "database.gpkg"
db_path.parent.mkdir(parents=True, exist_ok=True)
Expand All @@ -185,6 +186,7 @@ def set_crs(self, crs: str) -> None:
self._apply_spatial_function("set_crs", crs)

def to_crs(self, crs: str) -> None:
# Set CRS of the tables to the CRS stored in the Model object
self.set_crs(self.crs)
self._apply_spatial_function("to_crs", crs)

Expand Down

0 comments on commit ad077fb

Please sign in to comment.