Skip to content

Commit 07f20e4

Browse files
authored
Merge pull request OSGeo#12544 from dmofot/patch-1
Update examples in gdal_cli_from_python.rst
2 parents 7e8486b + 49ad74b commit 07f20e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/source/programs/gdal_cli_from_python.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ will be called at the exit of the context manager.
6262
.. code-block:: python
6363
6464
with gdal.Run("raster reproject", input=src_ds, output_format="MEM",
65-
dst_crs="EPSG:4326"}) as alg:
65+
dst_crs="EPSG:4326") as alg:
6666
values = alg.Output().ReadAsArray()
6767
6868
@@ -124,7 +124,7 @@ Raster commands examples
124124
125125
gdal.UseExceptions()
126126
with gdal.Run("raster", "reproject", input=src_ds, output_format="MEM",
127-
dst_crs="EPSG:4326"}) as alg:
127+
dst_crs="EPSG:4326") as alg:
128128
values = alg.Output().ReadAsArray()
129129
130130
@@ -140,7 +140,7 @@ Vector commands examples
140140
from osgeo import gdal
141141
142142
gdal.UseExceptions()
143-
alg = gdal.Run("raster", "info", input="poly.gpkg"})
143+
alg = gdal.Run("vector", "info", input="poly.gpkg")
144144
info_as_dict = alg.Output()
145145
146146
@@ -152,4 +152,4 @@ Vector commands examples
152152
from osgeo import gdal
153153
154154
gdal.UseExceptions()
155-
gdal.Run("raster", "convert", input="in.shp", output="out.gpkg", overwrite=True)
155+
gdal.Run("vector", "convert", input="in.shp", output="out.gpkg", overwrite=True)

0 commit comments

Comments
 (0)