File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1293,6 +1293,11 @@ def test_warp_41():
12931293 assert src_gt [i ] == pytest .approx (vrt_gt [i ], abs = 1e-5 )
12941294
12951295
1296+ def test_warp_suggestedwarp_output_invalid_input ():
1297+ with pytest .raises (Exception ):
1298+ gdal .SuggestedWarpOutput (None , {"DST_SRS" : "EPSG:4326" })
1299+
1300+
12961301###############################################################################
12971302
12981303# Maximum
Original file line number Diff line number Diff line change @@ -913,6 +913,7 @@ struct SuggestedWarpOutputRes
913913#else
914914%newobject SuggestedWarpOutput;
915915#endif
916+ %apply Pointer NONNULL {GDALDatasetShadow *src};
916917%inline %{
917918#ifdef SWIGPYTHON
918919 SuggestedWarpOutputRes* SuggestedWarpOutputFromOptions ( GDALDatasetShadow *src,
@@ -941,6 +942,7 @@ struct SuggestedWarpOutputRes
941942 return res;
942943 }
943944%}
945+ %clear GDALDatasetShadow *src;
944946
945947#ifdef SWIGPYTHON
946948
You can’t perform that action at this time.
0 commit comments