[...]
> 
>        float *inDSRow = (float*)CPLMalloc(sizeof(float)*nCols);
[...]
>              inDS->GetRasterBand(1)->RasterIO(GF_Read, 0, i, nCols, 1,
> inDSRow, nCols, 1, GDT_CFloat32, 0, 0);

The memory allocation and requested datatypes aren't consistent:
- either you really want complex Float32, and then you need 2 floats per 
sample. That is CPLMalloc(2 * sizeof(float) * nCols)
- or you want non-complex Float32, and request GDT_Float32 instead

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to