Return the SpatialReference used in this GDALRaster.
(self)
| 294 | |
| 295 | @property |
| 296 | def srs(self): |
| 297 | """ |
| 298 | Return the SpatialReference used in this GDALRaster. |
| 299 | """ |
| 300 | try: |
| 301 | wkt = capi.get_ds_projection_ref(self._ptr) |
| 302 | if not wkt: |
| 303 | return None |
| 304 | return SpatialReference(wkt, srs_type="wkt") |
| 305 | except SRSException: |
| 306 | return None |
| 307 | |
| 308 | @srs.setter |
| 309 | def srs(self, value): |
nothing calls this directly
no test coverage detected