[gdal-dev] read DEM
Chaitanya kumar CH
chaitanya.ch at gmail.com
Sat Apr 3 07:09:47 EDT 2010
Did you try a different Y offset? May be the data really is zero in the
Please give the output of gdalinfo with this file.
On Sat, Apr 3, 2010 at 4:13 PM, weixj2003ld <weixj2003ld at 163.com> wrote:
> Thk u for your reply.
> Yes,it is Erdas imagine format.
> I use the following code to read the data of it,but I find that the value
> of it is always 0,I do not know why.
> float *pafScanline;
> int nXSize=poBand->GetXSize();
> pafScanline=(float *)CPLMalloc(sizeof(float)*nXSize);
> The file you have is probably in Erdas Imagine format.
> Try the command "gdalinfo -stats <dem_file.img>". This will show if you can
> open it with GDAL.
> If you want to know how to read the data, refer to
> 2010/4/3 weixj2003ld <weixj2003ld at 163.com>
>> Now I have a dem file (.img),I want to read it with gdal,how to do?I find
>> that gdal only read ascii dem,what is means?
>> Thk u in advance.
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
> Best regards,
> Chaitanya kumar CH.
> /tʃaɪθənjə/ /kʊmɑr/
> 17.2416N 80.1426E
Chaitanya kumar CH.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev