-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11248 from rouault/fix_rasterio_3070
VRT: fix reading from a CFloat32/CFloat64 ComplexSource in a non-complex-type buffer
- Loading branch information
Showing
5 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
autotest/gcore/data/vrt/complex_non_zero_real_zero_imag.vrt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<VRTDataset rasterXSize="2" rasterYSize="2"> | ||
<SRS dataAxisToSRSAxisMapping="1,2">PROJCS["WGS 84 / UTM zone 11N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32611"]]</SRS> | ||
<GeoTransform> 2.1520000000000000e+05, 3.0000000000000000e+01, 0.0000000000000000e+00, 4.3975000000000000e+06, 0.0000000000000000e+00, -3.0000000000000000e+01</GeoTransform> | ||
<VRTRasterBand dataType="CFloat32" band="1"> | ||
<ColorInterp>Gray</ColorInterp> | ||
<ComplexSource> | ||
<NODATA>0</NODATA> | ||
<SourceFilename relativeToVRT="1">../gtiff/complex_non_zero_real_zero_imag.tif</SourceFilename> | ||
<SourceBand>1</SourceBand> | ||
</ComplexSource> | ||
</VRTRasterBand> | ||
</VRTDataset> |
12 changes: 12 additions & 0 deletions
12
autotest/gcore/data/vrt/complex_non_zero_real_zero_imag_as_float32.vrt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<VRTDataset rasterXSize="2" rasterYSize="2"> | ||
<SRS dataAxisToSRSAxisMapping="1,2">PROJCS["WGS 84 / UTM zone 11N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32611"]]</SRS> | ||
<GeoTransform> 2.1520000000000000e+05, 3.0000000000000000e+01, 0.0000000000000000e+00, 4.3975000000000000e+06, 0.0000000000000000e+00, -3.0000000000000000e+01</GeoTransform> | ||
<VRTRasterBand dataType="Float32" band="1"> | ||
<ColorInterp>Gray</ColorInterp> | ||
<ComplexSource> | ||
<NODATA>0</NODATA> | ||
<SourceFilename relativeToVRT="1">../gtiff/complex_non_zero_real_zero_imag.tif</SourceFilename> | ||
<SourceBand>1</SourceBand> | ||
</ComplexSource> | ||
</VRTRasterBand> | ||
</VRTDataset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters