diff --git a/docs/advanced_examples.rst b/docs/advanced_examples.rst index 1107b9233..16e2dab95 100644 --- a/docs/advanced_examples.rst +++ b/docs/advanced_examples.rst @@ -14,7 +14,7 @@ Repeated transformations .. versionadded:: 2.1.0 -If you use the same transform, using the :class:`pyproj.Transformer` can help +If you use the same transform, using the :class:`pyproj.transformer.Transformer` can help optimize your transformations. .. code-block:: python @@ -22,7 +22,7 @@ optimize your transformations. import numpy as np from pyproj import Transformer, transform - transformer = Transformer.from_proj(2263, 4326) + transformer = Transformer.from_crs(2263, 4326) x_coords = np.random.randint(80000, 120000) y_coords = np.random.randint(200000, 250000) diff --git a/pyproj/transformer.py b/pyproj/transformer.py index 52914efea..d07b65f20 100644 --- a/pyproj/transformer.py +++ b/pyproj/transformer.py @@ -82,6 +82,7 @@ def __init__( The area of interest to help order the transformations based on the best operation for the area. + Example: >>> from pyproj.transformer import TransformerGroup @@ -105,7 +106,7 @@ def __init__( @property def transformers(self): """ - list[:obj:`pyproj.crs.CoordinateOperation`]: + list[:obj:`Transformer`]: List of available :obj:`Transformer` associated with the transformation. """