Re: [gdal-dev] create a png file

2010-04-27 Thread Roger André
Have you looked at http://www.gdal.org/gdal_tutorial.html? Attached is a Python code snippet that shows how to assign values to pixels in an image. To do what you're asking, you need to create the output raster, and then write out the values in your array into the correct pixel position. I

Re: [gdal-dev] create a png file

2010-04-06 Thread Chaitanya kumar CH
Please refer to http://www.gdal.org/gdal_tutorial.html 2010/4/6 weixj2003ld weixj200...@163.com I read data from a DEM file, and want to create a .png .Now I have read data, but I do not know how to create a png file that contains the height map value of each point from the DEM file. Thk u.

Re:Re: [gdal-dev] create a png file

2010-04-06 Thread weixj2003ld
Thk u for your reply. I read the tuorail.but I think that will not satisfy my need. I want to create a .png file,and it only contains height data and not contains metadata, a coordinate system, a georeferencing transform, size of raster and various other information,I find that the Create() and

Re: Re: [gdal-dev] create a png file

2010-04-06 Thread Chaitanya kumar CH
Create() does need all the info. Just pass NULL for the last argument * papszParmList.* On Wed, Apr 7, 2010 at 8:39 AM, weixj2003ld weixj200...@163.com wrote: Thk u for your reply. I read the tuorail.but I think that will not satisfy my need. I want to create a .png file,and it only contains

[gdal-dev] create a png file

2010-04-05 Thread weixj2003ld
Now,I can read data from a DEM file into an array,but I do not know how to use it to create a png file? Thk u. BTW,Some one tell me that freeimage can do it,but I do not know. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

[gdal-dev] create a png file

2010-04-05 Thread weixj2003ld
I read data from a DEM file, and want to create a .png .Now I have read data, but I do not know how to create a png file that contains the height map value of each point from the DEM file. Thk u.___ gdal-dev mailing list gdal-dev@lists.osgeo.org