Skip to content
Snippets Groups Projects
Commit 0ebfe231 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Added Link to EPSG Finder.

parent 293af4f9
No related branches found
No related tags found
No related merge requests found
......@@ -1698,7 +1698,7 @@ def check_filename_length(filename):
def get_epsg(ras_ds):
"""Get the EPSG code of a raster coordinate reference system.
"""Get the `EPSG`_ code of a raster coordinate reference system.
Parameters
----------
......@@ -1710,6 +1710,9 @@ def get_epsg(ras_ds):
ras_epsg : `str`
The EPSG code of the raster coordinate reference system.
.. _EPSG:
https://epsg.io/
"""
# input raster spatial reference
ras_sr = gdal.osr.SpatialReference(wkt=str(ras_ds.GetProjection()))
......@@ -1723,7 +1726,7 @@ def reproject_raster(src_ds, trg_ds, ref_ds=None, epsg=None, resample='near',
"""Reproject a raster to a defined coordinate reference system.
Reproject ``src_ds`` to ``trg_ds`` using either:
- a defined EPSG code
- a defined `EPSG`_ code
- a reference raster dataset ``ref_ds``, whose coordinate reference
system is used for the reprojection
......@@ -1755,6 +1758,9 @@ def reproject_raster(src_ds, trg_ds, ref_ds=None, epsg=None, resample='near',
overwrite : `bool`, optional
Whether to overwrite ``trg_ds``, if it exists. The default is `False`.
.. _EPSG:
https://epsg.io/
"""
# convert path to source dataset to pathlib.Path object
src_path = pathlib.Path(src_ds)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment